path: root/wpa_supplicant/driver_i.h
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 /wpa_supplicant/driver_i.h
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 'wpa_supplicant/driver_i.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index f325154..3c2d80b 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -401,7 +401,7 @@ static inline int wpa_drv_if_add(struct wpa_supplicant *wpa_s,
if (wpa_s->driver->if_add)
return wpa_s->driver->if_add(wpa_s->drv_priv, type, ifname,
addr, bss_ctx, NULL, force_ifname,
- if_addr, bridge, 0);
+ if_addr, bridge, 0, 0);
return -1;