mac80211: fix setup with more than 2 ap mode interfaces
authorFelix Fietkau <nbd@openwrt.org>
Tue, 2 Feb 2010 02:19:01 +0000 (02:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 2 Feb 2010 02:19:01 +0000 (02:19 +0000)
SVN-Revision: 19494

package/mac80211/files/lib/wifi/mac80211.sh

index 44082aa990c297c9f6828c823c2fb2e269aac79e..62b8e7ed3a4e4ce462939989bcfef17123151931 100644 (file)
@@ -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)