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
commitcac682810c6c884deb636ee82937b97eb72b6844 (patch)
tree9b255f4cf45a69213b967b3276d538ace0af96cb /package/madwifi
parent42ba24454143cd59cf4b354f3c81e5faa3dafed8 (diff)
downloadmaster-187ad058-cac682810c6c884deb636ee82937b97eb72b6844.tar.gz
master-187ad058-cac682810c6c884deb636ee82937b97eb72b6844.tar.bz2
master-187ad058-cac682810c6c884deb636ee82937b97eb72b6844.zip
adhoc has issues with bgscan as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8394 3c298f89-4303-0410-b956-a3cf2f4a3e73
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" >&-