mac80211: fix setup with more than 2 ap mode interfaces

SVN-Revision: 19494
This commit is contained in:
Felix Fietkau 2010-02-02 02:19:01 +00:00
parent d44853204c
commit 52c2e565dd

View file

@ -247,6 +247,7 @@ enable_mac80211() {
# Hostapd will handle recreating the interface and # Hostapd will handle recreating the interface and
# it's accompanying monitor # it's accompanying monitor
apidx="$(($apidx + 1))" apidx="$(($apidx + 1))"
i=$(($i + 1))
[ "$apidx" -gt 1 ] || iw phy "$phy" interface add "$ifname" type managed [ "$apidx" -gt 1 ] || iw phy "$phy" interface add "$ifname" type managed
;; ;;
mesh) mesh)