Commit b80841c9 authored by Sujith's avatar Sujith Committed by John W. Linville

ath9k_htc: Remove HW queue translation

There is no need to determine the HW queue
for each packet that is transmitted. The endpoint
can be chosen directly based on the queue type
that mac80211 sends down.
Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ca74b83b
...@@ -81,7 +81,7 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb) ...@@ -81,7 +81,7 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb)
struct ath9k_htc_vif *avp; struct ath9k_htc_vif *avp;
struct ath9k_htc_tx_ctl tx_ctl; struct ath9k_htc_tx_ctl tx_ctl;
enum htc_endpoint_id epid; enum htc_endpoint_id epid;
u16 qnum, hw_qnum; u16 qnum;
__le16 fc; __le16 fc;
u8 *tx_fhdr; u8 *tx_fhdr;
u8 sta_idx; u8 sta_idx;
...@@ -141,22 +141,21 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb) ...@@ -141,22 +141,21 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb)
memcpy(tx_fhdr, (u8 *) &tx_hdr, sizeof(tx_hdr)); memcpy(tx_fhdr, (u8 *) &tx_hdr, sizeof(tx_hdr));
qnum = skb_get_queue_mapping(skb); qnum = skb_get_queue_mapping(skb);
hw_qnum = get_hw_qnum(qnum, priv->hwq_map);
switch (hw_qnum) { switch (qnum) {
case 0: case 0:
TX_QSTAT_INC(WME_AC_BE); TX_QSTAT_INC(WME_AC_VO);
epid = priv->data_be_ep; epid = priv->data_vo_ep;
break; break;
case 2: case 1:
TX_QSTAT_INC(WME_AC_VI); TX_QSTAT_INC(WME_AC_VI);
epid = priv->data_vi_ep; epid = priv->data_vi_ep;
break; break;
case 3: case 2:
TX_QSTAT_INC(WME_AC_VO); TX_QSTAT_INC(WME_AC_BE);
epid = priv->data_vo_ep; epid = priv->data_be_ep;
break; break;
case 1: case 3:
default: default:
TX_QSTAT_INC(WME_AC_BK); TX_QSTAT_INC(WME_AC_BK);
epid = priv->data_bk_ep; epid = priv->data_bk_ep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment