mt76: fix double DMA unmap of the first buffer on 7615/7915
authorFelix Fietkau <nbd@nbd.name>
Sat, 25 Jul 2020 12:44:07 +0000 (14:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:13 +0000 (18:10 +0200)
commit27d5c528a7ca08dcd44877fdd9fc08b76630bf77
tree77c1fb9608ea744470aa3833359f4ae2f14d391b
parentc12b7c7944e56e526c0a457282603ebcdd04ca90
mt76: fix double DMA unmap of the first buffer on 7615/7915

A small part of the first skb buffer is passed to the firmware for parsing
via DMA, while the full buffer is passed as part of the TXP.

Avoid calling DMA unmap on the first part (with a different length than map)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c