mt76: backport fix encap offload ethernet type check
authorThibaut VARÈNE <hacks@slashdirt.org>
Wed, 20 Apr 2022 15:57:47 +0000 (17:57 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sun, 28 Aug 2022 06:33:46 +0000 (08:33 +0200)
commit4cb9d08e71a8d4d4f148f29fcbe8554f0815a056
treec8e12259078e4dc2f29b04384d89addef49ddd3d
parent8b552b1d28b55401c865a926eeedf20af9318f4e
mt76: backport 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.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [commit description]
package/kernel/mt76/patches/101-fix-encap-offload-ethernet-type-check.patch [new file with mode: 0644]