Forráskód Böngészése

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
Wu Gao 4 éve
szülő
commit
a0a03562ea
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      components/tdls/core/src/wlan_tdls_main.c

+ 3 - 1
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);
 }
 
 /**