From 01a52c0b08090e2aa95a8821a159e39662afa25b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 9 Apr 2015 10:31:56 +0000 Subject: mac80211: add start_disabled option Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45326 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 5 +++-- 1 file 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 9526300379..a7848bd8ad 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 <