summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-09 10:31:56 +0000
committerJohn Crispin <john@openwrt.org>2015-04-09 10:31:56 +0000
commitd564779563d8c750eaba0e3015d65602e078930a (patch)
tree0afa0d87d88b88323ae2a6c40b13ebfe8694d17e /package/kernel/mac80211/files/lib
parentff211def3ef2d5d2e5997af7ababdb9e442332ed (diff)
downloadmtk-20170518-d564779563d8c750eaba0e3015d65602e078930a.zip
mtk-20170518-d564779563d8c750eaba0e3015d65602e078930a.tar.gz
mtk-20170518-d564779563d8c750eaba0e3015d65602e078930a.tar.bz2
mac80211: add start_disabled option
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45326
Diffstat (limited to 'package/kernel/mac80211/files/lib')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 9526300..a7848bd 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -55,6 +55,7 @@ drv_mac80211_init_iface_config() {
config_add_int maxassoc
config_add_int max_listen_int
config_add_int dtim_period
+ config_add_int start_disabled
# mesh
config_add_string mesh_id
@@ -314,12 +315,12 @@ mac80211_hostapd_setup_bss() {
append hostapd_cfg "$type=$ifname" "$N"
hostapd_set_bss_options hostapd_cfg "$vif" || return 1
- json_get_vars wds dtim_period max_listen_int
+ json_get_vars wds dtim_period max_listen_int start_disabled
set_default wds 0
[ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N"
- [ "$staidx" -gt 0 ] && append hostapd_cfg "start_disabled=1" "$N"
+ [ "$staidx" -gt 0 -o "$start_disabled" -eq 1 ] && append hostapd_cfg "start_disabled=1" "$N"
cat >> /var/run/hostapd-$phy.conf <<EOF
$hostapd_cfg