aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-01 00:38:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-01 00:38:47 +0000
commit8970a1213b9ea35f40ba4d5fedfa2158efcb13d3 (patch)
tree7182d407c4550f2deab6951181c608d8249be559 /package/madwifi/files/lib
parent1201ed1baaf90f5dcd0a13a6264649f05a5d27d5 (diff)
downloadupstream-8970a1213b9ea35f40ba4d5fedfa2158efcb13d3.tar.gz
upstream-8970a1213b9ea35f40ba4d5fedfa2158efcb13d3.tar.bz2
upstream-8970a1213b9ea35f40ba4d5fedfa2158efcb13d3.zip
enable wds sta interface splitting by default
SVN-Revision: 12056
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 010391e35a..9d08e1fab0 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -119,9 +119,6 @@ enable_atheros() {
iwpriv "$ifname" ff "$ff"
fi
- config_get wdssep "$vif" wdssep
- [ -n "$wdssep" ] && iwpriv "$ifname" wdssep "$wdssep"
-
config_get wds "$vif" wds
case "$wds" in
1|on|enabled) wds=1;;
@@ -129,6 +126,11 @@ enable_atheros() {
esac
iwpriv "$ifname" wds "$wds"
+ [ "$mode" = ap -a "$wds" = 1 ] && {
+ config_get_bool wdssep "$vif" wdssep 1
+ [ -n "$wdssep" ] && iwpriv "$ifname" wdssep "$wdssep"
+ }
+
wpa=
case "$enc" in
WEP|wep)