[PATCH 5/5] Use mac address received from vif

Olof Johansson dev at skyshaper.net
Thu May 23 07:49:52 EDT 2013


Use the mac address from the vif instead. This way we don't need to
keep track of it ourselves.

Signed-off-by: Olof Johansson <dev at skyshaper.net>
---
 main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 3d35551..8f02a0b 100644
--- a/main.c
+++ b/main.c
@@ -255,10 +255,10 @@ static int wcn36xx_add_interface(struct ieee80211_hw *hw,
 	if(vif) {
 		switch (vif->type) {
 		case NL80211_IFTYPE_STATION:
-			wcn36xx_smd_add_sta_self(wcn, wcn->addresses[0].addr, 0);
+			wcn36xx_smd_add_sta_self(wcn, vif->addr, 0);
 			break;
 		case NL80211_IFTYPE_AP:
-			wcn36xx_smd_add_sta_self(wcn, wcn->addresses[0].addr, 0);
+			wcn36xx_smd_add_sta_self(wcn, vif->addr, 0);
 			break;
 		default:
 			wcn36xx_warn("Unsupported interface type requested: %d",
-- 
1.8.2.2



More information about the wcn36xx mailing list