OSDN Git Service

ath11k: add support in survey dump with bss_chan_info
authorSeevalamuthu Mariappan <seevalam@codeaurora.org>
Tue, 20 Jul 2021 21:49:21 +0000 (00:49 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Sep 2021 09:19:44 +0000 (12:19 +0300)
Survey dump statistics is not displaying channel rx and tx time because
the service flag is not enabled. Enable the service flag "bss_chan_info"
in wmi_resource_config to fetch and print the stats for the specific
pdev.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1

Signed-off-by: Ritesh Singh <ritesi@codeaurora.org>
Signed-off-by: Seevalamuthu Mariappan <seevalam@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210720214922.118078-2-jouni@codeaurora.org
drivers/net/wireless/ath/ath11k/hw.c
drivers/net/wireless/ath/ath11k/wmi.h

index d959690..9dd02f8 100644 (file)
@@ -97,6 +97,7 @@ static void ath11k_init_wmi_config_qca6390(struct ath11k_base *ab,
        config->num_multicast_filter_entries = 0x20;
        config->num_wow_filters = 0x16;
        config->num_keep_alive_pattern = 0;
+       config->flag1 |= WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64;
 }
 
 static void ath11k_hw_ipq8074_reo_setup(struct ath11k_base *ab)
@@ -197,6 +198,7 @@ static void ath11k_init_wmi_config_ipq8074(struct ath11k_base *ab,
        config->peer_map_unmap_v2_support = 1;
        config->twt_ap_pdev_count = ab->num_radios;
        config->twt_ap_sta_count = 1000;
+       config->flag1 |= WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64;
 }
 
 static int ath11k_hw_mac_id_to_pdev_id_ipq8074(struct ath11k_hw_params *hw,
index 234aa59..78849f0 100644 (file)
@@ -2244,6 +2244,8 @@ struct wmi_init_cmd {
        u32 num_host_mem_chunks;
 } __packed;
 
+#define WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 BIT(5)
+
 struct wmi_resource_config {
        u32 tlv_header;
        u32 num_vdevs;