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
This commit is contained in:
Yu Tian 2020-06-30 18:03:05 +08:00 • committed by nshrivas
commit adb7ee6bc0

View file

@ -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);