From 410d80b0c87de11d3f70b012b8168b8b00a76f3a Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 25 Jan 2008 20:24:25 +0000 Subject: 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 --- package/madwifi/files/lib/wifi/madwifi.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package/madwifi/files/lib') 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 <