diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 3d879e7a8ea6..24b78c2eb44b 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -5839,7 +5839,7 @@ static inline bool ath9k_hw_init_cal(struct ath_hal *ah, | |||
5839 | } | 5839 | } |
5840 | 5840 | ||
5841 | 5841 | ||
5842 | bool ath9k_hw_reset(struct ath_hal *ah, enum ath9k_opmode opmode, | 5842 | bool ath9k_hw_reset(struct ath_hal *ah, |
5843 | struct ath9k_channel *chan, | 5843 | struct ath9k_channel *chan, |
5844 | enum ath9k_ht_macmode macmode, | 5844 | enum ath9k_ht_macmode macmode, |
5845 | u8 txchainmask, u8 rxchainmask, | 5845 | u8 txchainmask, u8 rxchainmask, |
@@ -5953,7 +5953,7 @@ bool ath9k_hw_reset(struct ath_hal *ah, enum ath9k_opmode opmode, | |||
5953 | | (ah->ah_config. | 5953 | | (ah->ah_config. |
5954 | ack_6mb ? AR_STA_ID1_ACKCTS_6MB : 0) | 5954 | ack_6mb ? AR_STA_ID1_ACKCTS_6MB : 0) |
5955 | | ahp->ah_staId1Defaults); | 5955 | | ahp->ah_staId1Defaults); |
5956 | ath9k_hw_set_operating_mode(ah, opmode); | 5956 | ath9k_hw_set_operating_mode(ah, ah->ah_opmode); |
5957 | 5957 | ||
5958 | REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(ahp->ah_bssidmask)); | 5958 | REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(ahp->ah_bssidmask)); |
5959 | REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(ahp->ah_bssidmask + 4)); | 5959 | REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(ahp->ah_bssidmask + 4)); |
@@ -5983,13 +5983,11 @@ bool ath9k_hw_reset(struct ath_hal *ah, enum ath9k_opmode opmode, | |||
5983 | for (i = 0; i < ah->ah_caps.total_queues; i++) | 5983 | for (i = 0; i < ah->ah_caps.total_queues; i++) |
5984 | ath9k_hw_resettxqueue(ah, i); | 5984 | ath9k_hw_resettxqueue(ah, i); |
5985 | 5985 | ||
5986 | ath9k_hw_init_interrupt_masks(ah, opmode); | 5986 | ath9k_hw_init_interrupt_masks(ah, ah->ah_opmode); |
5987 | ath9k_hw_init_qos(ah); | 5987 | ath9k_hw_init_qos(ah); |
5988 | 5988 | ||
5989 | ath9k_hw_init_user_settings(ah); | 5989 | ath9k_hw_init_user_settings(ah); |
5990 | 5990 | ||
5991 | ah->ah_opmode = opmode; | ||
5992 | |||
5993 | REG_WRITE(ah, AR_STA_ID1, | 5991 | REG_WRITE(ah, AR_STA_ID1, |
5994 | REG_READ(ah, AR_STA_ID1) | AR_STA_ID1_PRESERVE_SEQNUM); | 5992 | REG_READ(ah, AR_STA_ID1) | AR_STA_ID1_PRESERVE_SEQNUM); |
5995 | 5993 | ||