]> git.itanic.dy.fi Git - linux-stable/commit
staging: wfx: fix handling of MMIC error
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Wed, 7 Oct 2020 10:19:37 +0000 (12:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:21 +0000 (10:08 +0100)
commite1ec1c25b00ea9734c6881e86b3075458cf83e60
tree7163ae0c512d99cff2a3548bb005be4b6f57bf67
parent858c56fa3741f6f3203848e126ea12080413f596
staging: wfx: fix handling of MMIC error

[ Upstream commit 8d350c14ee5eb62ecd40b0991248bfbce511954d ]

As expected, when the device detect a MMIC error, it returns a specific
status. However, it also strip IV from the frame (don't ask me why).

So, with the current code, mac80211 detects a corrupted frame and it
drops it before it handle the MMIC error. The expected behavior would be
to detect MMIC error then to renegotiate the EAP session.

So, this patch correctly informs mac80211 that IV is not available. So,
mac80211 correctly takes into account the MMIC error.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20201007101943.749898-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/wfx/data_rx.c