From 10b6b751f5cf8254e9e63f6082dd543e2bfee79e Mon Sep 17 00:00:00 2001
From: Maxime Bizon <mbizon@freebox.fr>
Date: Wed, 20 Nov 2013 21:37:16 +0100
Subject: [PATCH 05/18] hostapd: never create AP interface automatically.

---
 src/ap/hostapd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index fff769e..40563d4 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -704,7 +704,7 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
 				   hapd->conf->iface, hapd->own_addr, hapd,
 				   &hapd->drv_priv, force_ifname, if_addr,
 				   hapd->conf->bridge[0] ? hapd->conf->bridge :
-				   NULL, first == -1)) {
+				   NULL, 1)) {
 			wpa_printf(MSG_ERROR, "Failed to add BSS (BSSID="
 				   MACSTR ")", MAC2STR(hapd->own_addr));
 			hapd->interface_added = 0;
-- 
1.7.9.5

