X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ebae5f1bae403c4ce03d66ae9a13a358a2be55f6..7ba36c94c218514a2536d3ef1f969bb9ff4f8d02:/package/madwifi/files/lib/wifi/madwifi.sh diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 010391e35..9d08e1fab 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)