summaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 9f464065a..2a86e9190 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -157,10 +157,8 @@ enable_atheros() {
esac
config_get ssid "$vif" ssid
- [ "$mode" = "sta" ] && {
- config_get_bool bgscan "$vif" bgscan 0
- iwpriv "$ifname" bgscan "$bgscan"
- }
+ config_get_bool bgscan "$vif" bgscan 0
+ iwpriv "$ifname" bgscan "$bgscan"
config_get_bool antdiv "$device" diversity 1
sysctl -w dev."$device".diversity="$antdiv" >&-