[PATCH] nl80211: Remove redundant assignment of ifindex
Mohammed Shafi Shajakhan
mohammed
Wed Jun 26 00:33:21 PDT 2013
From: Mohammed Shafi Shajakhan <mohammed at qca.qualcomm.com>
wpa_driver_nl80211_finish_drv_init takes care of assigning
the interface index.
Signed-hostap : Mohammed Shafi Shajakhan <mohammed at qca.qualcomm.com>
---
src/drivers/driver_nl80211.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index cde90f0..2c21f95 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1050,7 +1050,6 @@ static int wpa_driver_nl80211_own_ifindex(struct wpa_driver_nl80211_data *drv,
return 1;
if (drv->if_removed && wpa_driver_nl80211_own_ifname(drv, buf, len)) {
- drv->first_bss.ifindex = if_nametoindex(drv->first_bss.ifname);
wpa_printf(MSG_DEBUG, "nl80211: Update ifindex for a removed "
"interface");
wpa_driver_nl80211_finish_drv_init(drv);
--
1.7.9.5
More information about the Hostap
mailing list