Explorar el Código

qcacmn: Trigger recovery while wmi stuck

Replace QDF_BUG with qdf_trigger_self_recovery while wmi stuck.

Change-Id: If366fbdff356d16b78324051aad99fd4455978b5
CRs-Fixed: 2430743
Jingxiang Ge hace 6 años
padre
commit
23c5658da6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      wmi/src/wmi_unified.c

+ 2 - 1
wmi/src/wmi_unified.c

@@ -24,6 +24,7 @@
 #include "wmi_unified_priv.h"
 #include "wmi_unified_api.h"
 #include "qdf_module.h"
+#include "qdf_platform.h"
 #ifdef WMI_EXT_DBG
 #include "qdf_list.h"
 #endif
@@ -1718,7 +1719,7 @@ QDF_STATUS wmi_unified_cmd_send_fl(wmi_unified_t wmi_handle, wmi_buf_t buf,
 		wmi_nofl_err("%s:%d, MAX %d WMI Pending cmds reached",
 			     func, line, wmi_handle->wmi_max_cmds);
 		wmi_unified_debug_dump(wmi_handle);
-		QDF_BUG(0);
+		qdf_trigger_self_recovery();
 		return QDF_STATUS_E_BUSY;
 	}