aboutsummaryrefslogtreecommitdiffstats
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
commit02c8979f05a33526b29714050c41dca548c190f6 (patch)
tree8dbb874c0341bd4476c534ad92a5c6c7a5fe5df5
parent4c49d9496baad1fa55aa5dc31976b97de553cebb (diff)
downloadupstream-02c8979f05a33526b29714050c41dca548c190f6.tar.gz
upstream-02c8979f05a33526b29714050c41dca548c190f6.tar.bz2
upstream-02c8979f05a33526b29714050c41dca548c190f6.zip
enable wds sta interface splitting by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12056 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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)