Parcourir la source

qcacmn: Correcting CCE Disable Param check

CCE disable param set based on return value
which has to be checked for 1, instead of
any return value non zero

Change-Id: Ia48e5d0f50a49944dbf7ca048aab1220d8989beb
CRs-Fixed: 2132295
Ruchi, Agrawal il y a 7 ans
Parent
commit
f279a4a02a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
dp/wifi3.0/dp_main.c

@@ -6864,7 +6864,7 @@ void *dp_soc_attach_wifi3(void *ctrl_psoc, void *hif_handle,
 
 		ret = soc->cdp_soc.ol_ops->get_dp_cfg_param(soc->ctrl_psoc,
 				CDP_CFG_CCE_DISABLE);
-		if (ret)
+		if (ret == 1)
 			soc->cce_disable = true;
 	}