qcacld-3.0: Parse tx and rx packet per MCS from peer extd stats

Based on the new requirement, fw fills the tx packet counts per mcs
and rx packet count per mcs index in the peer extd stats event.
Add logic to parse tx packet count per mcs and rx packet count per mcs
from peer extd stats event.

Change-Id: I4cd8c1ed5dd6942022d9f930f8de0bcbcb679eb5
CRs-Fixed: 3289683
This commit is contained in:
Ashish Kumar Dhanotiya
2022-09-02 22:58:35 +05:30
committad av Madan Koyyalamudi
förälder 8d24d5cc65
incheckning c8d57a7023
7 ändrade filer med 292 tillägg och 8 borttagningar

Visa fil

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -98,6 +99,36 @@ wmi_extract_peer_stats_info(wmi_unified_t wmi_handle, void *evt_buf,
uint32_t index,
wmi_host_peer_stats_info *peer_stats_info);
/**
* wmi_extract_peer_tx_pkt_per_mcs() - extract peer tx packets per MCS
* from event
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @index: Index to tx packets per MCS for current peer
* @peer_stats_info: Pointer to hold peer stats info
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS
wmi_extract_peer_tx_pkt_per_mcs(wmi_unified_t wmi_handle, void *evt_buf,
uint32_t index,
wmi_host_peer_stats_info *peer_stats_info);
/**
* wmi_extract_peer_rx_pkt_per_mcs() - extract peer rx packets per MCS
* from event
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @index: Index to tx rate count for current peer
* @peer_stats_info: Pointer to hold peer stats info
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS
wmi_extract_peer_rx_pkt_per_mcs(wmi_unified_t wmi_handle, void *evt_buf,
uint32_t index,
wmi_host_peer_stats_info *peer_stats_info);
#ifdef WLAN_FEATURE_BIG_DATA_STATS
/**
* wmi_extract_big_data_stats_param() - extract big data statsfrom event