diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-10-17 14:02:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-17 14:02:07 -0400 |
commit | 9f96da4dd2ccf685b506a21104cb13b1aadd907a (patch) | |
tree | 5d9eff61123f096e2434a9d36e6fdbd4cc5c6292 /drivers/net/wireless/ath/ath9k/mac.c | |
parent | ccdbb6e96beca362db876d820ac1e560ff6d9579 (diff) | |
parent | b6b561c31d51db3dec0cb55412a5d7a1a2397521 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index a3eff0986a3f..6a18f9d3e9cc 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c | |||
@@ -374,7 +374,6 @@ EXPORT_SYMBOL(ath9k_hw_releasetxqueue); | |||
374 | bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q) | 374 | bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q) |
375 | { | 375 | { |
376 | struct ath_common *common = ath9k_hw_common(ah); | 376 | struct ath_common *common = ath9k_hw_common(ah); |
377 | struct ath9k_channel *chan = ah->curchan; | ||
378 | struct ath9k_tx_queue_info *qi; | 377 | struct ath9k_tx_queue_info *qi; |
379 | u32 cwMin, chanCwMin, value; | 378 | u32 cwMin, chanCwMin, value; |
380 | 379 | ||
@@ -387,10 +386,7 @@ bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q) | |||
387 | ath_dbg(common, QUEUE, "Reset TX queue: %u\n", q); | 386 | ath_dbg(common, QUEUE, "Reset TX queue: %u\n", q); |
388 | 387 | ||
389 | if (qi->tqi_cwmin == ATH9K_TXQ_USEDEFAULT) { | 388 | if (qi->tqi_cwmin == ATH9K_TXQ_USEDEFAULT) { |
390 | if (chan && IS_CHAN_B(chan)) | 389 | chanCwMin = INIT_CWMIN; |
391 | chanCwMin = INIT_CWMIN_11B; | ||
392 | else | ||
393 | chanCwMin = INIT_CWMIN; | ||
394 | 390 | ||
395 | for (cwMin = 1; cwMin < chanCwMin; cwMin = (cwMin << 1) | 1); | 391 | for (cwMin = 1; cwMin < chanCwMin; cwMin = (cwMin << 1) | 1); |
396 | } else | 392 | } else |