Skip to content

Commit 7654aa1

Browse files
P Praneeshgregkh
authored andcommitted
wifi: ath12k: fix BSS chan info request WMI command
[ Upstream commit 59529c9 ] Currently, the firmware returns incorrect pdev_id information in WMI_PDEV_BSS_CHAN_INFO_EVENTID, leading to incorrect filling of the pdev's survey information. To prevent this issue, when requesting BSS channel information through WMI_PDEV_BSS_CHAN_INFO_REQUEST_CMDID, firmware expects pdev_id as one of the arguments in this WMI command. Add pdev_id to the struct wmi_pdev_bss_chan_info_req_cmd and fill it during ath12k_wmi_pdev_bss_chan_info_request(). This resolves the issue of sending the correct pdev_id in WMI_PDEV_BSS_CHAN_INFO_EVENTID. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Fixes: d889913 ("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-2-quic_kathirve@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f9ac75e commit 7654aa1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/wireless/ath/ath12k/wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,7 @@ int ath12k_wmi_pdev_bss_chan_info_request(struct ath12k *ar,
15381538
cmd->tlv_header = ath12k_wmi_tlv_cmd_hdr(WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST,
15391539
sizeof(*cmd));
15401540
cmd->req_type = cpu_to_le32(type);
1541+
cmd->pdev_id = cpu_to_le32(ar->pdev->pdev_id);
15411542

15421543
ath12k_dbg(ar->ab, ATH12K_DBG_WMI,
15431544
"WMI bss chan info req type %d\n", type);

drivers/net/wireless/ath/ath12k/wmi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,6 +3121,7 @@ struct wmi_pdev_bss_chan_info_req_cmd {
31213121
__le32 tlv_header;
31223122
/* ref wmi_bss_chan_info_req_type */
31233123
__le32 req_type;
3124+
__le32 pdev_id;
31243125
} __packed;
31253126

31263127
struct wmi_ap_ps_peer_cmd {

0 commit comments

Comments
 (0)