From 9ee8244cd8ea09493fe5adb006acee61fa967c8f Mon Sep 17 00:00:00 2001 From: chunquan luo Date: Thu, 23 Mar 2023 17:07:53 +0800 Subject: [PATCH] qcacmn: Add flag to filter special vendor roam log Since special vendor roam log is not need for common roam, add flag to filter the log. Change-Id: Ide67de16ae68c507a7b4e81672cbf5e0fc0e4c5d CRs-Fixed: 3442621 --- wmi/inc/wmi_unified_param.h | 2 ++ wmi/src/wmi_unified_tlv.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 6af01d9070..bc6b1441f1 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -9219,6 +9219,7 @@ struct wmi_neighbor_report_data { /** * struct wmi_roam_trigger_info() - Roam trigger related details * @present: Flag to check if the roam_trigger_info tlv is present + * @common_roam: Flag to indicate common roam or special roam * @trigger_reason: Roam trigger reason(enum WMI_ROAM_TRIGGER_REASON_ID) * @trigger_sub_reason: Sub reason for roam trigger if multiple roam scans * @current_rssi: Connected AP RSSI @@ -9244,6 +9245,7 @@ struct wmi_neighbor_report_data { */ struct wmi_roam_trigger_info { bool present; + bool common_roam; uint32_t trigger_reason; uint32_t trigger_sub_reason; uint32_t current_rssi; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 0f3170f1a5..9aba9b0866 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -18937,6 +18937,7 @@ extract_roam_trigger_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, trig->trigger_reason = wmi_convert_fw_to_cm_trig_reason(trig_reason); trig->timestamp = cmn_data->timestamp; + trig->common_roam = true; } else if (src_data) { trig_reason = src_data->trigger_reason; trig->trigger_reason = @@ -18945,6 +18946,7 @@ extract_roam_trigger_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, wmi_convert_roam_sub_reason(src_data->trigger_sub_reason); trig->current_rssi = src_data->current_rssi; trig->timestamp = src_data->timestamp; + trig->common_roam = false; } if (param_buf->roam_trigger_rssi)