From 75d02343f75ae983caa0ca5c1409255bf8c83c75 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Mon, 29 Aug 2016 11:23:47 -0700 Subject: [PATCH] qcacld-3.0: add wakeup stats for BPF wakeup Currently, for BPF wakeup reason, there is no log statistics. Add BPF wakeup reason stats. Change-Id: I469370fc576b83c8118bb73a5679d0f529555047 CRs-Fixed: 1060615 --- core/wma/src/wma_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 684c0676f305..41f3d173ea3f 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -2440,6 +2440,7 @@ static void wma_wow_wake_up_stats(tp_wma_handle wma, uint8_t *data, { switch (event) { + case WOW_REASON_BPF_ALLOW: case WOW_REASON_PATTERN_MATCH_FOUND: if (WMA_BCAST_MAC_ADDR == *data) { wma->wow_bcast_wake_up_count++; @@ -3232,6 +3233,8 @@ int wma_wow_wakeup_host_event(void *handle, uint8_t *event, case WOW_REASON_HTT_EVENT: break; + + case WOW_REASON_BPF_ALLOW: case WOW_REASON_PATTERN_MATCH_FOUND: wma_wow_wake_up_stats_display(wma); WMA_LOGD("Wake up for Rx packet, dump starting from ethernet hdr");