Patch "wifi: ath12k: fix uninitialize symbol error on ath12k_peer_assoc_h_he()" has been added to the 6.6-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: ath12k: fix uninitialize symbol error on ath12k_peer_assoc_h_he()

to the 6.6-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-ath12k-fix-uninitialize-symbol-error-on-ath12k_.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 65dcb92ab5a370fa8487013783d5fc9445eb541f
Author: Aaradhana Sahu <quic_aarasahu@xxxxxxxxxxx>
Date:   Tue Jun 11 08:40:17 2024 +0530

    wifi: ath12k: fix uninitialize symbol error on ath12k_peer_assoc_h_he()
    
    [ Upstream commit 19b77e7c656a3e125319cc3ef347b397cf042bf6 ]
    
    Smatch throws following errors
    
    drivers/net/wireless/ath/ath12k/mac.c:1922 ath12k_peer_assoc_h_he() error: uninitialized symbol 'rx_mcs_80'.
    drivers/net/wireless/ath/ath12k/mac.c:1922 ath12k_peer_assoc_h_he() error: uninitialized symbol 'rx_mcs_160'.
    drivers/net/wireless/ath/ath12k/mac.c:1924 ath12k_peer_assoc_h_he() error: uninitialized symbol 'rx_mcs_80'.
    
    In ath12k_peer_assoc_h_he() rx_mcs_80 and rx_mcs_160 variables
    remain uninitialized in the following conditions:
    1. Whenever the value of mcs_80 become equal to
       IEEE80211_HE_MCS_NOT_SUPPORTED then rx_mcs_80 remains uninitialized.
    2. Whenever phy capability is not supported 160 channel width and
       value of mcs_160 become equal to IEEE80211_HE_MCS_NOT_SUPPORTED
       then rx_mcs_160 remains uninitialized.
    
    Initialize these variables during declaration.
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1
    
    Signed-off-by: Aaradhana Sahu <quic_aarasahu@xxxxxxxxxxx>
    Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>
    Link: https://patch.msgid.link/20240611031017.297927-3-quic_aarasahu@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index ba6fc27f4a1a..618eeaf6e331 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -1614,7 +1614,9 @@ static void ath12k_peer_assoc_h_he(struct ath12k *ar,
 {
 	const struct ieee80211_sta_he_cap *he_cap = &sta->deflink.he_cap;
 	int i;
-	u8 ampdu_factor, rx_mcs_80, rx_mcs_160, max_nss;
+	u8 ampdu_factor, max_nss;
+	u8 rx_mcs_80 = IEEE80211_HE_MCS_NOT_SUPPORTED;
+	u8 rx_mcs_160 = IEEE80211_HE_MCS_NOT_SUPPORTED;
 	u16 mcs_160_map, mcs_80_map;
 	bool support_160;
 	u16 v;




[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