From: Felix Fietkau Date: Fri, 7 Sep 2007 20:42:59 +0000 (+0000) Subject: fix madwifi channel setting (#2073) X-Git-Tag: 8.09_rc1~2787 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0739784fe8a9d4bcc951843cad7eba7e440d17a6;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix madwifi channel setting (#2073) SVN-Revision: 8681 --- 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"