Browse Source

mac80211: fix setup with more than 2 ap mode interfaces

SVN-Revision: 19494
Felix Fietkau 16 years ago
parent
commit
52c2e565dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 0
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)