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;