From 1eb747e031cd4b4349e7ae01a84182b95b2b9332 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Wed, 18 Nov 2020 15:39:27 +0800 Subject: [PATCH] qcacld-3.0: delete the pre auth node if any The issue happens in dual sap case, one sap receives peer's auth req and creates preauth node for the peer, then adds to the list mac->lim.pLimPreAuthList. Then Another sap (re)starts, it invokes lim_init_pre_auth_list to set mac->lim.pLimPreAuthList none. In some cases, the preauth node added by first sap will be "lost" and causes max pre-auth nodes reached. Change-Id: I9f5e99095900472a7c77c6b3273eda3c91dded00 CRs-fixed: 2820407 --- core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c index a22afa4f8e2c..11a2f0b79a90 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c @@ -2019,7 +2019,8 @@ static void lim_process_ap_mlm_add_bss_rsp(struct mac_context *mac, pe_session->limSystemRole = eLIM_AP_ROLE; sch_edca_profile_update(mac, pe_session); - lim_init_pre_auth_list(mac); + /* For dual AP case, delete pre auth node if any */ + lim_delete_pre_auth_list(mac); /* Check the SAP security configuration.If configured to * WEP then max clients supported is 16 */