From 5eb9acb9bdfe32b77c3d7e66958df19204b8ac21 Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Fri, 26 May 2017 15:25:27 -0700 Subject: [PATCH] qcacld-3.0: Add 11d scan event to wow statistics Add 11d scan wakeup event to wow statistics and wow wakeup reason string. Change-Id: I4614ec38491fa52eb163481a96140e0e5df45829 CRs-Fixed: 2057841 --- core/mac/inc/sir_api.h | 4 +++- core/wma/src/wma_features.c | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index fe26e959a1bb..814cfd62fd5e 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -6513,7 +6513,8 @@ struct sir_wake_lock_stats { * @gscan: gscan wakeup count * @pno_complete: pno complete wakeup count * @pno_match: pno match wakeup count - * @oem_response: oem response wakeup count + * @oem_response: oem response wakeup coun + * @scan_11d: 11d scan wakeup count */ struct sir_vdev_wow_stats { uint32_t ucast; @@ -6532,6 +6533,7 @@ struct sir_vdev_wow_stats { uint32_t pno_match; uint32_t oem_response; uint32_t pwr_save_fail_detected; + uint32_t scan_11d; }; /** diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index a948532e44ef..a499028658dc 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1566,6 +1566,8 @@ static const u8 *wma_wow_wake_reason_str(A_INT32 wake_reason) return "DEBUG_TEST"; case WOW_REASON_CHIP_POWER_FAILURE_DETECT: return "CHIP_POWER_FAILURE_DETECT"; + case WOW_REASON_11D_SCAN: + return "11D_SCAN"; default: return "unknown"; } @@ -1613,6 +1615,7 @@ static void wma_print_wow_stats(t_wma_handle *wma, case WOW_REASON_RSSI_BREACH_EVENT: case WOW_REASON_OEM_RESPONSE_EVENT: case WOW_REASON_CHIP_POWER_FAILURE_DETECT: + case WOW_REASON_11D_SCAN: break; default: return; @@ -1663,6 +1666,8 @@ static void wma_inc_wow_stats(t_wma_handle *wma, break; case WOW_REASON_OEM_RESPONSE_EVENT: stats->oem_response++; + case WOW_REASON_11D_SCAN: + stats->scan_11d++; break; case WOW_REASON_CHIP_POWER_FAILURE_DETECT: stats->pwr_save_fail_detected++; @@ -1766,6 +1771,8 @@ static int wow_get_wmi_eventid(int32_t reason, uint32_t tag) return WOW_TDLS_CONN_TRACKER_EVENT; case WOW_REASON_ROAM_HO: return WMI_ROAM_EVENTID; + case WOW_REASON_11D_SCAN: + return WMI_11D_NEW_COUNTRY_EVENTID; default: WMA_LOGD(FL("No Event Id for WOW reason %s(%d)"), wma_wow_wake_reason_str(reason), reason);