[PATCH v2] nl80211: Driver capability retrieval only once the interface is UP
Sreenath Sharma
sreenats
Mon Aug 5 23:18:00 PDT 2013
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 at broadcom.com>
---
src/drivers/driver_nl80211.c | 2 ++
1 file changed, 2 insertions(+)
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;
--
1.7.9.5
More information about the Hostap
mailing list