فهرست منبع

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
Yeshwanth Sriram Guntuka 5 سال پیش
والد
کامیت
cbd99a4af5
2فایلهای تغییر یافته به همراه30 افزوده شده و 0 حذف شده
  1. 28 0
      utils/host_diag_log/inc/host_diag_core_log.h
  2. 2 0
      utils/host_diag_log/inc/log_codes.h

+ 28 - 0
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
    ------------------------------------------------------------------------*/

+ 2 - 0
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)