Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ee7bb99 authored by Srikanth Marepalli's avatar Srikanth Marepalli Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Ignore duplicated assoc req frame

When PMF enabled, SA Query will be triggered unexpectly if
duplicated assoc_req received after pre_auth node deleted
and before key installed.
Here drop such duplicated assoc_req frame.

Change-Id: I1c769892052fba5e8c7340b2f82e822add573dd4
CRs-Fixed: 2966447
parent 3c6aa0c3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -2335,6 +2336,15 @@ void lim_process_assoc_req_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_in
				session->limSystemRole,
				QDF_MAC_ADDR_REF(hdr->sa));
			return;
		} else if (sta_ds->rmfEnabled && !sta_ds->is_key_installed) {
			/* When PMF enabled, SA Query will be triggered
			 * unexpectly if duplicated assoc_req received -
			 * 1) after pre_auth node deleted and
			 * 2) before key installed.
			 * Here drop such duplicated assoc_req frame.
			 */
			pe_err("Drop duplicate assoc_req before 4-way HS");
			return;
		}
	}