mwl8k: Configuring correct MAC address in broadcast key
authorYogesh Ashok Powar <yogeshp@marvell.com>
Fri, 27 Jan 2012 10:38:27 +0000 (16:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jan 2012 19:57:07 +0000 (14:57 -0500)
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.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index dd5aeaff44ba3483804df003bd5779cbf0138794..fd125473be7a32f1afba257f5db8698498e822c0 100644 (file)
@@ -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;