ath9k: Use ath9k_hw_setbssidmask() on reset
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>
This commit is contained in:
parent
f2b2143e60
commit
7664072b79
|
@ -2472,8 +2472,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
|
||||||
| ah->sta_id1_defaults);
|
| ah->sta_id1_defaults);
|
||||||
ath9k_hw_set_operating_mode(ah, ah->opmode);
|
ath9k_hw_set_operating_mode(ah, ah->opmode);
|
||||||
|
|
||||||
REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(sc->bssidmask));
|
ath9k_hw_setbssidmask(ah);
|
||||||
REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(sc->bssidmask + 4));
|
|
||||||
|
|
||||||
REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna);
|
REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue