diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 120708d51d45..b8b76dd2c11e 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1025,6 +1025,7 @@ static int ath9k_tx(struct ieee80211_hw *hw, | |||
1025 | struct ath_tx_control txctl; | 1025 | struct ath_tx_control txctl; |
1026 | int padpos, padsize; | 1026 | int padpos, padsize; |
1027 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; | 1027 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; |
1028 | int qnum; | ||
1028 | 1029 | ||
1029 | if (aphy->state != ATH_WIPHY_ACTIVE && aphy->state != ATH_WIPHY_SCAN) { | 1030 | if (aphy->state != ATH_WIPHY_ACTIVE && aphy->state != ATH_WIPHY_SCAN) { |
1030 | ath_print(common, ATH_DBG_XMIT, | 1031 | ath_print(common, ATH_DBG_XMIT, |
@@ -1097,11 +1098,8 @@ static int ath9k_tx(struct ieee80211_hw *hw, | |||
1097 | memmove(skb->data, skb->data + padsize, padpos); | 1098 | memmove(skb->data, skb->data + padsize, padpos); |
1098 | } | 1099 | } |
1099 | 1100 | ||
1100 | /* Check if a tx queue is available */ | 1101 | qnum = ath_get_hal_qnum(skb_get_queue_mapping(skb), sc); |
1101 | 1102 | txctl.txq = &sc->tx.txq[qnum]; | |
1102 | txctl.txq = ath_test_get_txq(sc, skb); | ||
1103 | if (!txctl.txq) | ||
1104 | goto exit; | ||
1105 | 1103 | ||
1106 | ath_print(common, ATH_DBG_XMIT, "transmitting packet, skb: %p\n", skb); | 1104 | ath_print(common, ATH_DBG_XMIT, "transmitting packet, skb: %p\n", skb); |
1107 | 1105 | ||