Parcourir la source

qcacmn: Enhance MGMT frame logging in WMI

More detailed logging needed for mgmt frames

Add vdev_id, frame type, subtype, and channel to logs by defining wrapper
function around logging macro and calling it from send_mgmt_cmd_tlv

Change-Id: I0c8c26e3194d97be7d903f64c5c5909c2d4b9799
CRs-Fixed: 1011346
Sandeep Puligilla il y a 9 ans
Parent
commit
38a294f178
2 fichiers modifiés avec 27 ajouts et 0 suppressions
  1. 5 0
      wmi_unified_api.h
  2. 22 0
      wmi_unified_priv.h

+ 5 - 0
wmi_unified_api.h

@@ -111,6 +111,11 @@ void *wmi_unified_attach(void *scn_handle,
 			 osdev_t osdev, enum wmi_target_type target_type,
 			 bool use_cookie, struct wmi_rx_ops *ops);
 
+
+void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, WMI_CMD_ID cmd,
+			uint32_t type, uint32_t subtype,
+			uint32_t vdev_id, uint32_t chanfreq);
+
 /**
  * detach for unified WMI
  *

+ 22 - 0
wmi_unified_priv.h

@@ -76,6 +76,28 @@ struct wmi_event_debug {
 	uint64_t time;
 };
 
+/**
+ * struct wmi_command_header - Type for accessing frame data
+ * @ type - 802.11 Frame type
+ * @ subType - 802.11 Frame subtype
+ * @ protVer - 802.11 Version
+ */
+struct wmi_command_header {
+#ifndef ANI_LITTLE_BIT_ENDIAN
+
+	uint32_t sub_type:4;
+	uint32_t type:2;
+	uint32_t prot_ver:2;
+
+#else
+
+	uint32_t prot_ver:2;
+	uint32_t type:2;
+	uint32_t sub_type:4;
+
+#endif
+};
+
 /**
  * struct wmi_log_buf_t - WMI log buffer information type
  * @buf - Refernce to WMI log buffer