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

Commit b6c65058 authored by Yeshwanth Sriram Guntuka's avatar Yeshwanth Sriram Guntuka Committed by Yingying Tang
Browse files

qcacld-3.0: Drop EAPOL frame with DA different from SAP vdev mac addr

Fragmented EAPOL frames and EAPOL frames received
in few error scenarios with DA different from SAP
vdev mac addr will be dropped.

Change-Id: I624eba5bdb43c6b88a1f57112550f8026cc35e24
CRs-Fixed: 2888227
parent 650248d3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2018, 2021 The Linux Foundation. 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
@@ -910,6 +910,13 @@ QDF_STATUS hdd_softap_rx_packet_cbk(void *context, qdf_nbuf_t rxBuf)

	hdd_dhcp_indication(pAdapter, staid, skb, QDF_RX);

	if (qdf_unlikely(qdf_nbuf_is_ipv4_eapol_pkt(skb) &&
			 qdf_mem_cmp(qdf_nbuf_data(skb) +
				     QDF_NBUF_DEST_MAC_OFFSET,
				     pAdapter->macAddressCurrent.bytes,
				     QDF_MAC_ADDR_SIZE)))
		return QDF_STATUS_E_FAILURE;

	hdd_event_eapol_log(skb, QDF_RX);
	qdf_dp_trace_log_pkt(pAdapter->sessionId, skb, QDF_RX);
	DPTRACE(qdf_dp_trace(skb,