aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-12-10 16:24:52 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-12-10 16:24:52 +0000
commit0e678c997e1a37846d5985fcb9747dc2088bc8a1 (patch)
tree2d94326b50cab0362b879898a1eb9543c73d3b4c /package/kernel/mac80211/files
parent49cbd47a5c4bb4c6c0896766bae452d33fe2f9c6 (diff)
downloadupstream-0e678c997e1a37846d5985fcb9747dc2088bc8a1.tar.gz
upstream-0e678c997e1a37846d5985fcb9747dc2088bc8a1.tar.bz2
upstream-0e678c997e1a37846d5985fcb9747dc2088bc8a1.zip
mac80211: add missing set_default to fix stray "radio0: sh: bad number" messages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39028 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh2
1 files changed, 2 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 24b76157d8..12c256ebaa 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -85,6 +85,8 @@ mac80211_hostapd_setup_bss() {
hostapd_set_bss_options hostapd_cfg "$vif" || return 1
json_get_vars wds dtim_period max_listen_int
+ set_default wds 0
+
[ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N"
[ "$staidx" -gt 0 ] && append hostapd_cfg "start_disabled=1" "$N"