From 3774e5db94578a6c114d3df0868dd78d3a1dab9d Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Mon, 28 May 2018 03:31:43 -0400 Subject: [PATCH] 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 --- core/sme/src/csr/csr_api_roam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 79fbb25c56e3..b4ff842c33c5 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/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; }