From a0a03562eaed5cb8f1a4b2cd388ae663d9511ae5 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Tue, 4 Aug 2020 15:28:49 +0800 Subject: [PATCH] qcacld-3.0: Check the state before starting tdls timer Since tdls_implicit_enable will be called in different scenarios, and there is error level output if repeated start same timer. So check the state before starting tdls timer. Change-Id: Id023affa016f337286dad539298a9bbc15381091 CRs-Fixed: 2747370 --- components/tdls/core/src/wlan_tdls_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/tdls/core/src/wlan_tdls_main.c b/components/tdls/core/src/wlan_tdls_main.c index 95e8ec6ec21e..cfc4f98ecc89 100644 --- a/components/tdls/core/src/wlan_tdls_main.c +++ b/components/tdls/core/src/wlan_tdls_main.c @@ -692,7 +692,9 @@ void tdls_timer_restart(struct wlan_objmgr_vdev *vdev, qdf_mc_timer_t *timer, uint32_t expiration_time) { - qdf_mc_timer_start(timer, expiration_time); + if (QDF_TIMER_STATE_RUNNING != + qdf_mc_timer_get_current_state(timer)) + qdf_mc_timer_start(timer, expiration_time); } /**