浏览代码

qcacld-3.0: Don't acquire wakelock for initial connection

In function hdd_cm_connect_success_pre_user_update, the
variable is_auth_required is true by default. During roaming,
it should acquire wakelock if key installation is pending.
But during initial connection, it does not need to acquire
wakelock for initial connection in this function.

Change-Id: I967e6d97dd9c7a40d111b0040ee53876b7be6192
CRs-Fixed: 3383907
Paul Zhang 2 年之前
父节点
当前提交
6c0f977367
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      core/hdd/src/wlan_hdd_cm_connect.c

+ 7 - 4
core/hdd/src/wlan_hdd_cm_connect.c

@@ -1433,12 +1433,15 @@ hdd_cm_connect_success_pre_user_update(struct wlan_objmgr_vdev *vdev,
 	if (is_roam_offload || !is_roam) {
 		/* For FW_ROAM/LFR3 OR connect */
 		/* for LFR 3 get authenticated info from resp */
-		if (is_roam)
+		if (is_roam) {
 			is_auth_required =
 				hdd_cm_is_roam_auth_required(sta_ctx, rsp);
-		if (is_auth_required)
-			wlan_acquire_peer_key_wakelock(hdd_ctx->pdev,
-						       rsp->bssid.bytes);
+			if (is_auth_required)
+				wlan_acquire_peer_key_wakelock(hdd_ctx->pdev,
+							      rsp->bssid.bytes);
+		}
+		hdd_debug("is_roam_offload %d, is_roam %d, is_auth_required %d",
+			  is_roam_offload, is_roam, is_auth_required);
 		hdd_roam_register_sta(adapter, &rsp->bssid, is_auth_required);
 	} else {
 		/* for host roam/LFR2 */