aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-29 00:10:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-29 00:10:31 +0000
commit540967d4842d9ec2a7620d60e4df13495524f0d8 (patch)
treed40624fa109b4b1295ab3392611e237f797e16bc
parent6006799af7b2070c50f72429c978bfaeff26f263 (diff)
downloadupstream-540967d4842d9ec2a7620d60e4df13495524f0d8.tar.gz
upstream-540967d4842d9ec2a7620d60e4df13495524f0d8.tar.bz2
upstream-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-xpackage/madwifi/files/lib/wifi/madwifi.sh2
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
}