aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-07-20 15:07:47 +0200
committerDavid Bauer <mail@david-bauer.net>2020-07-20 15:07:47 +0200
commitcfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7 (patch)
treeb6e1629811400c948c2071a766aa29e98d5c6ebf /package/kernel/mac80211
parent65e9de3c333bae1ccef1dfb0cc008ad6f13958e4 (diff)
downloadupstream-cfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7.tar.gz
upstream-cfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7.tar.bz2
upstream-cfd2f3bf6f4825b66e9a4ca9cba7c65b93eb89c7.zip
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@david-bauer.net>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh3
1 files changed, 3 insertions, 0 deletions
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