Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd7aba91 authored by Bala Venkatesh's avatar Bala Venkatesh Committed by nshrivas
Browse files

qcacld-3.0: Pass psoc instead of vdev for teardown links

As part of start_ap or connect_start to teardown active tdls peers
hdd_notify_teardown_tdls_links is called with argument vdev. But
TDLS might not be enabled on that vdev. With recent changes,
osif_priv object is initialized as part of tdls_vdev_init.
For the new interface if TDLS is not initialized then osif_priv
object will not be found and TDLS peers are not removed.

Change-Id: Idcf690bba2766664700a4851d390ee620f2fe73a
CRs-Fixed: 2460108
parent 78da4f30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18119,7 +18119,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
	/* Disable roaming on all other adapters before connect start */
	wlan_hdd_disable_roaming(adapter);
	hdd_notify_teardown_tdls_links(adapter->vdev);
	hdd_notify_teardown_tdls_links(hdd_ctx->psoc);
	qdf_mem_zero(&hdd_sta_ctx->conn_info.conn_flag,
		     sizeof(hdd_sta_ctx->conn_info.conn_flag));
+1 −1
Original line number Diff line number Diff line
@@ -7826,7 +7826,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,

	hdd_enter();

	hdd_notify_teardown_tdls_links(adapter->vdev);
	hdd_notify_teardown_tdls_links(hdd_ctx->psoc);

	if (policy_mgr_is_hw_mode_change_in_progress(hdd_ctx->psoc)) {
		status = policy_mgr_wait_for_connection_update(