Patch "wifi: mac80211: fix non-MLO station association" has been added to the 6.2-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

    wifi: mac80211: fix non-MLO station association

to the 6.2-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:
     wifi-mac80211-fix-non-mlo-station-association.patch
and it can be found in the queue-6.2 subdirectory.

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



commit 9a21c20770bef4473ec46707b77c6b5f8f146fe6
Author: Karthikeyan Periyasamy <quic_periyasa@xxxxxxxxxxx>
Date:   Mon Feb 6 21:33:30 2023 +0530

    wifi: mac80211: fix non-MLO station association
    
    [ Upstream commit aaacf1740f2f95e0c5449ff3bbcff252d69cf952 ]
    
    Non-MLO station frames are dropped in Rx path due to the condition
    check in ieee80211_rx_is_valid_sta_link_id(). In multi-link AP scenario,
    non-MLO stations try to connect in any of the valid links in the ML AP,
    where the station valid_links and link_id params are valid in the
    ieee80211_sta object. But ieee80211_rx_is_valid_sta_link_id() always
    return false for the non-MLO stations by the assumption taken is
    valid_links and link_id are not valid in non-MLO stations object
    (ieee80211_sta), this assumption is wrong. Due to this assumption,
    non-MLO station frames are dropped which leads to failure in association.
    
    Fix it by removing the condition check and allow the link validation
    check for the non-MLO stations.
    
    Fixes: e66b7920aa5a ("wifi: mac80211: fix initialization of rx->link and rx->link_sta")
    Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230206160330.1613-1-quic_periyasa@xxxxxxxxxxx
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index c6562a6d25035..3c4541ee9e6d4 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -4052,9 +4052,6 @@ static void ieee80211_invoke_rx_handlers(struct ieee80211_rx_data *rx)
 static bool
 ieee80211_rx_is_valid_sta_link_id(struct ieee80211_sta *sta, u8 link_id)
 {
-	if (!sta->mlo)
-		return false;
-
 	return !!(sta->valid_links & BIT(link_id));
 }
 



[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