diff options
author | Yeshwanth Sriram Guntuka <ysriramg@codeaurora.org> | 2021-02-27 12:19:09 +0530 |
---|---|---|
committer | Isaac Chiou <isaacchiou@google.com> | 2021-03-19 10:28:12 +0000 |
commit | 80818368ca6e2ff33ab48cd49dbfbcfbda0491da (patch) | |
tree | 4cb3374dddf27146f01c5156465073aa13a48a95 | |
parent | ffd12a21f4e6281cac7fb83557e33e315ee8db1d (diff) | |
download | qcacld-80818368ca6e2ff33ab48cd49dbfbcfbda0491da.tar.gz |
qcacld-3.0: Do not intrabss forward fragmented EAPOL framesandroid-11.0.0_r0.83android-11.0.0_r0.82
Do not intrabss forward fragmented EAPOL frames that have
DA different from the SAP vdev mac addr.
Bug: 182958222
Change-Id: I4145227c9b02fe8cec86ef4ffc3bc2025f906923
CRs-Fixed: 2888467
-rw-r--r-- | core/dp/txrx/ol_rx_fwd.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/dp/txrx/ol_rx_fwd.c b/core/dp/txrx/ol_rx_fwd.c index f984f3bc71..3a803355f8 100644 --- a/core/dp/txrx/ol_rx_fwd.c +++ b/core/dp/txrx/ol_rx_fwd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2011, 2014-2018, 2021 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -213,6 +213,20 @@ ol_rx_fwd_check(struct ol_txrx_vdev_t *vdev, continue; } + if (vdev->opmode == wlan_op_mode_ap && + qdf_nbuf_is_ipv4_eapol_pkt(msdu) && + qdf_mem_cmp(qdf_nbuf_data(msdu) + + QDF_NBUF_DEST_MAC_OFFSET, + vdev->mac_addr.raw, + QDF_MAC_ADDR_SIZE)) { + TXRX_STATS_MSDU_LIST_INCR( + pdev, tx.dropped.host_reject, msdu); + qdf_nbuf_set_next(msdu, NULL); + qdf_nbuf_tx_free(msdu, QDF_NBUF_PKT_ERROR); + msdu = msdu_list; + continue; + } + /* * This MSDU needs to be forwarded to the tx path. * Check whether it also needs to be sent to the OS |