From 7bb5bb042056b2def3de695b08ea93e4501fa6ae Mon Sep 17 00:00:00 2001 From: Surya Prakash Sivaraj Date: Mon, 15 May 2023 12:55:26 +0530 Subject: [PATCH] qcacld-3.0: Abort connection upon auth failure Host driver sends deauth to AP BSS if the ML Info IE is not present in the auth frame, but doesn't abort the connection. Later, upon auth failure timeout the connection gets terminated. Instead of waiting till timeout, abort the connection if the authentication fails. Change-Id: I61e429baf29c49e4b28f379a9f4870dac7de5217 CRs-Fixed: 3497640 --- core/mac/src/pe/lim/lim_process_auth_frame.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_auth_frame.c b/core/mac/src/pe/lim/lim_process_auth_frame.c index 109d2415bb..3054384b84 100644 --- a/core/mac/src/pe/lim/lim_process_auth_frame.c +++ b/core/mac/src/pe/lim/lim_process_auth_frame.c @@ -2044,10 +2044,14 @@ lim_process_auth_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info, if (LIM_IS_STA_ROLE(pe_session) && wlan_vdev_mlme_is_mlo_vdev(pe_session->vdev)) { if (!rx_auth_frm_body->is_mlo_ie_present) { - pe_debug("MLO IE not present in auth frame from peer"); + pe_err("MLO IE not present in auth frame from peer, abort connection"); lim_send_deauth_mgmt_frame( mac_ctx, REASON_UNSPEC_FAILURE, pe_session->bssId, pe_session, false); + lim_restore_from_auth_state(mac_ctx, + eSIR_SME_INVALID_PARAMETERS, + REASON_UNSPEC_FAILURE, + pe_session); goto free; } }