ath5k: fix regression which triggers an SME join upon assoc
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 7 Oct 2009 00:44:33 +0000 (20:44 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:50 +0000 (16:39 -0400)
This fixes a regression introduced by patch titled:

"atheros: define shared bssidmask setting"

The register for the BSSID was exchanged for the bssid mask register.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/pcu.c

index 2ab9c0ecbb8b07cac4bf65aa2b5b90c0a0e39c74..64fc1eb9b6d91964d724f389661d8d1d7b828b0c 100644 (file)
@@ -295,11 +295,11 @@ void ath5k_hw_set_associd(struct ath5k_hw *ah)
         */
        ath5k_hw_reg_write(ah,
                           get_unaligned_le32(common->curbssid),
-                          AR_BSSMSKL);
+                          AR5K_BSS_ID0);
        ath5k_hw_reg_write(ah,
                           get_unaligned_le16(common->curbssid + 4) |
                           ((common->curaid & 0x3fff) << AR5K_BSS_ID1_AID_S),
-                          AR_BSSMSKU);
+                          AR5K_BSS_ID1);
 
        if (common->curaid == 0) {
                ath5k_hw_disable_pspoll(ah);