Commit feab5bb8 authored by Seevalamuthu Mariappan's avatar Seevalamuthu Mariappan Committed by Kalle Valo

ath11k: Align bss_chan_info structure with firmware

pdev_id in structure 'wmi_pdev_bss_chan_info_event' is wrongly placed
at the beginning. This causes invalid values in survey dump. Hence, align
the structure with the firmware.

Note: The firmware releases follow this order since the feature was
implemented. Also, it is not changing across the branches including
QCA6390.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1
Signed-off-by: default avatarRitesh Singh <ritesi@codeaurora.org>
Signed-off-by: default avatarSeevalamuthu Mariappan <seevalam@codeaurora.org>
Signed-off-by: default avatarJouni Malinen <jouni@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210720214922.118078-3-jouni@codeaurora.org
parent 9b4dd38b
...@@ -1339,6 +1339,7 @@ int ath11k_wmi_pdev_bss_chan_info_request(struct ath11k *ar, ...@@ -1339,6 +1339,7 @@ int ath11k_wmi_pdev_bss_chan_info_request(struct ath11k *ar,
WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST) | WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST) |
FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE);
cmd->req_type = type; cmd->req_type = type;
cmd->pdev_id = ar->pdev->pdev_id;
ath11k_dbg(ar->ab, ATH11K_DBG_WMI, ath11k_dbg(ar->ab, ATH11K_DBG_WMI,
"WMI bss chan info req type %d\n", type); "WMI bss chan info req type %d\n", type);
......
...@@ -2962,6 +2962,7 @@ struct wmi_pdev_bss_chan_info_req_cmd { ...@@ -2962,6 +2962,7 @@ struct wmi_pdev_bss_chan_info_req_cmd {
u32 tlv_header; u32 tlv_header;
/* ref wmi_bss_chan_info_req_type */ /* ref wmi_bss_chan_info_req_type */
u32 req_type; u32 req_type;
u32 pdev_id;
} __packed; } __packed;
struct wmi_ap_ps_peer_cmd { struct wmi_ap_ps_peer_cmd {
...@@ -4058,7 +4059,6 @@ struct wmi_vdev_stopped_event { ...@@ -4058,7 +4059,6 @@ struct wmi_vdev_stopped_event {
} __packed; } __packed;
struct wmi_pdev_bss_chan_info_event { struct wmi_pdev_bss_chan_info_event {
u32 pdev_id;
u32 freq; /* Units in MHz */ u32 freq; /* Units in MHz */
u32 noise_floor; /* units are dBm */ u32 noise_floor; /* units are dBm */
/* rx clear - how often the channel was unused */ /* rx clear - how often the channel was unused */
...@@ -4076,6 +4076,7 @@ struct wmi_pdev_bss_chan_info_event { ...@@ -4076,6 +4076,7 @@ struct wmi_pdev_bss_chan_info_event {
/*rx_cycle cnt for my bss in 64bits format */ /*rx_cycle cnt for my bss in 64bits format */
u32 rx_bss_cycle_count_low; u32 rx_bss_cycle_count_low;
u32 rx_bss_cycle_count_high; u32 rx_bss_cycle_count_high;
u32 pdev_id;
} __packed; } __packed;
#define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0 #define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment