From cbd99a4af5d4fbc57a90c6c5fa88568221949b04 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Tue, 24 Dec 2019 16:45:06 +0530 Subject: [PATCH] qcacmn: Add diag log structure for data pkt info Add the diag log structure for protocol data packet info to be sent as diag log to user-space. Change-Id: I604a8e4d4355c39e66cd1b6b877aecb7f658b316 CRs-Fixed: 2595797 --- utils/host_diag_log/inc/host_diag_core_log.h | 28 ++++++++++++++++++++ utils/host_diag_log/inc/log_codes.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/utils/host_diag_log/inc/host_diag_core_log.h b/utils/host_diag_log/inc/host_diag_core_log.h index 5e5b363f2b72..a2642484bd17 100644 --- a/utils/host_diag_log/inc/host_diag_core_log.h +++ b/utils/host_diag_log/inc/host_diag_core_log.h @@ -551,6 +551,34 @@ struct host_log_wlan_rrm_tx_rx_info { struct wlan_rrm_beacon_report bcn_rpt; } qdf_packed; +/** + * struct host_event_proto_pkt_info - DP protocol pkt info + * @hdr: Log header + * @version: version + * @type: data pkt type + * @subtype: data pkt subtype + * @dir: tx or rx + * @sa: source MAC address + * @da: destination MAC address + * @msdu_id: MSDU id + * @status: status + * + * Structure containing the protocol data pkt info + * + * LOG_WLAN_DP_PROTO_PKT_INFO_C 0x1A1E + */ +struct host_event_proto_pkt_info { + log_hdr_type hdr; + uint32_t version; + uint8_t type; + uint8_t subtype; + uint8_t dir; + uint8_t sa[QDF_MAC_ADDR_SIZE]; + uint8_t da[QDF_MAC_ADDR_SIZE]; + uint16_t msdu_id; + uint8_t status; +}; + /*------------------------------------------------------------------------- Function declarations and documenation ------------------------------------------------------------------------*/ diff --git a/utils/host_diag_log/inc/log_codes.h b/utils/host_diag_log/inc/log_codes.h index 11dfa6bca37d..ef17e271b755 100644 --- a/utils/host_diag_log/inc/log_codes.h +++ b/utils/host_diag_log/inc/log_codes.h @@ -2009,6 +2009,8 @@ #define LOG_WLAN_ROAM_RESULT_INFO_C ((0x1A1C) + LOG_1X_BASE_C) #define LOG_WLAN_RRM_TX_RX_INFO_C ((0x1A1D) + LOG_1X_BASE_C) +#define LOG_WLAN_DP_PROTO_PKT_INFO_C ((0xA1E) + LOG_1X_BASE_C) + /* This is only here for old (pre equipment ID update) logging code */ #define LOG_LAST_C (LOG_1X_LAST_C & 0xFFF)