diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-08 20:40:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-08 20:40:15 +0000 |
commit | 81ac3610fc8e6e41dbe15ad4486a7cfb64226cd2 (patch) | |
tree | 1335f5615e57f12e6c183729db7a32653cfc429a /package | |
parent | 557400c6f07e33ad61fd6bbae86325337248d3c0 (diff) | |
download | master-187ad058-81ac3610fc8e6e41dbe15ad4486a7cfb64226cd2.tar.gz master-187ad058-81ac3610fc8e6e41dbe15ad4486a7cfb64226cd2.tar.bz2 master-187ad058-81ac3610fc8e6e41dbe15ad4486a7cfb64226cd2.zip |
mac80211: restricted automatic channel selection
Add a new config option "channels" for mac80211 wifi devices. It's only
valid if automatic channel selection is used and restricts the channel
selection to one of the given channels.
config wifi-device
list channels 1
list channels 6
list channels 11
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47427 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 3 |
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 8d31a80a2c..43c01d3491 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -23,6 +23,7 @@ drv_mac80211_init_device_config() { config_add_int rxantenna txantenna antenna_gain txpower distance config_add_boolean noscan ht_coex config_add_array ht_capab + config_add_array channels config_add_boolean \ rxldpc \ short_gi_80 \ @@ -89,6 +90,7 @@ mac80211_hostapd_setup_base() { json_select config [ "$auto_channel" -gt 0 ] && channel=acs_survey + [ "$auto_channel" -gt 0 ] && json_get_values channel_list channels json_get_vars noscan ht_coex json_get_values ht_capab_list ht_capab @@ -301,6 +303,7 @@ mac80211_hostapd_setup_base() { hostapd_prepare_device_config "$hostapd_conf_file" nl80211 cat >> "$hostapd_conf_file" <<EOF ${channel:+channel=$channel} +${channel_list:+chanlist=$channel_list} ${noscan:+noscan=$noscan} $base_cfg |