Commit 38a516fa authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Kamal Mostafa

staging: vt6655: device_free_tx_buf use only ieee80211_tx_status_irqsafe

commit 3fa0917b upstream.

TD_FLAGS_NETIF_SKB is only for data.

Fixes issue of ack frames not being reported.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent ec0303ab
......@@ -1033,10 +1033,8 @@ static void device_free_tx_buf(struct vnt_private *pDevice, PSTxDesc pDesc)
PCI_DMA_TODEVICE);
}
if (pTDInfo->byFlags & TD_FLAGS_NETIF_SKB)
if (skb)
ieee80211_tx_status_irqsafe(pDevice->hw, skb);
else
dev_kfree_skb_irq(skb);
pTDInfo->skb_dma = 0;
pTDInfo->skb = NULL;
......
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