Skip to content

Commit

Permalink
ath9k: use ath9k_hw_write_associd() on reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Oct 7, 2009
1 parent 7664072 commit 3453ad8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2476,9 +2476,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,

REG_WRITE(ah, AR_DEF_ANTENNA, saveDefAntenna);

REG_WRITE(ah, AR_BSS_ID0, get_unaligned_le32(sc->curbssid));
REG_WRITE(ah, AR_BSS_ID1, get_unaligned_le16(sc->curbssid + 4) |
((sc->curaid & 0x3fff) << AR_BSS_ID1_AID_S));
ath9k_hw_write_associd(ah);

REG_WRITE(ah, AR_ISR, ~0);

Expand Down

0 comments on commit 3453ad8

Please sign in to comment.