qcacld-3.0: Delete all TDLS peers on receiving CSA from AP
qcacld-2.0 to qcacld-3.0 propagation
On receiving channel switch announcement from AP delete all TDLS
peers before leaving BSS and proceed for channel switch.
Change-Id: I898f501d9d0afbbfef3a553ed63b52da5cd8f978
CRs-Fixed: 914129
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index e27113c..10a7032 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -1984,6 +1984,12 @@
}
if (LIM_IS_STA_ROLE(session_entry)) {
+ /*
+ * on receiving channel switch announcement from AP, delete all
+ * TDLS peers before leaving BSS and proceed for channel switch
+ */
+ lim_delete_tdls_peers(mac_ctx, session_entry);
+
session_entry->gLimChannelSwitch.switchMode =
csa_params->switchmode;
/* timer already started by firmware, switch immediately */