diff options
| author | Jeff Johnson <jjohnson@codeaurora.org> | 2017-03-13 09:25:31 -0700 |
|---|---|---|
| committer | Nandini Suresh <snandini@codeaurora.org> | 2017-03-16 13:55:54 -0700 |
| commit | afc7f7199dfa4616a3c4143d1900818a67442b8a (patch) | |
| tree | be975c9d1e4713779c9c93c5f5287f2e44368423 | |
| parent | fd6cb7d084c238b66d57037aa1a8eb01ce447096 (diff) | |
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
| -rw-r--r-- | core/sme/inc/sme_api.h | 14 |
1 files 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 |
