mirror of https://github.com/hak5/openwrt.git
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>master
parent
71e04091a9
commit
a5ec41b0e5
|
@ -26,7 +26,7 @@ drv_mac80211_init_device_config() {
|
||||||
config_add_string tx_burst
|
config_add_string tx_burst
|
||||||
config_add_int beacon_int chanbw frag rts
|
config_add_int beacon_int chanbw frag rts
|
||||||
config_add_int rxantenna txantenna antenna_gain txpower distance
|
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 ht_capab
|
||||||
config_add_array channels
|
config_add_array channels
|
||||||
config_add_boolean \
|
config_add_boolean \
|
||||||
|
@ -97,6 +97,10 @@ mac80211_hostapd_setup_base() {
|
||||||
[ "$auto_channel" -gt 0 ] && channel=acs_survey
|
[ "$auto_channel" -gt 0 ] && channel=acs_survey
|
||||||
[ "$auto_channel" -gt 0 ] && json_get_values channel_list channels
|
[ "$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_vars noscan ht_coex
|
||||||
json_get_values ht_capab_list ht_capab tx_burst
|
json_get_values ht_capab_list ht_capab tx_burst
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue