Patch "cfg80211: retrieve S1G operating channel number" has been added to the 5.17-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

    cfg80211: retrieve S1G operating channel number

to the 5.17-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:
     cfg80211-retrieve-s1g-operating-channel-number.patch
and it can be found in the queue-5.17 subdirectory.

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



commit 32c1dcaab7e48463f712a3059df18df419ea4b7e
Author: Kieran Frewen <kieran.frewen@xxxxxxxxxxxxxx>
Date:   Wed Apr 20 04:13:20 2022 +0000

    cfg80211: retrieve S1G operating channel number
    
    [ Upstream commit e847ffe2d146cfd52980ca688d84358e024a6e70 ]
    
    When retrieving the S1G channel number from IEs, we should retrieve
    the operating channel instead of the primary channel. The S1G operation
    element specifies the main channel of operation as the oper channel,
    unlike for HT and HE which specify their main channel of operation as
    the primary channel.
    
    Signed-off-by: Kieran Frewen <kieran.frewen@xxxxxxxxxxxxxx>
    Signed-off-by: Bassem Dawood <bassem@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220420041321.3788789-1-kieran.frewen@xxxxxxxxxxxxxx
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 4a6d86432910..6d82bd9eaf8c 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -1829,7 +1829,7 @@ int cfg80211_get_ies_channel_number(const u8 *ie, size_t ielen,
 		if (tmp && tmp->datalen >= sizeof(struct ieee80211_s1g_oper_ie)) {
 			struct ieee80211_s1g_oper_ie *s1gop = (void *)tmp->data;
 
-			return s1gop->primary_ch;
+			return s1gop->oper_ch;
 		}
 	} else {
 		tmp = cfg80211_find_elem(WLAN_EID_DS_PARAMS, ie, ielen);



[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