From 3e3f97fa7bdb4f7aafc62c80d18300b3bdac2a1a Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Wed, 4 Nov 2020 17:35:16 +0530 Subject: [PATCH] qcacmn: Print roam related info in kmsg The event WMI_ROAM_STATS_EVENTID is received after every roam, once the roam synch complete is sent by the host. This event contains details regarding the btm response. This helps to debug the scenario when roam failure happen. Print the info received related to roam scan type & roam status info into kmsg. Change-Id: I7c01d482e3152dfbf500dba97001c328f39564de CRs-Fixed: 2812515 --- wmi/inc/wmi_unified_param.h | 5 +++-- wmi/src/wmi_unified_tlv.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 2373dbde5f88..61550dff7cb5 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -7974,13 +7974,14 @@ struct wmi_roam_scan_data { * struct wmi_roam_result - Roam result related info. * @present: Flag to check if the roam result tlv is present * @timestamp: Host timestamp in millisecs - * @status: 0 - Roaming is success ; 1 - Roaming failed + * @status: 0 - Roaming is success ; 1 - Roaming failed ; + * 2 - No roam * @fail_reason: One of WMI_ROAM_FAIL_REASON_ID */ struct wmi_roam_result { bool present; uint32_t timestamp; - bool status; + uint32_t status; uint32_t fail_reason; }; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 7a7d9565111d..aae9281f9eaf 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -13732,7 +13732,7 @@ extract_roam_result_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, src_data = ¶m_buf->roam_result[idx]; dst->present = true; - dst->status = src_data->roam_status ? false : true; + dst->status = src_data->roam_status; dst->timestamp = src_data->timestamp; dst->fail_reason = src_data->roam_fail_reason;