diff options
| author | Sreelakshmi Konamki <c_skonam@qti.qualcomm.com> | 2016-04-22 10:47:28 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-04-25 19:41:09 +0530 |
| commit | dc0844997eacb387017c2c8217bf438153fd4d5a (patch) | |
| tree | 391cffefe694943eef85ad5bf50d52f7619b76f5 | |
| parent | 4b20aaf5e3af2f7225d20170ba188cc644e46081 (diff) | |
qcacld-2.0: Update WOW wake up stats if BPF enabled
As per current implementation WOW wake up stats are not updated
when host wakes up with wake reason WOW_REASON_BPF_ALLOW.
Add changes to update wow wake up stats when host wakes up
with reason WOW_REASON_BPF_ALLOW.
Change-Id: Ib66faebf1fb543e53977fd70fc154425b62e52a8
CRs-Fixed: 1006606
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index a99d70c29039..7e3adc3c5d38 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -20635,7 +20635,9 @@ static void wma_wow_wake_up_stats(tp_wma_handle wma, uint8_t *data, switch(event) { case WOW_REASON_PATTERN_MATCH_FOUND: - if (WMA_BCAST_MAC_ADDR == *data) { + if (WMA_ICMP_V6_RA_TYPE == *data) { + wma->wow_ipv6_mcast_ra_stats++; + } else if (WMA_BCAST_MAC_ADDR == *data) { wma->wow_bcast_wake_up_count++; } else if (WMA_MCAST_IPV4_MAC_ADDR == *data) { wma->wow_ipv4_mcast_wake_up_count++; @@ -20852,6 +20854,7 @@ static int wma_wow_wakeup_host_event(void *handle, u_int8_t *event, case WOW_REASON_HTT_EVENT: break; + case WOW_REASON_BPF_ALLOW: case WOW_REASON_PATTERN_MATCH_FOUND: WMA_LOGD("Wake up for Rx packet, dump starting from ethernet hdr"); if (param_buf->wow_packet_buffer) { |
