Quellcode durchsuchen

qcacmn: Add mtrace logging for scan request

We are transitioning to new logging infrastructure
by using existing mtrace functionality.
Add new logging for complete scan request and response path.

Change-Id: Iac644a78ef521721d33ce7568be56b47c55fed6b
CRs-Fixed: 2308272
Ashish Kumar Dhanotiya vor 6 Jahren
Ursprung
Commit
0e1895a859

+ 3 - 0
os_if/linux/scan/src/wlan_cfg80211_scan.c

@@ -914,6 +914,9 @@ static void wlan_cfg80211_scan_done_callback(
 	struct net_device *netdev = NULL;
 	QDF_STATUS status;
 
+	qdf_mtrace(QDF_MODULE_ID_SCAN, QDF_MODULE_ID_OS_IF, event->type,
+		   event->vdev_id, event->scan_id);
+
 	if (!util_is_scan_completed(event, &success))
 		return;
 

+ 3 - 0
umac/p2p/core/src/wlan_p2p_roc.c

@@ -906,6 +906,9 @@ void p2p_scan_event_cb(struct wlan_objmgr_vdev *vdev,
 		p2p_err("Failed to find valid P2P roc context");
 		return;
 	}
+
+	qdf_mtrace(QDF_MODULE_ID_SCAN, QDF_MODULE_ID_P2P, event->type,
+		   event->vdev_id, event->scan_id);
 	switch (event->type) {
 	case SCAN_EVENT_TYPE_STARTED:
 		p2p_process_scan_start_evt(curr_roc_ctx);

+ 8 - 0
umac/scan/core/src/wlan_scan_manager.c

@@ -321,6 +321,9 @@ scm_scan_serialize_callback(struct wlan_serialization_command *cmd,
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
+	qdf_mtrace(QDF_MODULE_ID_SERIALIZATION, QDF_MODULE_ID_SCAN, reason,
+		   req->scan_req.vdev_id, req->scan_req.scan_id);
+
 	switch (reason) {
 	case WLAN_SER_CB_ACTIVATE_CMD:
 		/* command moved to active list
@@ -423,6 +426,11 @@ scm_scan_start_req(struct scheduler_msg *msg)
 		status = QDF_STATUS_E_NULL_VALUE;
 		goto err;
 	}
+
+	qdf_mtrace(QDF_MODULE_ID_SCAN, QDF_MODULE_ID_SERIALIZATION,
+		   WLAN_SER_CMD_SCAN, req->vdev->vdev_objmgr.vdev_id,
+		   req->scan_req.scan_id);
+
 	ser_cmd_status = wlan_serialization_request(&cmd);
 	scm_debug("wlan_serialization_request status:%d", ser_cmd_status);