summaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-25 20:24:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-25 20:24:25 +0000
commit410d80b0c87de11d3f70b012b8168b8b00a76f3a (patch)
tree4e3303781886c63c588dc1a3a24f7c73b5e058f7 /package/madwifi/files/lib
parent2e734b065d31303b5f71262dedc827633db1b35f (diff)
upgrade madwifi, finally fix the annoying ap auto channel selection bug, default to automatic channel selection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10259 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index ca933a1dd..6baf482dc 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -74,7 +74,9 @@ enable_atheros() {
local device="$1"
config_get channel "$device" channel
config_get vifs "$device" vifs
-
+
+ [ auto = "$channel" ] && channel=0
+
local first=1
for vif in $vifs; do
nosbeacon=
@@ -306,7 +308,7 @@ detect_atheros() {
cat <<EOF
config wifi-device $dev
option type atheros
- option channel 5
+ option channel auto
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1