diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-01-25 20:24:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-01-25 20:24:25 +0000 |
commit | 1fb5433154f637fce9803dd0ff603580c8c69af1 (patch) | |
tree | 7e2ca9b81d7732cd4ee2df0d5ec7f45a12ca6a2d /package/madwifi/files/lib/wifi/madwifi.sh | |
parent | 76eef0ab425961fe454ff8ed0e0d0097790d3695 (diff) | |
download | mtk-20170518-1fb5433154f637fce9803dd0ff603580c8c69af1.zip mtk-20170518-1fb5433154f637fce9803dd0ff603580c8c69af1.tar.gz mtk-20170518-1fb5433154f637fce9803dd0ff603580c8c69af1.tar.bz2 |
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/lib/wifi/madwifi.sh')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 6 |
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 ca933a1..6baf482 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 |