瀏覽代碼

qcacld-3.0: stop the idle restart timer before reading the driver status

If the idle restart is not stopped before reading the driver status
the driver status could be changed in the other thread leading to
different issues.

Stop the idle restart timer before reading the driver status, so
the next action depending on the driver status can be taken correctly.

Change-Id: Ida7fe3fe8144e300344d29cae8188b64f074b3bb
CRs-Fixed: 2626500
Arun Kumar Khandavalli 5 年之前
父節點
當前提交
62814f8ac4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

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

@@ -10336,8 +10336,8 @@ int hdd_trigger_psoc_idle_restart(struct hdd_context *hdd_ctx)
 
 	QDF_BUG(rtnl_is_locked());
 
+	hdd_psoc_idle_timer_stop(hdd_ctx);
 	if (hdd_ctx->driver_status == DRIVER_MODULES_ENABLED) {
-		hdd_psoc_idle_timer_stop(hdd_ctx);
 		hdd_nofl_debug("Driver modules already Enabled");
 		return 0;
 	}