diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index bc92b4579b27..48d121c24eb7 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -1346,8 +1346,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | |||
1346 | ath9k_hw_spur_mitigate_freq(ah, chan); | 1346 | ath9k_hw_spur_mitigate_freq(ah, chan); |
1347 | ah->eep_ops->set_board_values(ah, chan); | 1347 | ah->eep_ops->set_board_values(ah, chan); |
1348 | 1348 | ||
1349 | ath9k_hw_set_operating_mode(ah, ah->opmode); | ||
1350 | |||
1351 | ENABLE_REGWRITE_BUFFER(ah); | 1349 | ENABLE_REGWRITE_BUFFER(ah); |
1352 | 1350 | ||
1353 | REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); | 1351 | REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); |
@@ -1365,6 +1363,8 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | |||
1365 | 1363 | ||
1366 | REGWRITE_BUFFER_FLUSH(ah); | 1364 | REGWRITE_BUFFER_FLUSH(ah); |
1367 | 1365 | ||
1366 | ath9k_hw_set_operating_mode(ah, ah->opmode); | ||
1367 | |||
1368 | r = ath9k_hw_rf_set_freq(ah, chan); | 1368 | r = ath9k_hw_rf_set_freq(ah, chan); |
1369 | if (r) | 1369 | if (r) |
1370 | return r; | 1370 | return r; |