aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-10-01 21:03:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-10-02 14:26:32 -0400
commit5ba8d9d2f018f2c4e23f9e68b90ca5b9d5470457 (patch)
treed7d46001343a7e28466d5f0957256d4e51bac747 /drivers/net/wireless
parenta064eaa10ca4ec58d5a405c9a7f87efc6d2fa423 (diff)
ath9k: Fix queue handling for channel contexts
When a full chip reset is done, all the queues across all VIFs are stopped, but if MCC is enabled, only the queues of the current context is awakened, when we complete the reset. This results in unfairness for the inactive context. Since frames are queued internally in the driver if there is a context mismatch, we can awaken all the queues when coming out of a reset. The VIF-specific queues are still used in flow control, to ensure fairness when traffic is high. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 19bbc91325c2..9618cb35922d 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -264,12 +264,7 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)
264 264
265 ath9k_hw_set_interrupts(ah); 265 ath9k_hw_set_interrupts(ah);
266 ath9k_hw_enable_interrupts(ah); 266 ath9k_hw_enable_interrupts(ah);
267 267 ieee80211_wake_queues(sc->hw);
268 if (!ath9k_is_chanctx_enabled())
269 ieee80211_wake_queues(sc->hw);
270 else
271 ath9k_chanctx_wake_queues(sc, sc->cur_chan);
272
273 ath9k_p2p_ps_timer(sc); 268 ath9k_p2p_ps_timer(sc);
274 269
275 return true; 270 return true;