[PATCH] Remove correct interface

Eugene Krasnikov k.eugene.e at gmail.com
Tue Jun 18 09:17:17 EDT 2013


In remove_interface ops correct address must be deleted.
Otherwise in case of having more than one interface second
call will fail.

Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 1cc13bb..00d6931 100644
--- a/main.c
+++ b/main.c
@@ -627,7 +627,7 @@ static void wcn36xx_remove_interface(struct ieee80211_hw *hw,
 {
 	struct wcn36xx *wcn = hw->priv;
 	wcn36xx_dbg(WCN36XX_DBG_MAC, "mac remove interface vif %p", vif);
-	wcn36xx_smd_delete_sta_self(wcn, wcn->addresses[0].addr);
+	wcn36xx_smd_delete_sta_self(wcn, vif->addr);
 }
 
 static int wcn36xx_add_interface(struct ieee80211_hw *hw,
-- 
1.7.11.3




More information about the wcn36xx mailing list