[PATCH] nl80211: set NLMODE correctly for AP interface
Avinash Patil
patila
Fri May 2 11:33:17 PDT 2014
During supplicant/hostapd initialization, current implementation
sets NLMODE as AP only when hostapd has been started or for dynamically
created interfaces.
If supplicant is used for AP operations on statically created AP
interfaces, this also should also set NLMODE as AP.
This patch handles this case.
Signed-off-by: Avinash Patil <patila at marvell.com>
---
src/drivers/driver_nl80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 1300703..be222d9 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4698,7 +4698,7 @@ wpa_driver_nl80211_finish_drv_init(struct
wpa_driver_nl80211_data *drv,
if (first && nl80211_get_ifmode(bss) == NL80211_IFTYPE_AP)
drv->start_mode_ap = 1;
- if (drv->hostapd)
+ if (drv->hostapd || nl80211_get_ifmode(bss) == NL80211_IFTYPE_AP)
nlmode = NL80211_IFTYPE_AP;
else if (bss->if_dynamic)
nlmode = nl80211_get_ifmode(bss);
--
1.8.1.4
More information about the Hostap
mailing list