mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Print roam message info for no scan case
For no scan case, FW sends 3 more tlv to host along with 11kv info. This info helps user in debugging/ understanding the scenario when roam failure happens. Print the info received related to btm,scan type, trigger_id into into kmsg for no scan case. Change-Id: I699a22cf344e6a554349bd5338471951d3dd3b4a CRs-Fixed: 2835759
This commit is contained in:
parent
f87fcebbd5
commit
816b2a4d99
1 changed files with 41 additions and 0 deletions
|
|
@ -4018,9 +4018,50 @@ int wma_roam_stats_event_handler(WMA_HANDLE handle, uint8_t *event,
|
|||
goto err;
|
||||
}
|
||||
|
||||
status = wmi_unified_extract_roam_trigger_stats(
|
||||
wma->wmi_handle, event,
|
||||
&roam_info->trigger, 0);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
wma_debug_rl("Extract roam trigger stats failed vdev %d",
|
||||
vdev_id);
|
||||
qdf_mem_free(roam_info);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
status = wmi_unified_extract_roam_scan_stats(wma->wmi_handle,
|
||||
event,
|
||||
&roam_info->scan,
|
||||
0, 0, 0);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
wma_debug_rl("Roam scan stats extract failed vdev %d",
|
||||
vdev_id);
|
||||
qdf_mem_free(roam_info);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
status = wlan_cm_roam_extract_btm_response(wma->wmi_handle,
|
||||
event,
|
||||
&roam_info->btm_rsp,
|
||||
0);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
wma_debug_rl("Roam btm rsp stats extract fail vdev %d",
|
||||
vdev_id);
|
||||
qdf_mem_free(roam_info);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (roam_info->data_11kv.present)
|
||||
wma_rso_print_11kv_info(&roam_info->data_11kv, vdev_id);
|
||||
|
||||
if (roam_info->trigger.present)
|
||||
wma_rso_print_trigger_info(&roam_info->trigger,
|
||||
vdev_id);
|
||||
if (roam_info->scan.present && roam_info->trigger.present)
|
||||
wma_rso_print_scan_info(&roam_info->scan, vdev_id,
|
||||
roam_info->trigger.trigger_reason,
|
||||
roam_info->trigger.timestamp);
|
||||
if (roam_info->btm_rsp.present)
|
||||
wma_rso_print_btm_rsp_info(&roam_info->btm_rsp,
|
||||
vdev_id);
|
||||
qdf_mem_free(roam_info);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue