diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-09-04 10:00:48 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-10-15 23:27:47 +0200 |
commit | a5ec41b0e598f73cd1f878a107c480f472dfb15a (patch) | |
tree | 419bbf118c1d581f5e5581f6b80c86f6912e2b9a /package/kernel | |
parent | 71e04091a9d2c2f4d61aaf857d1c9eda994ddcea (diff) | |
download | upstream-a5ec41b0e598f73cd1f878a107c480f472dfb15a.tar.gz upstream-a5ec41b0e598f73cd1f878a107c480f472dfb15a.tar.bz2 upstream-a5ec41b0e598f73cd1f878a107c480f472dfb15a.zip |
mac80211: add new acs_exclude_dfs option
The channel can be selected automatically at run time by setting
channel=acs_survey or channel=0, both of which will enable the ACS survey
based algorithm in hostapd. If the option acs_exclude_dfs is set in the
hostpad config DFS channels from ACS are excluded on channel selection.
This commit will add the possibilty to exclude the dfs channel on ACS
survey.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 6dc4e5bf5f..f9d5c0c6d5 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -26,7 +26,7 @@ drv_mac80211_init_device_config() { config_add_string tx_burst config_add_int beacon_int chanbw frag rts config_add_int rxantenna txantenna antenna_gain txpower distance - config_add_boolean noscan ht_coex + config_add_boolean noscan ht_coex acs_exclude_dfs config_add_array ht_capab config_add_array channels config_add_boolean \ @@ -97,6 +97,10 @@ mac80211_hostapd_setup_base() { [ "$auto_channel" -gt 0 ] && channel=acs_survey [ "$auto_channel" -gt 0 ] && json_get_values channel_list channels + [ "$auto_channel" -gt 0 ] && json_get_vars acs_exclude_dfs + [ -n "$acs_exclude_dfs" ] && [ "$acs_exclude_dfs" -gt 0 ] && + append base_cfg "acs_exclude_dfs=1" "$N" + json_get_vars noscan ht_coex json_get_values ht_capab_list ht_capab tx_burst |