Skip to content
Commit bc98e7fd authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mt76: fix encap offload ethernet type check



The driver needs to check if the format is 802.2 vs 802.3 in order to set
a tx descriptor flag. skb->protocol can't be used, since it may not be properly
initialized for packets coming in from a packet socket.
Fix misdetection by checking the ethertype from the skb data instead

Reported-by: default avatarThibaut VARÈNE <hacks+kernel@slashdirt.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 3968a664
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment