aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-25 20:24:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-01-25 20:24:25 +0000
commit1fb5433154f637fce9803dd0ff603580c8c69af1 (patch)
tree7e2ca9b81d7732cd4ee2df0d5ec7f45a12ca6a2d /package/madwifi/files
parent76eef0ab425961fe454ff8ed0e0d0097790d3695 (diff)
downloadupstream-1fb5433154f637fce9803dd0ff603580c8c69af1.tar.gz
upstream-1fb5433154f637fce9803dd0ff603580c8c69af1.tar.bz2
upstream-1fb5433154f637fce9803dd0ff603580c8c69af1.zip
upgrade madwifi, finally fix the annoying ap auto channel selection bug, default to automatic channel selection
SVN-Revision: 10259
Diffstat (limited to 'package/madwifi/files')
-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 ca933a1ddd..6baf482dc5 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