mt76: mt7915: drop zero-length packet to avoid Tx hang
authorRyder Lee <ryder.lee@mediatek.com>
Tue, 29 Dec 2020 04:15:30 +0000 (12:15 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Jan 2021 19:07:47 +0000 (20:07 +0100)
commitb747fa343817fd322b4463dda99d28fc51e19c52
treee5ff121063a7f163e0468e758bdae6adbeaa18a6
parentb8135057988e57f498e85eeaf133cacac2de3a10
mt76: mt7915: drop zero-length packet to avoid Tx hang

Hardware wouldn't add LLC-SNAP when skb->data_len is 0, which causes
Tx hang, so add a check to drop this kind of packet.

Tested-by: Bo Jiao <bo.jiao@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c