mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
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>
This commit is contained in:
parent
65e9de3c33
commit
cfd2f3bf6f
@ -110,6 +110,9 @@ mac80211_hostapd_setup_base() {
|
|||||||
json_get_values ht_capab_list ht_capab tx_burst
|
json_get_values ht_capab_list ht_capab tx_burst
|
||||||
json_get_values channel_list channels
|
json_get_values channel_list channels
|
||||||
|
|
||||||
|
[ "$auto_channel" = 0 ] && [ -z "$channel_list" ] && \
|
||||||
|
channel_list="$channel"
|
||||||
|
|
||||||
set_default noscan 0
|
set_default noscan 0
|
||||||
|
|
||||||
[ "$noscan" -gt 0 ] && hostapd_noscan=1
|
[ "$noscan" -gt 0 ] && hostapd_noscan=1
|
||||||
|
Loading…
Reference in New Issue
Block a user