From 9263a154e8be1d747ce364362992a2e3eb97a7fd Mon Sep 17 00:00:00 2001 From: Felix Fietkau 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 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 <