mac80211: add missing set_default to fix stray "radio0: sh: bad number" messages

SVN-Revision: 39028
lede-17.01
Jo-Philipp Wich 2013-12-10 16:24:52 +00:00
parent 32223b3c4d
commit 10972d9f02
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ mac80211_hostapd_setup_bss() {
hostapd_set_bss_options hostapd_cfg "$vif" || return 1 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
set_default wds 0
[ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N" [ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N"
[ "$staidx" -gt 0 ] && append hostapd_cfg "start_disabled=1" "$N" [ "$staidx" -gt 0 ] && append hostapd_cfg "start_disabled=1" "$N"