aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/files/lib/wifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-02-02 02:19:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-02-02 02:19:01 +0000
commit0596f724bb4a98d37baf5e35194ad3f3d027620d (patch)
treeca2055d2a6e59d9878096b96f2555268eabd7313 /package/mac80211/files/lib/wifi
parent900d16b6f309a50f1a037ba86dd892c53419e557 (diff)
downloadmaster-187ad058-0596f724bb4a98d37baf5e35194ad3f3d027620d.tar.gz
master-187ad058-0596f724bb4a98d37baf5e35194ad3f3d027620d.tar.bz2
master-187ad058-0596f724bb4a98d37baf5e35194ad3f3d027620d.zip
mac80211: fix setup with more than 2 ap mode interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19494 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files/lib/wifi')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 44082aa990..62b8e7ed3a 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -247,6 +247,7 @@ enable_mac80211() {
# Hostapd will handle recreating the interface and
# it's accompanying monitor
apidx="$(($apidx + 1))"
+ i=$(($i + 1))
[ "$apidx" -gt 1 ] || iw phy "$phy" interface add "$ifname" type managed
;;
mesh)