diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2010-05-14 01:48:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:13:03 -0400 |
commit | ca74b83b66dbd289a395c6243695d746c76676cc (patch) | |
tree | 99a7093d9f9cecf896d3cf8583405300707be9eb /drivers/net/wireless/ath/ath9k/htc_drv_init.c | |
parent | 2edb4583c6a581e1e48af259db2a2d467d11551d (diff) |
ath9k_htc: Initialize beacon/CAB queues
This patch initializes the beacon and CAB HW queues
when the driver is loaded.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index dc015077a8d9..7ec2c2ec9d52 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -420,6 +420,20 @@ static int ath9k_init_queues(struct ath9k_htc_priv *priv) | |||
420 | for (i = 0; i < ARRAY_SIZE(priv->hwq_map); i++) | 420 | for (i = 0; i < ARRAY_SIZE(priv->hwq_map); i++) |
421 | priv->hwq_map[i] = -1; | 421 | priv->hwq_map[i] = -1; |
422 | 422 | ||
423 | priv->beaconq = ath9k_hw_beaconq_setup(priv->ah); | ||
424 | if (priv->beaconq == -1) { | ||
425 | ath_print(common, ATH_DBG_FATAL, | ||
426 | "Unable to setup BEACON xmit queue\n"); | ||
427 | goto err; | ||
428 | } | ||
429 | |||
430 | priv->cabq = ath9k_htc_cabq_setup(priv); | ||
431 | if (priv->cabq == -1) { | ||
432 | ath_print(common, ATH_DBG_FATAL, | ||
433 | "Unable to setup CAB xmit queue\n"); | ||
434 | goto err; | ||
435 | } | ||
436 | |||
423 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_BE)) { | 437 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_BE)) { |
424 | ath_print(common, ATH_DBG_FATAL, | 438 | ath_print(common, ATH_DBG_FATAL, |
425 | "Unable to setup xmit queue for BE traffic\n"); | 439 | "Unable to setup xmit queue for BE traffic\n"); |