From ca2862d351a38cf5bed0631cb09a018cf827d457 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Fri, 6 Oct 2017 13:01:57 +0530 Subject: [PATCH] qcacmn: Add host diag events for wow stats Propagation from qcacld-2.0 to qcacld-3.0 Add diag event for wow packet counters stats. The event EVENT_WLAN_POWERSAVE_WOW_STATS will be used to inform the wow stats packet counters. Change-Id: I9d1760aa6b790544b9879e7ef18d4f5359e0e245 CRs-Fixed: 1087714 --- .../host_diag_log/inc/host_diag_core_event.h | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/utils/host_diag_log/inc/host_diag_core_event.h b/utils/host_diag_log/inc/host_diag_core_event.h index ddfa1c962ec4..c5ea694d7585 100644 --- a/utils/host_diag_log/inc/host_diag_core_event.h +++ b/utils/host_diag_log/inc/host_diag_core_event.h @@ -195,6 +195,56 @@ typedef struct { uint8_t wow_wakeup_cause_pbm_ptrn_id; } host_event_wlan_powersave_wow_payload_type; +/*------------------------------------------------------------------------- + Event ID: EVENT_WLAN_POWERSAVE_WOW_STATS + ------------------------------------------------------------------------*/ +/** + * host_event_wlan_powersave_wow_stats - Structure holding wow stats information + * @wow_ucast_wake_up_count: wow unicast packet wakeup count + * @wow_bcast_wake_up_count: wow broadcast packet wakeup count + * @wow_ipv4_mcast_wake_up_count: wow ipv4 multicast packet wakeup count + * @wow_ipv6_mcast_wake_up_count: wow ipv6 multicast packet wakeup count + * @wow_ipv6_mcast_ra_stats: wow ipv6 multicast router advertisement + * packet wakeup count + * @wow_ipv6_mcast_ns_stats: wow ipv6 multicast Neighbor Solicitation + * packet wakeup count + * @wow_ipv6_mcast_na_stats: wow ipv6 multicast address space + * packet wakeup count + * @wow_pno_match_wake_up_count: wow preferred network offload match + * packet wakeup count + * @wow_pno_complete_wake_up_count: wow preferred network offload complete + * packet wakeup count + * @wow_gscan_wake_up_count: wow external scan packet wakeup count + * @wow_low_rssi_wake_up_count: wow low rssi packet wakeup count + * @wow_rssi_breach_wake_up_count: wow rssi breach packet wakeup count + * @wow_icmpv4_count: wow icmpv4 packet count + * @wow_icmpv6_count: wow icmpv6 packet count + * @wow_oem_response_wake_up_count: wow oem response packet wakeup count + * + * This structure contains the wow stats information related to diag event + */ +struct host_event_wlan_powersave_wow_stats { + uint32_t wow_ucast_wake_up_count; + uint32_t wow_bcast_wake_up_count; + uint32_t wow_ipv4_mcast_wake_up_count; + uint32_t wow_ipv6_mcast_wake_up_count; + uint32_t wow_ipv6_mcast_ra_stats; + uint32_t wow_ipv6_mcast_ns_stats; + uint32_t wow_ipv6_mcast_na_stats; + uint32_t wow_pno_match_wake_up_count; + uint32_t wow_pno_complete_wake_up_count; + uint32_t wow_gscan_wake_up_count; + uint32_t wow_low_rssi_wake_up_count; + uint32_t wow_rssi_breach_wake_up_count; + uint32_t wow_icmpv4_count; + uint32_t wow_icmpv6_count; + uint32_t wow_oem_response_wake_up_count; + uint32_t Reserved_1; + uint32_t Reserved_2; + uint32_t Reserved_3; + uint32_t Reserved_4; +}; + /*------------------------------------------------------------------------- Event ID: EVENT_WLAN_BTC ------------------------------------------------------------------------*/