ath9k: Use ath9k_hw_setbssidmask() on reset
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 10 Sep 2009 15:54:56 +0000 (08:54 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:25 +0000 (16:39 -0400)
The same code was being implemented on reset for setting the bssidmask,
instead just use the already provided helper.

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

index 721b0c9e3eabe25e7ed9a9795005629e6163a485..227e40391b092c30f4c996ac383ebc16ce02e523 100644 (file)
@@ -2472,8 +2472,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
                  | ah->sta_id1_defaults);
        ath9k_hw_set_operating_mode(ah, ah->opmode);
 
-       REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(sc->bssidmask));
-       REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(sc->bssidmask + 4));
+       ath9k_hw_setbssidmask(ah);
 
        REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna);