From adb7ee6bc0f8df5c57ee9a8246c5e08e4c29ac1a Mon Sep 17 00:00:00 2001 From: Yu Tian Date: Tue, 30 Jun 2020 18:03:05 +0800 Subject: [PATCH] qcacld-3.0: use sync method in SAP delete peers when CSA happens, peer delete will not call SAP de-register flow, of which may lead adapter sta_info struct dirty. When STA interface is assigned new peer_id, it has possibility to conflict with dirty sta_id in adapter sta_info list. So change to sync peer delete and notify umac to clean sta_info. Change-Id: I1703b2b45837e0b4c0814e5c95ae7f86b510e1fc CRs-Fixed: 2713147 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 49edcfa56ee9..0725ecb30a7f 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -2478,7 +2478,7 @@ void lim_delete_all_peers(struct pe_session *session) &session->dph.dphHashTable); if (!sta_ds) continue; - status = lim_del_sta(mac_ctx, sta_ds, false, session); + status = lim_del_sta(mac_ctx, sta_ds, true, session); if (QDF_STATUS_SUCCESS == status) { lim_delete_dph_hash_entry(mac_ctx, sta_ds->staAddr, sta_ds->assocId, session);