mt76: mt7915: fix decap offload corner case with 4-addr VLAN frames
authorFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 10:37:47 +0000 (11:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:24:00 +0000 (15:24 +0100)
commit1eeff0b4c1a6c64d24fc562c2ebb019d35fc93fc
tree73d4b347f95c6c8693ab291685daba4adbfdae3f
parent633f77b517ac704086c267b70a6dfe1924cfed0b
mt76: mt7915: fix decap offload corner case with 4-addr VLAN frames

With 4-address mode VLAN frames, an internal header translation step fails,
leaving behind an extra 2-byte length field that must be reomved by the driver.
Add a check for this condition to fix receiving such packets

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