Patch "wifi: ath11k: fix band selection for ppdu received in channel 177 of 5 GHz" has been added to the 6.4-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: ath11k: fix band selection for ppdu received in channel 177 of 5 GHz

to the 6.4-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-ath11k-fix-band-selection-for-ppdu-received-in-.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 18e762cecfc18a386d56b42ce9f8f705d791f14f
Author: Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx>
Date:   Wed Jul 26 10:16:24 2023 +0530

    wifi: ath11k: fix band selection for ppdu received in channel 177 of 5 GHz
    
    [ Upstream commit 72c8caf904aed2caed5d6e75233294b6159ddb5d ]
    
    5 GHz band channel 177 support was added with the commit e5e94d10c856 ("wifi:
    ath11k: add channel 177 into 5 GHz channel list"). However, during processing
    for the received ppdu in ath11k_dp_rx_h_ppdu(), channel number is checked only
    till 173. This leads to driver code checking for channel and then fetching the
    band from it which is extra effort since firmware has already given the channel
    number in the metadata.
    
    Fix this issue by checking the channel number till 177 since we support
    it now.
    
    Found via code review. Compile tested only.
    
    Fixes: e5e94d10c856 ("wifi: ath11k: add channel 177 into 5 GHz channel list")
    Signed-off-by: Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230726044624.20507-1-quic_adisi@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index f67ce62b2b48d..c5ff1bc02999e 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -2408,7 +2408,7 @@ static void ath11k_dp_rx_h_ppdu(struct ath11k *ar, struct hal_rx_desc *rx_desc,
 		rx_status->freq = center_freq;
 	} else if (channel_num >= 1 && channel_num <= 14) {
 		rx_status->band = NL80211_BAND_2GHZ;
-	} else if (channel_num >= 36 && channel_num <= 173) {
+	} else if (channel_num >= 36 && channel_num <= 177) {
 		rx_status->band = NL80211_BAND_5GHZ;
 	} else {
 		spin_lock_bh(&ar->data_lock);



[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