]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: ath12k: match WMI BSS chan info structure with firmware definition
authorP Praneesh <quic_ppranees@quicinc.com>
Sun, 31 Mar 2024 18:32:32 +0000 (00:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:50 +0000 (16:28 +0200)
[ Upstream commit dd98d54db29fb553839f43ade5f547baa93392c8 ]

struct wmi_pdev_bss_chan_info_event is not similar to the firmware
struct definition, this will cause some random failures.

Fix by matching the struct wmi_pdev_bss_chan_info_event with the
firmware structure definition.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
Signed-off-by: Karthikeyan Kathirvel <quic_kathirve@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240331183232.2158756-3-quic_kathirve@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath12k/wmi.h

index 6549c3853be46e8e0b42bca262ee9025e384ba3e..a19a2c29f2264af9e0ed5f38a7f8515a1b5b79ed 100644 (file)
@@ -4034,7 +4034,6 @@ struct wmi_vdev_stopped_event {
 } __packed;
 
 struct wmi_pdev_bss_chan_info_event {
-       __le32 pdev_id;
        __le32 freq;    /* Units in MHz */
        __le32 noise_floor;     /* units are dBm */
        /* rx clear - how often the channel was unused */
@@ -4052,6 +4051,7 @@ struct wmi_pdev_bss_chan_info_event {
        /*rx_cycle cnt for my bss in 64bits format */
        __le32 rx_bss_cycle_count_low;
        __le32 rx_bss_cycle_count_high;
+       __le32 pdev_id;
 } __packed;
 
 #define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0