浏览代码

qcacld-3.0: Send the Fatal Event to framework

In vdev delete timeout scenario, Host driver sends the Fatal
Event to framework which can collect the all host/fw logs
and trigger SSR.

Change-Id: I5d68c0a44bd93593bda9665645fd211325eb9ebe
CRs-Fixed: 3296272
abhinav kumar 2 年之前
父节点
当前提交
9985af8383
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 4 2
      core/hdd/src/wlan_hdd_main.c
  2. 3 1
      core/mac/inc/ani_global.h

+ 4 - 2
core/hdd/src/wlan_hdd_main.c

@@ -6148,8 +6148,10 @@ int hdd_vdev_destroy(struct hdd_adapter *adapter)
 		hdd_err("vdev %d: timed out waiting for delete", vdev_id);
 		clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
 		sme_cleanup_session(hdd_ctx->mac_handle, vdev_id);
-		qdf_trigger_self_recovery(hdd_ctx->psoc,
-					  QDF_VDEV_DELETE_RESPONSE_TIMED_OUT);
+		cds_flush_logs(WLAN_LOG_TYPE_FATAL,
+			       WLAN_LOG_INDICATOR_HOST_DRIVER,
+			       WLAN_LOG_REASON_VDEV_DELETE_RSP_TIMED_OUT,
+			       true, true);
 	}
 
 	hdd_nofl_debug("vdev %d destroyed successfully", vdev_id);

+ 3 - 1
core/mac/inc/ani_global.h

@@ -158,6 +158,7 @@ enum log_event_indicator {
  * @WLAN_LOG_REASON_HB_FAILURE: station triggered heart beat failure with AP
  * @WLAN_LOG_REASON_ROAM_HO_FAILURE: Handover failed during LFR3 roaming
  * @WLAN_LOG_REASON_DISCONNECT: Disconnect because of some failure
+ * @WLAN_LOG_REASON_VDEV_DELETE_RSP_TIMED_OUT: vdev delete rsp time out
  */
 enum log_event_host_reason_code {
 	WLAN_LOG_REASON_CODE_UNUSED,
@@ -174,7 +175,8 @@ enum log_event_host_reason_code {
 	WLAN_LOG_REASON_SCAN_NOT_ALLOWED,
 	WLAN_LOG_REASON_HB_FAILURE,
 	WLAN_LOG_REASON_ROAM_HO_FAILURE,
-	WLAN_LOG_REASON_DISCONNECT
+	WLAN_LOG_REASON_DISCONNECT,
+	WLAN_LOG_REASON_VDEV_DELETE_RSP_TIMED_OUT
 };