]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/ath/ath9k/xmit.c
ath9k: fix ps-poll responses under a-mpdu sessions
[~andy/linux] / drivers / net / wireless / ath / ath9k / xmit.c
index 4f4ce83f7ab4afd69fb4ed4ae937953711d3343a..f042a18c8495cb46c04bebe4e7fac4ace4944b66 100644 (file)
@@ -2186,14 +2186,15 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
                txq->stopped = true;
        }
 
+       if (txctl->an)
+               tid = ath_get_skb_tid(sc, txctl->an, skb);
+
        if (info->flags & IEEE80211_TX_CTL_PS_RESPONSE) {
                ath_txq_unlock(sc, txq);
                txq = sc->tx.uapsdq;
                ath_txq_lock(sc, txq);
        } else if (txctl->an &&
                   ieee80211_is_data_present(hdr->frame_control)) {
-               tid = ath_get_skb_tid(sc, txctl->an, skb);
-
                WARN_ON(tid->ac->txq != txctl->txq);
 
                if (info->flags & IEEE80211_TX_CTL_CLEAR_PS_FILT)