diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-12 00:33:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:30 -0400 |
commit | e8c35a77e3408171852bde4914b650cf5b83e0d1 (patch) | |
tree | 8b62e9e059cc5ddc4f82d4cf774f2aaff8d0a911 | |
parent | 293f2ba897183872c182a4a3cf1996a1f547d7ee (diff) |
ath9k_htc: use common WMM AC definitions instead of ath9k ones
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc.h | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_beacon.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 13 |
5 files changed, 14 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h index 051b8d89b9f2..c584fbd2fe51 100644 --- a/drivers/net/wireless/ath/ath9k/htc.h +++ b/drivers/net/wireless/ath/ath9k/htc.h | |||
@@ -398,7 +398,7 @@ struct ath9k_htc_priv { | |||
398 | 398 | ||
399 | int beaconq; | 399 | int beaconq; |
400 | int cabq; | 400 | int cabq; |
401 | int hwq_map[ATH9K_WME_AC_VO+1]; | 401 | int hwq_map[WME_NUM_AC]; |
402 | 402 | ||
403 | #ifdef CONFIG_ATH9K_HTC_DEBUGFS | 403 | #ifdef CONFIG_ATH9K_HTC_DEBUGFS |
404 | struct ath9k_debug debug; | 404 | struct ath9k_debug debug; |
@@ -431,8 +431,7 @@ int ath9k_tx_init(struct ath9k_htc_priv *priv); | |||
431 | void ath9k_tx_tasklet(unsigned long data); | 431 | void ath9k_tx_tasklet(unsigned long data); |
432 | int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb); | 432 | int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb); |
433 | void ath9k_tx_cleanup(struct ath9k_htc_priv *priv); | 433 | void ath9k_tx_cleanup(struct ath9k_htc_priv *priv); |
434 | bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, | 434 | bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, int subtype); |
435 | enum ath9k_tx_queue_subtype qtype); | ||
436 | int ath9k_htc_cabq_setup(struct ath9k_htc_priv *priv); | 435 | int ath9k_htc_cabq_setup(struct ath9k_htc_priv *priv); |
437 | int get_hw_qnum(u16 queue, int *hwq_map); | 436 | int get_hw_qnum(u16 queue, int *hwq_map); |
438 | int ath_htc_txq_update(struct ath9k_htc_priv *priv, int qnum, | 437 | int ath_htc_txq_update(struct ath9k_htc_priv *priv, int qnum, |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c index 12a3bb0a9159..bd1506e69105 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c | |||
@@ -227,7 +227,7 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv) | |||
227 | { | 227 | { |
228 | struct ath_hw *ah = priv->ah; | 228 | struct ath_hw *ah = priv->ah; |
229 | struct ath9k_tx_queue_info qi, qi_be; | 229 | struct ath9k_tx_queue_info qi, qi_be; |
230 | int qnum = priv->hwq_map[ATH9K_WME_AC_BE]; | 230 | int qnum = priv->hwq_map[WME_AC_BE]; |
231 | 231 | ||
232 | memset(&qi, 0, sizeof(struct ath9k_tx_queue_info)); | 232 | memset(&qi, 0, sizeof(struct ath9k_tx_queue_info)); |
233 | memset(&qi_be, 0, sizeof(struct ath9k_tx_queue_info)); | 233 | memset(&qi_be, 0, sizeof(struct ath9k_tx_queue_info)); |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index 7339439f0bef..947de702ef96 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -521,23 +521,23 @@ static int ath9k_init_queues(struct ath9k_htc_priv *priv) | |||
521 | goto err; | 521 | goto err; |
522 | } | 522 | } |
523 | 523 | ||
524 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_BE)) { | 524 | if (!ath9k_htc_txq_setup(priv, WME_AC_BE)) { |
525 | ath_print(common, ATH_DBG_FATAL, | 525 | ath_print(common, ATH_DBG_FATAL, |
526 | "Unable to setup xmit queue for BE traffic\n"); | 526 | "Unable to setup xmit queue for BE traffic\n"); |
527 | goto err; | 527 | goto err; |
528 | } | 528 | } |
529 | 529 | ||
530 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_BK)) { | 530 | if (!ath9k_htc_txq_setup(priv, WME_AC_BK)) { |
531 | ath_print(common, ATH_DBG_FATAL, | 531 | ath_print(common, ATH_DBG_FATAL, |
532 | "Unable to setup xmit queue for BK traffic\n"); | 532 | "Unable to setup xmit queue for BK traffic\n"); |
533 | goto err; | 533 | goto err; |
534 | } | 534 | } |
535 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_VI)) { | 535 | if (!ath9k_htc_txq_setup(priv, WME_AC_VI)) { |
536 | ath_print(common, ATH_DBG_FATAL, | 536 | ath_print(common, ATH_DBG_FATAL, |
537 | "Unable to setup xmit queue for VI traffic\n"); | 537 | "Unable to setup xmit queue for VI traffic\n"); |
538 | goto err; | 538 | goto err; |
539 | } | 539 | } |
540 | if (!ath9k_htc_txq_setup(priv, ATH9K_WME_AC_VO)) { | 540 | if (!ath9k_htc_txq_setup(priv, WME_AC_VO)) { |
541 | ath_print(common, ATH_DBG_FATAL, | 541 | ath_print(common, ATH_DBG_FATAL, |
542 | "Unable to setup xmit queue for VO traffic\n"); | 542 | "Unable to setup xmit queue for VO traffic\n"); |
543 | goto err; | 543 | goto err; |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 8c463f5965fb..1c7263e3d1de 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -1590,7 +1590,7 @@ static int ath9k_htc_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
1590 | } | 1590 | } |
1591 | 1591 | ||
1592 | if ((priv->ah->opmode == NL80211_IFTYPE_ADHOC) && | 1592 | if ((priv->ah->opmode == NL80211_IFTYPE_ADHOC) && |
1593 | (qnum == priv->hwq_map[ATH9K_WME_AC_BE])) | 1593 | (qnum == priv->hwq_map[WME_AC_BE])) |
1594 | ath9k_htc_beaconq_config(priv); | 1594 | ath9k_htc_beaconq_config(priv); |
1595 | out: | 1595 | out: |
1596 | ath9k_htc_ps_restore(priv); | 1596 | ath9k_htc_ps_restore(priv); |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index ffebd5a61726..89d81ab3dce6 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | |||
@@ -34,15 +34,15 @@ int get_hw_qnum(u16 queue, int *hwq_map) | |||
34 | { | 34 | { |
35 | switch (queue) { | 35 | switch (queue) { |
36 | case 0: | 36 | case 0: |
37 | return hwq_map[ATH9K_WME_AC_VO]; | 37 | return hwq_map[WME_AC_VO]; |
38 | case 1: | 38 | case 1: |
39 | return hwq_map[ATH9K_WME_AC_VI]; | 39 | return hwq_map[WME_AC_VI]; |
40 | case 2: | 40 | case 2: |
41 | return hwq_map[ATH9K_WME_AC_BE]; | 41 | return hwq_map[WME_AC_BE]; |
42 | case 3: | 42 | case 3: |
43 | return hwq_map[ATH9K_WME_AC_BK]; | 43 | return hwq_map[WME_AC_BK]; |
44 | default: | 44 | default: |
45 | return hwq_map[ATH9K_WME_AC_BE]; | 45 | return hwq_map[WME_AC_BE]; |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
@@ -297,8 +297,7 @@ void ath9k_tx_cleanup(struct ath9k_htc_priv *priv) | |||
297 | 297 | ||
298 | } | 298 | } |
299 | 299 | ||
300 | bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, | 300 | bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, int subtype) |
301 | enum ath9k_tx_queue_subtype subtype) | ||
302 | { | 301 | { |
303 | struct ath_hw *ah = priv->ah; | 302 | struct ath_hw *ah = priv->ah; |
304 | struct ath_common *common = ath9k_hw_common(ah); | 303 | struct ath_common *common = ath9k_hw_common(ah); |