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 /package/madwifi/files/lib/wifi | |
parent | 2a59f52a0f057a15d1f3ea79796a2951490f8a8c (diff) | |
download | master-31e0f0ae-5f09427160146267ea15d5ef8d779aa124132aea.tar.gz master-31e0f0ae-5f09427160146267ea15d5ef8d779aa124132aea.tar.bz2 master-31e0f0ae-5f09427160146267ea15d5ef8d779aa124132aea.zip |
madwifi: only set the desired mode for the first vap
SVN-Revision: 15059
Diffstat (limited to 'package/madwifi/files/lib/wifi')
-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 3c4112a4ff..0124285d08 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 } |