driver: Make setting up AP optional when creating AP interface
authorAvraham Stern <avraham.stern@intel.com>
Tue, 3 Nov 2015 14:30:09 +0000 (16:30 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Nov 2015 15:42:59 +0000 (17:42 +0200)
commitd8a3b66d7f5da3b5583d9c69d17a3630499e516f
tree5995825b6aaad648e641196177fb9eb0ce783a07
parent36e820605f113b4a02f2033d6c7a69bc5e707a03
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>
src/ap/ap_drv_ops.c
src/drivers/driver.h
src/drivers/driver_nl80211.c
wpa_supplicant/driver_i.h