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 | 0739784fe8a9d4bcc951843cad7eba7e440d17a6 (patch) | |
tree | 61121dd6eb8088402ea025069d93245ec44e1f29 /package/madwifi/files | |
parent | 4db9556f9935512f3b0bdff4b8bc5b159fde190a (diff) | |
download | upstream-0739784fe8a9d4bcc951843cad7eba7e440d17a6.tar.gz upstream-0739784fe8a9d4bcc951843cad7eba7e440d17a6.tar.bz2 upstream-0739784fe8a9d4bcc951843cad7eba7e440d17a6.zip |
fix madwifi channel setting (#2073)
SVN-Revision: 8681
Diffstat (limited to 'package/madwifi/files')
-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" |