Skip to content
Snippets Groups Projects
Commit d5647795 authored by John Crispin's avatar John Crispin
Browse files

mac80211: add start_disabled option


Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>

SVN-Revision: 45326
parent ff211def
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment