diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index a914855099b7..12ee7bdedd02 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -211,6 +211,21 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
211 | bool success; | 211 | bool success; |
212 | 212 | ||
213 | /* | 213 | /* |
214 | * Unmap the skb. | ||
215 | */ | ||
216 | rt2x00queue_unmap_skb(rt2x00dev, entry->skb); | ||
217 | |||
218 | /* | ||
219 | * Remove the extra tx headroom from the skb. | ||
220 | */ | ||
221 | skb_pull(entry->skb, rt2x00dev->ops->extra_tx_headroom); | ||
222 | |||
223 | /* | ||
224 | * Signal that the TX descriptor is no longer in the skb. | ||
225 | */ | ||
226 | skbdesc->flags &= ~SKBDESC_DESC_IN_SKB; | ||
227 | |||
228 | /* | ||
214 | * Remove L2 padding which was added during | 229 | * Remove L2 padding which was added during |
215 | */ | 230 | */ |
216 | if (test_bit(DRIVER_REQUIRE_L2PAD, &rt2x00dev->flags)) | 231 | if (test_bit(DRIVER_REQUIRE_L2PAD, &rt2x00dev->flags)) |