Bläddra i källkod

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
Min Liu 5 år sedan
förälder
incheckning
d5db67924a
1 ändrade filer med 1 tillägg och 5 borttagningar
  1. 1 5
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

+ 1 - 5
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);