OSDN Git Service

mt76: mt7615: fix decap offload corner case with 4-addr VLAN frames
authorFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 10:49:04 +0000 (11:49 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:24:00 +0000 (15:24 +0100)
commit838fcae7f51ced6d011f7f0e4d705f8072426a16
tree560549da68e5570bfa07c1f50688353292781015
parent1eeff0b4c1a6c64d24fc562c2ebb019d35fc93fc
mt76: mt7615: 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/mt7615/mac.c