diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-10-06 20:44:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:49 -0400 |
commit | a72d57a862f700edf85da81aae3cd8f923e989a1 (patch) | |
tree | 4d8a6084e62f21944c5e812acb9fa4395fc89541 /drivers/net/wireless/ath/ath5k | |
parent | eb053a037d8951018bdc9133c8d312da9cd0aefb (diff) |
ath5k: use ath_hw_setbssidmask() for bssid mask setting upon assoc
This should avoid future typos.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/pcu.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c index 0385e8022529..32fd5f88fb73 100644 --- a/drivers/net/wireless/ath/ath5k/pcu.c +++ b/drivers/net/wireless/ath/ath5k/pcu.c | |||
@@ -288,13 +288,8 @@ void ath5k_hw_set_associd(struct ath5k_hw *ah, const u8 *bssid, u16 assoc_id) | |||
288 | /* | 288 | /* |
289 | * Set simple BSSID mask on 5212 | 289 | * Set simple BSSID mask on 5212 |
290 | */ | 290 | */ |
291 | if (ah->ah_version == AR5K_AR5212) { | 291 | if (ah->ah_version == AR5K_AR5212) |
292 | ath5k_hw_reg_write(ah, get_unaligned_le32(common->bssidmask), | 292 | ath_hw_setbssidmask(common); |
293 | AR_BSSMSKL); | ||
294 | ath5k_hw_reg_write(ah, | ||
295 | get_unaligned_le16(common->bssidmask + 4), | ||
296 | AR_BSSMSKU); | ||
297 | } | ||
298 | 293 | ||
299 | /* | 294 | /* |
300 | * Set BSSID which triggers the "SME Join" operation | 295 | * Set BSSID which triggers the "SME Join" operation |