diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-29 00:10:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-29 00:10:31 +0000 |
commit | 5f09427160146267ea15d5ef8d779aa124132aea (patch) | |
tree | feda682c47ef2641f1e04d507b232f3a22572653 | |
parent | 2a59f52a0f057a15d1f3ea79796a2951490f8a8c (diff) | |
download | mtk-20170518-5f09427160146267ea15d5ef8d779aa124132aea.zip mtk-20170518-5f09427160146267ea15d5ef8d779aa124132aea.tar.gz mtk-20170518-5f09427160146267ea15d5ef8d779aa124132aea.tar.bz2 |
madwifi: only set the desired mode for the first vap
SVN-Revision: 15059
-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 3c4112a..0124285 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -120,10 +120,10 @@ enable_atheros() { *fh) hwmode=fh;; *) hwmode=auto;; esac - iwpriv "$ifname" mode "$hwmode" iwpriv "$ifname" pureg "$pureg" [ "$first" = 1 ] && { + iwpriv "$ifname" mode "$hwmode" iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null } |