OSDN Git Service

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)
commit242516caabdb03aee47bebf9ed94070444e44894
treed9b262be5d944128dba41e5fc31a87880b2b35ba
parent0ae976a11b4fb5704b597e103b5189237641c1a1
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