Patch "staging: wfx: fix handling of MMIC error" has been added to the 5.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    staging: wfx: fix handling of MMIC error

to the 5.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-wfx-fix-handling-of-mmic-error.patch
and it can be found in the queue-5.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d4cf5f501bdb2898a79e46bfb87463c1f773628a
Author: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx>
Date:   Wed Oct 7 12:19:37 2020 +0200

    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@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201007101943.749898-2-Jerome.Pouiller@xxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/staging/wfx/data_rx.c b/drivers/staging/wfx/data_rx.c
index 0e959ebc38b56..a9fb5165b33d9 100644
--- a/drivers/staging/wfx/data_rx.c
+++ b/drivers/staging/wfx/data_rx.c
@@ -80,7 +80,7 @@ void wfx_rx_cb(struct wfx_vif *wvif,
 		goto drop;
 
 	if (arg->status == HIF_STATUS_RX_FAIL_MIC)
-		hdr->flag |= RX_FLAG_MMIC_ERROR;
+		hdr->flag |= RX_FLAG_MMIC_ERROR | RX_FLAG_IV_STRIPPED;
 	else if (arg->status)
 		goto drop;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux