ソースを参照

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
chunquan luo 2 年 前
コミット
9ee8244cd8
2 ファイル変更4 行追加0 行削除
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 2 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
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;

+ 2 - 0
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)