mac80211: make netifd script create AP interface directly
[15.05/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index 824c87a..4f680a4 100644 (file)
@@ -447,7 +447,7 @@ mac80211_prepare_vif() {
                        mac80211_hostapd_setup_bss "$phy" "$ifname" "$macaddr" "$type" || return
 
                        [ -n "$hostapd_ctrl" ] || {
-                               iw phy "$phy" interface add "$ifname" type managed
+                               iw phy "$phy" interface add "$ifname" type __ap
                                hostapd_ctrl="${hostapd_ctrl:-/var/run/hostapd/$ifname}"
                        }
                ;;