Browse Source

qcacmn: Enable support for new HTT Peer stats TLVs

Enable support for new TLVs (including TIDQ stats) added in
Target Firmware for HTT based peer statistics.

Change-Id: Ia039b835b32953518b29b5ac2f896b1ddad5189c
CRs-Fixed: 2121641
Pamidipati, Vijay 7 years ago
parent
commit
c2cf669514
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dp/wifi3.0/dp_main.c

+ 4 - 1
dp/wifi3.0/dp_main.c

@@ -4651,6 +4651,7 @@ dp_get_fw_peer_stats(struct cdp_pdev *pdev_handle, uint8_t *mac_addr,
 		uint32_t cap)
 {
 	struct dp_pdev *pdev = (struct dp_pdev *)pdev_handle;
+	int i;
 	uint32_t config_param0 = 0;
 	uint32_t config_param1 = 0;
 	uint32_t config_param2 = 0;
@@ -4659,7 +4660,9 @@ dp_get_fw_peer_stats(struct cdp_pdev *pdev_handle, uint8_t *mac_addr,
 	HTT_DBG_EXT_STATS_PEER_INFO_IS_MAC_ADDR_SET(config_param0, 1);
 	config_param0 |= (1 << (cap + 1));
 
-	config_param1 = 0x8f;
+	for (i = 0; i < HTT_PEER_STATS_MAX_TLV; i++) {
+		config_param1 |= (1 << i);
+	}
 
 	config_param2 |= (mac_addr[0] & 0x000000ff);
 	config_param2 |= ((mac_addr[1] << 8) & 0x0000ff00);