Skip to content

Commit

Permalink
ath9k: Fix queue handling for channel contexts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Oct 2, 2014
1 parent a064eaa commit 5ba8d9d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,7 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)

ath9k_hw_set_interrupts(ah);
ath9k_hw_enable_interrupts(ah);

if (!ath9k_is_chanctx_enabled())
ieee80211_wake_queues(sc->hw);
else
ath9k_chanctx_wake_queues(sc, sc->cur_chan);

ieee80211_wake_queues(sc->hw);
ath9k_p2p_ps_timer(sc);

return true;
Expand Down

0 comments on commit 5ba8d9d

Please sign in to comment.