Skip to content

Commit

Permalink
staging: vt6655: device_free_tx_buf use only ieee80211_tx_status_irqsafe
Browse files Browse the repository at this point in the history
TD_FLAGS_NETIF_SKB is only for data.

Fixes issue of ack frames not being reported.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed May 8, 2015
1 parent b23f143 commit 3fa0917
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,10 +989,8 @@ static void device_free_tx_buf(struct vnt_private *pDevice, PSTxDesc pDesc)
skb->len, DMA_TO_DEVICE);
}

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;
Expand Down

0 comments on commit 3fa0917

Please sign in to comment.