326-ath5k-fix-hardware-queue-index-assignment.patch 938 B

1234567891011121314151617181920212223242526272829
  1. From: Felix Fietkau <[email protected]>
  2. Date: Sun, 30 Nov 2014 21:51:12 +0100
  3. Subject: [PATCH] ath5k: fix hardware queue index assignment
  4. Like with ath9k, ath5k queues also need to be ordered by priority.
  5. queue_info->tqi_subtype already contains the correct index, so use it
  6. instead of relying on the order of ath5k_hw_setup_tx_queue calls.
  7. Cc: [email protected]
  8. Signed-off-by: Felix Fietkau <[email protected]>
  9. ---
  10. --- a/drivers/net/wireless/ath/ath5k/qcu.c
  11. +++ b/drivers/net/wireless/ath/ath5k/qcu.c
  12. @@ -225,13 +225,7 @@ ath5k_hw_setup_tx_queue(struct ath5k_hw
  13. } else {
  14. switch (queue_type) {
  15. case AR5K_TX_QUEUE_DATA:
  16. - for (queue = AR5K_TX_QUEUE_ID_DATA_MIN;
  17. - ah->ah_txq[queue].tqi_type !=
  18. - AR5K_TX_QUEUE_INACTIVE; queue++) {
  19. -
  20. - if (queue > AR5K_TX_QUEUE_ID_DATA_MAX)
  21. - return -EINVAL;
  22. - }
  23. + queue = queue_info->tqi_subtype;
  24. break;
  25. case AR5K_TX_QUEUE_UAPSD:
  26. queue = AR5K_TX_QUEUE_ID_UAPSD;