ath5k: fix regression on setting bssid mask on association
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 7 Oct 2009 00:44:28 +0000 (20:44 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:49 +0000 (16:39 -0400)
There was a typo on the second bssid mask register.
This was caused by the patch titled:

"ath5k: use common curbssid, bssidmask and macaddr"

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 9ac763875a987c8e9dde1cb9533f42ea2790ddf2..0385e80225294c670f68e9fc89adcca461893913 100644 (file)
@@ -292,7 +292,7 @@ void ath5k_hw_set_associd(struct ath5k_hw *ah, const u8 *bssid, u16 assoc_id)
                ath5k_hw_reg_write(ah, get_unaligned_le32(common->bssidmask),
                                   AR_BSSMSKL);
                ath5k_hw_reg_write(ah,
-                                  get_unaligned_le16(common->curbssid + 4),
+                                  get_unaligned_le16(common->bssidmask + 4),
                                   AR_BSSMSKU);
        }