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
This commit is contained in:
Liangwei Dong 2018-05-28 03:31:43 -04:00 • committed by nshrivas
commit 3774e5db94

View file

@ -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;
}