]> git.baikalelectronics.ru Git - kernel.git/commit
mt76x0: trim rx skb to proper length
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 6 Sep 2018 09:18:42 +0000 (11:18 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 19 Sep 2018 10:30:55 +0000 (12:30 +0200)
commitae6eda483576719a007bbc052b1e7019b804d6ab
treed9b262be5d944128dba41e5fc31a87880b2b35ba
parentfb3f1b088b058d444c050f0f43c24075a3293e0d
mt76x0: trim rx skb to proper length

We need to truncate skb to proper length. This fix below message:

wlan0: associating with AP with corrupt beacon and probe response

Fixes: 9d87d9fad47e ("mt76x0: unify tx/rx datapath with mt76x2u driver")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/mac.c