From: Felix Fietkau Date: Fri, 1 Aug 2008 00:38:47 +0000 (+0000) Subject: enable wds sta interface splitting by default X-Git-Tag: v19.07.0-rc1~36583 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8970a1213b9ea35f40ba4d5fedfa2158efcb13d3;p=openwrt%2Fstaging%2Fhauke.git enable wds sta interface splitting by default SVN-Revision: 12056 --- 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)