qcacld-3.0: Add support to log roam events in DPTRACE

Add support to log all the roam related commands and events
in DPTRACE.

Change-Id: I66773fc23dfeacf3a63688819e099bf44676d95b
CRs-Fixed: 1081851
This commit is contained in:
Himanshu Agarwal 2016-09-20 15:09:09 +05:30 • committed by qcabuildsw
commit 67a863b1b9

View file

@ -2273,6 +2273,9 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
return status;
}
DPTRACE(qdf_dp_trace_record_event(QDF_DP_TRACE_EVENT_RECORD,
synch_event->vdev_id, QDF_PROTO_TYPE_EVENT, QDF_ROAM_SYNCH));
if (wma_is_roam_synch_in_progress(wma, synch_event->vdev_id)) {
WMA_LOGE("%s: Ignoring RSI since one is already in progress",
__func__);
@ -2679,6 +2682,10 @@ void wma_process_roam_synch_complete(WMA_HANDLE handle, uint8_t vdev_id)
vdev_id)) {
return;
}
DPTRACE(qdf_dp_trace_record_event(QDF_DP_TRACE_EVENT_RECORD,
vdev_id, QDF_PROTO_TYPE_EVENT, QDF_ROAM_COMPLETE));
WMA_LOGE("LFR3: Posting WMA_ROAM_OFFLOAD_SYNCH_CNF");
return;
}
@ -5778,6 +5785,9 @@ int wma_roam_event_callback(WMA_HANDLE handle, uint8_t *event_buf,
__func__, wmi_event->reason, wmi_event->notif,
wmi_event->vdev_id, wmi_event->rssi);
DPTRACE(qdf_dp_trace_record_event(QDF_DP_TRACE_EVENT_RECORD,
wmi_event->vdev_id, QDF_PROTO_TYPE_EVENT, QDF_ROAM_EVENTID));
switch (wmi_event->reason) {
case WMI_ROAM_REASON_BMISS:
WMA_LOGD("Beacon Miss for vdevid %x", wmi_event->vdev_id);