From afc7f7199dfa4616a3c4143d1900818a67442b8a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 13 Mar 2017 09:25:31 -0700 Subject: qcacld-3.0: Correlate SME STATS macros to underlying enumerations Currently SME exposes a set of SME_*_STATS macros to indicate which stats are of interest in a call to sme_get_statistics(). What is not obvious is that the values of these macros are required to be aligned with the eCsrRoamStatsClassTypes enumerated values. Update the macros to make that alignment explicit. Change-Id: Id992a8230a1aa4df941ea7666bc00a661a9ab68e CRs-Fixed: 2020055 --- core/sme/inc/sme_api.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 884c84164691..86b737437de9 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -54,13 +54,13 @@ Preprocessor definitions and constants ------------------------------------------------------------------------*/ -#define SME_SUMMARY_STATS 1 -#define SME_GLOBAL_CLASSA_STATS 2 -#define SME_GLOBAL_CLASSB_STATS 4 -#define SME_GLOBAL_CLASSC_STATS 8 -#define SME_GLOBAL_CLASSD_STATS 16 -#define SME_PER_STA_STATS 32 -#define SME_PER_CHAIN_RSSI_STATS 64 +#define SME_SUMMARY_STATS (1 << eCsrSummaryStats) +#define SME_GLOBAL_CLASSA_STATS (1 << eCsrGlobalClassAStats) +#define SME_GLOBAL_CLASSB_STATS (1 << eCsrGlobalClassBStats) +#define SME_GLOBAL_CLASSC_STATS (1 << eCsrGlobalClassCStats) +#define SME_GLOBAL_CLASSD_STATS (1 << eCsrGlobalClassDStats) +#define SME_PER_STA_STATS (1 << eCsrPerStaStats) +#define SME_PER_CHAIN_RSSI_STATS (1 << csr_per_chain_rssi_stats) #define SME_SESSION_ID_ANY 50 -- cgit v1.2.3