[PATCH 2/4] Fix bss overwriting inside wcn36xx_smd_config_bss

Eugene Krasnikov k.eugene.e at gmail.com
Mon May 27 07:39:50 EDT 2013


sta->bssid must contain bssid but not self_mac_addr

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

diff --git a/smd.c b/smd.c
index f8e6458..76085a9 100644
--- a/smd.c
+++ b/smd.c
@@ -663,7 +663,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, enum nl80211_iftype type,
 	bss->ext_channel = 0;
 	bss->reserved = 0;
 
-	memcpy(&sta->bssid, &wcn->addresses[0], ETH_ALEN);
+	memcpy(&sta->bssid, bssid, ETH_ALEN);
 	sta->aid = wcn->aid;
 	sta->type = 1;
 	sta->short_preamble_supported = 1;
-- 
1.7.11.3




More information about the wcn36xx mailing list