aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
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
commit5f09427160146267ea15d5ef8d779aa124132aea (patch)
treefeda682c47ef2641f1e04d507b232f3a22572653 /package/madwifi/files
parent2a59f52a0f057a15d1f3ea79796a2951490f8a8c (diff)
downloadupstream-5f09427160146267ea15d5ef8d779aa124132aea.tar.gz
upstream-5f09427160146267ea15d5ef8d779aa124132aea.tar.bz2
upstream-5f09427160146267ea15d5ef8d779aa124132aea.zip
madwifi: only set the desired mode for the first vap
SVN-Revision: 15059
Diffstat (limited to 'package/madwifi/files')
-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
}