Browse Source

qcacld-3.0: Add reason for opportunistic API

Add reason code return to caller to identify
the hw mode update reason.

Change-Id: I9c754626018ad7cd3f7dc1d287b834629e93dc17
CRs-Fixed: 2338089
Liangwei Dong 6 years ago
parent
commit
3774e5db94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/sme/src/csr/csr_api_roam.c

+ 1 - 1
core/sme/src/csr/csr_api_roam.c

@@ -21316,7 +21316,7 @@ void csr_process_set_hw_mode(tpAniSirGlobal mac, tSmeCmd *command)
 	if ((POLICY_MGR_UPDATE_REASON_OPPORTUNISTIC ==
 		command->u.set_hw_mode_cmd.reason) &&
 		(!command->u.set_hw_mode_cmd.hw_mode_index &&
-		!policy_mgr_need_opportunistic_upgrade(mac->psoc))) {
+		!policy_mgr_need_opportunistic_upgrade(mac->psoc, NULL))) {
 		sme_err("Set HW mode to SMM not needed anymore");
 		goto fail;
 	}