aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-08-10 23:28:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-08-10 23:28:05 +0000
commit8445b132ce24536f4364fb15a5f9f9cf9f5ea03a (patch)
treec41955313791423b635aaf62f9f83ffed162effc /package/madwifi
parent8243f3c1b1143f5cba019a7a2ee21394abdd540c (diff)
downloadupstream-8445b132ce24536f4364fb15a5f9f9cf9f5ea03a.tar.gz
upstream-8445b132ce24536f4364fb15a5f9f9cf9f5ea03a.tar.bz2
upstream-8445b132ce24536f4364fb15a5f9f9cf9f5ea03a.zip
adhoc has issues with bgscan as well
SVN-Revision: 8394
Diffstat (limited to 'package/madwifi')
-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 9f464065a7..2a86e91905 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" >&-