wlan: Sessionize Link Layer Stats to support multiple interfaces.
This commit ensures that the proper mapping of the interface and the
station index is done to ensure that appropriate statistics per interface
are obtained.
Change-Id: I676137b60c3313bdd5bf91ce03ec17d73dae041e
CRs-Fixed: 689878
diff --git a/CORE/WDI/CP/inc/wlan_qct_wdi.h b/CORE/WDI/CP/inc/wlan_qct_wdi.h
index 16b59df..95c5fdd 100644
--- a/CORE/WDI/CP/inc/wlan_qct_wdi.h
+++ b/CORE/WDI/CP/inc/wlan_qct_wdi.h
@@ -824,6 +824,14 @@
} WDI_ChAvoidIndType;
#endif /* FEATURE_WLAN_CH_AVOID */
+#ifdef WLAN_FEATURE_LINK_LAYER_STATS
+typedef struct
+{
+ void *pLinkLayerStatsResults;
+ wpt_macAddr macAddr;
+} WDI_LinkLayerStatsResults;
+
+#endif
/*---------------------------------------------------------------------------
WDI_LowLevelIndType
Inidcation type and information about the indication being carried
@@ -895,7 +903,7 @@
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
/*Link Layer Statistics from FW*/
- void *pLinkLayerStatsResults;
+ WDI_LinkLayerStatsResults wdiLinkLayerStatsResults;
#endif
#ifdef WLAN_FEATURE_EXTSCAN
/*EXTSCAN Results from FW*/
@@ -5780,7 +5788,7 @@
typedef struct
{
wpt_uint32 reqId;
- wpt_uint8 staId;
+ wpt_macAddr macAddr;
wpt_uint32 mpduSizeThreshold;
wpt_uint32 aggressiveStatisticsGathering;
}WDI_LLStatsSetReqType;
@@ -5788,17 +5796,18 @@
typedef struct
{
wpt_uint32 reqId;
- wpt_uint8 staId;
+ wpt_macAddr macAddr;
wpt_uint32 paramIdMask;
}WDI_LLStatsGetReqType;
typedef struct
{
wpt_uint32 reqId;
- wpt_uint8 staId;
+ wpt_macAddr macAddr;
wpt_uint32 statsClearReqMask;
wpt_uint8 stopReq;
}WDI_LLStatsClearReqType;
+
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */