diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-09-07 20:42:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-09-07 20:42:59 +0000 |
commit | cb85463818d1d6ce05b74340864f67b10db23e4c (patch) | |
tree | d65f59bbb43050efe770587f16ed93c786570f1e /package/madwifi/files/lib/wifi/madwifi.sh | |
parent | 6ad5c919ce455b1046633901cdfb1480f92ac31b (diff) | |
download | upstream-cb85463818d1d6ce05b74340864f67b10db23e4c.tar.gz upstream-cb85463818d1d6ce05b74340864f67b10db23e4c.tar.bz2 upstream-cb85463818d1d6ce05b74340864f67b10db23e4c.zip |
fix madwifi channel setting (#2073)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8681 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/lib/wifi/madwifi.sh')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2a86e91905..9198615538 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -103,7 +103,7 @@ enable_atheros() { *a) agmode=11a;; *) agmode=auto;; esac - iwconfig "$ifname" channel 0 >/dev/null 2>/dev/null + iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null ifconfig "$ifname" up sleep 1 iwpriv "$ifname" mode "$agmode" |