Patchwork nl80211: Remove redundant assignment of ifindex

login
register
mail settings
Submitter Mohammed Shafi Shajakhan
Date June 26, 2013, 7:33 a.m.
Message ID <1372232001-11067-1-git-send-email-mohammed@qca.qualcomm.com>
Download mbox | patch
Permalink /patch/254589/
State Accepted
Commit ed07764699012e0c10cf9b9bc9b15fb1cb769a15
Headers show

Comments

Mohammed Shafi Shajakhan - June 26, 2013, 7:33 a.m.
From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>

wpa_driver_nl80211_finish_drv_init takes care of assigning
the interface index.

Signed-hostap : Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
 src/drivers/driver_nl80211.c |    1 -
 1 file changed, 1 deletion(-)
Jouni Malinen - July 21, 2013, 10:21 a.m.
On Wed, Jun 26, 2013 at 01:03:21PM +0530, Mohammed Shafi Shajakhan wrote:
> wpa_driver_nl80211_finish_drv_init takes care of assigning
> the interface index.

Thanks, applied.

Patch

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);