path: root/src/ap/ap_drv_ops.c
diff options
authorAvraham Stern <avraham.stern@intel.com>2015-11-03 14:30:09 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-22 15:42:59 (GMT)
commitd8a3b66d7f5da3b5583d9c69d17a3630499e516f (patch)
tree5995825b6aaad648e641196177fb9eb0ce783a07 /src/ap/ap_drv_ops.c
parent36e820605f113b4a02f2033d6c7a69bc5e707a03 (diff)
driver: Make setting up AP optional when creating AP interface
When an AP interface it created, it is also setup and subscribes for management frames etc. However, when the interface is added by wpa_supplicant, setting up for AP operations is redundant because it will be done by wpa_supplicant on wpa_drv_init() when setting the interface mode to AP. In addition, it may cause wpa_supplicant to fail initializing the interface as it will try to subscribe for management frames on this interface but the interface is already registered. Change this, so when adding an AP interface, make setting up the AP optional, and use it only when the interface is added by hostapd but not when it is added by wpa_supplicant. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 656f0a7..b390450 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -468,7 +468,7 @@ int hostapd_if_add(struct hostapd_data *hapd, enum wpa_driver_if_type type,
return -1;
return hapd->driver->if_add(hapd->drv_priv, type, ifname, addr,
bss_ctx, drv_priv, force_ifname, if_addr,
- bridge, use_existing);
+ bridge, use_existing, 1);