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
This commit is contained in:
Wu Gao 2020-08-04 15:28:49 +08:00 • committed by snandini
commit a0a03562ea

View file

@ -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);
}
/**