[openwrt/openwrt] mac80211: create channel list for fixed channel operation

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 20 09:09:07 EDT 2020


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7

commit cfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Mon Jul 20 15:07:47 2020 +0200

    mac80211: create channel list for fixed channel operation
    
    Currently a device which has a DFS channel selected using the UCI
    channel setting might switch to a non-DFS channel in case no chanlist is
    provided (UCI setting "channels") when the radio detects a DFS event.
    
    Automatically add a chanlist consisting of the configured channel when
    the device does not operate in auto-channel mode and no chanlist set to
    circumvent this issue.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index a131992f26..5214704830 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -110,6 +110,9 @@ mac80211_hostapd_setup_base() {
 	json_get_values ht_capab_list ht_capab tx_burst
 	json_get_values channel_list channels
 
+	[ "$auto_channel" = 0 ] && [ -z "$channel_list" ] && \
+		channel_list="$channel"
+
 	set_default noscan 0
 
 	[ "$noscan" -gt 0 ] && hostapd_noscan=1



More information about the lede-commits mailing list