enable wds sta interface splitting by default
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 1 Aug 2008 00:38:47 +0000 (00:38 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 1 Aug 2008 00:38:47 +0000 (00:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12056 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/files/lib/wifi/madwifi.sh

index 010391e..9d08e1f 100755 (executable)
@@ -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)
This page took 0.022966 seconds and 4 git commands to generate.