Bläddra i källkod

qcacld-3.0: Increase time to wait adapter stopped

Every adapter takes ~300ms to stop. For 4 adapters, totally 500ms is
not enough. To ensure all adapters stopped, increase sleep time to
1.5s.

Change-Id: I56ecb99519bf7834dd5e00986d847643612936c9
CRs-Fixed: 3604933
Yu Ouyang 1 år sedan
förälder
incheckning
38abf037a1
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      core/hdd/src/wlan_hdd_main.c

+ 3 - 3
core/hdd/src/wlan_hdd_main.c

@@ -10822,7 +10822,7 @@ out:
 static QDF_STATUS
 hdd_shutdown_wlan_in_suspend_prepare(struct hdd_context *hdd_ctx)
 {
-#define SHUTDOWN_IN_SUSPEND_RETRY 10
+#define SHUTDOWN_IN_SUSPEND_RETRY 30
 
 	int count = 0;
 	enum pmo_suspend_mode mode;
@@ -10835,7 +10835,7 @@ hdd_shutdown_wlan_in_suspend_prepare(struct hdd_context *hdd_ctx)
 	mode = ucfg_pmo_get_suspend_mode(hdd_ctx->psoc);
 	hdd_debug("suspend mode is %d", mode);
 
-	if (mode == PMO_SUSPEND_NONE || PMO_SUSPEND_LEGENCY) {
+	if (mode == PMO_SUSPEND_NONE || mode == PMO_SUSPEND_LEGENCY) {
 		hdd_debug("needn't shutdown in suspend");
 		return 0;
 	}
@@ -10848,7 +10848,7 @@ hdd_shutdown_wlan_in_suspend_prepare(struct hdd_context *hdd_ctx)
 			return 0;
 	}
 
-	/*try to wait interfacee down for PMO_SUSPEND_SHUTDOWN mode*/
+	/*try to wait interface down for PMO_SUSPEND_SHUTDOWN mode*/
 	while (hdd_is_any_interface_open(hdd_ctx) &&
 	       count < SHUTDOWN_IN_SUSPEND_RETRY) {
 		count++;