Procházet zdrojové kódy

qcacmn: Fix memory leak in TDLS rx mgmt callback

TDLS RX management callback needs to be registered
only during driver load time.
Remove the redundant callback registration.

Change-Id: Iee0e781ade2a4dafaaf372e8a9078347493418df
CRs-Fixed: 2185908
Kabilan Kannan před 7 roky
rodič
revize
0e95ca191b
1 změnil soubory, kde provedl 0 přidání a 8 odebrání
  1. 0 8
      umac/tdls/core/src/wlan_tdls_main.c

+ 0 - 8
umac/tdls/core/src/wlan_tdls_main.c

@@ -833,14 +833,6 @@ static void tdls_send_update_to_fw(struct tdls_vdev_priv_obj *tdls_vdev_obj,
 
 	tdls_debug("TDLS Set state cnt %d",
 		tdls_soc_obj->set_state_info.set_state_cnt);
-
-	if (tdls_soc_obj->set_state_info.set_state_cnt == 1)
-		/* register callbacks with tx/rx mgmt */
-		tdls_mgmt_rx_ops(tdls_soc_obj->soc, true);
-	else
-		/* deregister callbacks with tx/rx mgmt */
-		tdls_mgmt_rx_ops(tdls_soc_obj->soc, false);
-
 done:
 	qdf_mem_free(tdls_info_to_fw);
 	return;