From d5db67924a52a811a6916e7cd46f446b4e5c7195 Mon Sep 17 00:00:00 2001 From: Min Liu Date: Tue, 9 Jul 2019 14:20:00 +0800 Subject: [PATCH] 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 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c index 58fd099cd859..52d2e0ce0d80 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c @@ -938,12 +938,8 @@ void policy_mgr_pdev_set_hw_mode_cb(uint32_t status, if (PM_NOP != next_action) policy_mgr_next_actions(context, session_id, next_action, reason); - else { + else policy_mgr_debug("No action needed right now"); - goto set_done_event; - } - - return; set_done_event: ret = policy_mgr_set_opportunistic_update(context);