Patch "staging: wfx: fix BA sessions for older firmwares" has been added to the 5.9-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 BA sessions for older firmwares

to the 5.9-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-ba-sessions-for-older-firmwares.patch
and it can be found in the queue-5.9 subdirectory.

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



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

    staging: wfx: fix BA sessions for older firmwares
    
    [ Upstream commit 4fd1241778b08129f196605c62636a4d6d71c2c7 ]
    
    Firmwares with API < 3.6 do not forward DELBA requests. Thus, when a
    Block Ack session is restarted, the reordering buffer is not flushed and
    the received sequence number is not contiguous. Therefore, mac80211
    starts to wait some missing frames that it will never receive.
    
    This patch disables the reordering buffer for old firmware. It is
    harmless when the network is unencrypted. When the network is encrypted,
    the non-contiguous frames will be thrown away by the TKIP/CCMP replay
    protection. So, the user will observe some packet loss with UDP and
    performance drop with TCP.
    
    Fixes: e5da5fbd7741 ("staging: wfx: fix CCMP/TKIP replay protection")
    Signed-off-by: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201007101943.749898-4-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 6fb0788807426..33b715b7b94bb 100644
--- a/drivers/staging/wfx/data_rx.c
+++ b/drivers/staging/wfx/data_rx.c
@@ -17,6 +17,9 @@ static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt)
 {
 	int params, tid;
 
+	if (wfx_api_older_than(wvif->wdev, 3, 6))
+		return;
+
 	switch (mgmt->u.action.u.addba_req.action_code) {
 	case WLAN_ACTION_ADDBA_REQ:
 		params = le16_to_cpu(mgmt->u.action.u.addba_req.capab);



[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