diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2015-04-09 20:53:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 14:28:05 +0200 |
commit | 3fa0917beb29d886550fcf61a6378563d1ce9684 (patch) | |
tree | 5b3db0ff6be64c06fc885c3ecf720ce7f2a9d5ef | |
parent | b23f14302e86628625ac3982a6d23e35888755f2 (diff) | |
download | op-kernel-dev-3fa0917beb29d886550fcf61a6378563d1ce9684.zip op-kernel-dev-3fa0917beb29d886550fcf61a6378563d1ce9684.tar.gz |
staging: vt6655: device_free_tx_buf use only ieee80211_tx_status_irqsafe
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>
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 4bb4f8e..7cd5484 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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; |