Ver código fonte

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
Abhinav Kumar 4 anos atrás
pai
commit
2bce1a8132
2 arquivos alterados com 4 adições e 3 exclusões
  1. 3 2
      wmi/inc/wmi_unified_param.h
  2. 1 1
      wmi/src/wmi_unified_tlv.c

+ 3 - 2
wmi/inc/wmi_unified_param.h

@@ -7896,13 +7896,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;
 };
 

+ 1 - 1
wmi/src/wmi_unified_tlv.c

@@ -13753,7 +13753,7 @@ extract_roam_result_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf,
 	src_data = &param_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;