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 | 540967d4842d9ec2a7620d60e4df13495524f0d8 (patch) | |
tree | d40624fa109b4b1295ab3392611e237f797e16bc | |
parent | 6006799af7b2070c50f72429c978bfaeff26f263 (diff) | |
download | master-187ad058-540967d4842d9ec2a7620d60e4df13495524f0d8.tar.gz master-187ad058-540967d4842d9ec2a7620d60e4df13495524f0d8.tar.bz2 master-187ad058-540967d4842d9ec2a7620d60e4df13495524f0d8.zip |
madwifi: only set the desired mode for the first vap
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15059 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 } |