aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-10 11:57:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:25 -0400
commit3453ad8839ca91e1c11211d4d87dc3657c5a2b44 (patch)
tree741978ae5458fc04a4c277566a86915a0afc2ff9 /drivers/net/wireless/ath/ath9k/hw.c
parent7664072b7937d0bd5563800359e04ff4418572e0 (diff)
ath9k: use ath9k_hw_write_associd() on reset
Use the already provided helper instead of rewriting the code required in place. 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/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 227e40391b09..20c1b3edbd0a 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2476,9 +2476,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2476 2476
2477 REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna); 2477 REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna);
2478 2478
2479 REG_WRITE(ah, AR_BSS_ID0, get_unaligned_le32(sc->curbssid)); 2479 ath9k_hw_write_associd(ah);
2480 REG_WRITE(ah, AR_BSS_ID1, get_unaligned_le16(sc->curbssid + 4) |
2481 ((sc->curaid & 0x3fff) << AR_BSS_ID1_AID_S));
2482 2480
2483 REG_WRITE(ah, AR_ISR, ~0); 2481 REG_WRITE(ah, AR_ISR, ~0);
2484 2482