Skip to contentSkip to conversation

mwl8k: Configuring correct MAC address in broadcast key

PATCH In review Yogesh Ashok Powar 2 participants 2 messages Jan 27, 2012 – Jan 30, 2012 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mwl8k: Configuring correct MAC address in broadcast key

While configuring the broadcast key in the hardware, in multi-BSS environment, BSSes other than first were incorrectly configured with the MAC address of first BSS. Fixing it with correct MAC addresses.

---
(resent to include the linux-wireless list)

 drivers/net/wireless/mwl8k.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/mwl8k.c +1 -1
index dd5aeaf..fd12547 100644
@@ -4093,7 +4093,7 @@ static int mwl8k_set_key(struct ieee80211_hw *hw,
 		return -EOPNOTSUPP;
 
 	if (sta == NULL)
-		addr = hw->wiphy->perm_addr;
+		addr = vif->addr;
 	else
 		addr = sta->addr;
 
Signature · 1 line
1.7.5.4
#1 lore raw

Hello,

Quoted 8 lines · Yogesh Ashok Powar

While configuring the broadcast key in the hardware, in multi-BSS environment, BSSes other than first were incorrectly configured with the MAC address of first BSS. Fixing it with correct MAC addresses.

---
(resent to include the linux-wireless list)

You might want to get this fix included for the stable 3.0, 3.1 and 3.2 releases since mwl8k_set_key() was introduced in 2.6.39 with:
fcdc403c31ed5bb5f3baf42f4e2b5e7198fef0c0: mwl8k: Enable HW encryption for AP mode

Quoted 18 lines

  drivers/net/wireless/mwl8k.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/mwl8k.c +1 -1
index dd5aeaf..fd12547 100644
@@ -4093,7 +4093,7 @@ static int mwl8k_set_key(struct ieee80211_hw *hw,
  		return -EOPNOTSUPP;
 
  	if (sta == NULL)
-		addr = hw->wiphy->perm_addr;
+		addr = vif->addr;
  	else
  		addr = sta->addr;