Patchwork [v2] nl80211: Driver capability retrieval only once the interface is UP

login
register
mail settings
Submitter Sreenath
Date Aug. 6, 2013, 6:18 a.m.
Message ID <20130806061800.GA13053@sreenath-Precision-M4700>
Download mbox | patch
Permalink /patch/264878/
State Superseded
Headers show

Comments

Sreenath - Aug. 6, 2013, 6:18 a.m.
Fixing hostapd compilation issue. The main intention of this patch is to
retrieve driver capabilities only once the interface is UP, similar to the
older approach before P2P_DEVICE integration. This approach will help
devices which can retrieve the capabilities from firmware only once the
interface is UP.

Signed-hostap: Sreenath Sharma <sreenats@broadcom.com>
---
 src/drivers/driver_nl80211.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 3104d42..06e5b4f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4011,6 +4011,7 @@  wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv)
 	dynamic_if = dynamic_if || drv->global->if_add_wdevid_set;
 	drv->global->if_add_wdevid_set = 0;
 
+#ifndef HOSTAPD
 	if (dynamic_if)
 		nlmode = nl80211_get_ifmode(bss);
 
@@ -4032,6 +4033,7 @@  wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv)
 		netlink_send_oper_ifla(drv->global->netlink, drv->ifindex,
 					       1, IF_OPER_DORMANT);
 	}
+#endif /* HOSTAPD */
 
 	if (wpa_driver_nl80211_capa(drv))
 		return -1;