qcacld-3.0: Fix wait timeout in policy mgr timer

In policy_mgr_pdev_set_hw_mode_cb, when next_action is PM_OP, it should
also call policy_mgr_set_opportunistic_update, otherwise it would lead to
wait timeout in policy_mgr_check_and_stop_opportunistic_timer.

Change-Id: I74edb72bedfc1a7ec75aa0ded5b855020599cb94
CRs-Fixed: 2481702
This commit is contained in:
Min Liu
2019-07-09 14:20:00 +08:00
committed by nshrivas
parent 948384dd79
commit d5db67924a

View File

@@ -938,12 +938,8 @@ void policy_mgr_pdev_set_hw_mode_cb(uint32_t status,
if (PM_NOP != next_action) if (PM_NOP != next_action)
policy_mgr_next_actions(context, session_id, policy_mgr_next_actions(context, session_id,
next_action, reason); next_action, reason);
else { else
policy_mgr_debug("No action needed right now"); policy_mgr_debug("No action needed right now");
goto set_done_event;
}
return;
set_done_event: set_done_event:
ret = policy_mgr_set_opportunistic_update(context); ret = policy_mgr_set_opportunistic_update(context);