aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/qcu.c
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-12-07 11:08:12 +0900
committerJohn W. Linville <linville@tuxdriver.com>2010-12-07 17:07:54 -0500
commit22d8d9f81b8b054df2f7f82daffcb71608f411e4 (patch)
tree445ee23a04aa68cbd3b5b599637ebb39d6bf8a32 /drivers/net/wireless/ath/ath5k/qcu.c
parentath9k: Make DMA warning in ath_stoprecv WARN_ON_ONCE. (diff)
downloadlinux-dev-22d8d9f81b8b054df2f7f82daffcb71608f411e4.tar.xz
linux-dev-22d8d9f81b8b054df2f7f82daffcb71608f411e4.zip
ath5k: Use capabilities information for the number of TX queues
One thing I missed in my WME series: Older hardware does not have enough hardware queues to support WME. In this case we just set up one data queue. Use the capability information to decide how many queues to set up. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/qcu.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/qcu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c
index 1849eee8235c..2c9c9e793d4e 100644
--- a/drivers/net/wireless/ath/ath5k/qcu.c
+++ b/drivers/net/wireless/ath/ath5k/qcu.c
@@ -152,8 +152,8 @@ int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
/*
* Get queue by type
*/
- /*5210 only has 2 queues*/
- if (ah->ah_version == AR5K_AR5210) {
+ /* 5210 only has 2 queues */
+ if (ah->ah_capabilities.cap_queues.q_tx_num == 2) {
switch (queue_type) {
case AR5K_TX_QUEUE_DATA:
queue = AR5K_TX_QUEUE_ID_NOQCU_DATA;