wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/697-ath12k-fix-tkip-encryption-traffic-failure.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

31 lines
1.1 KiB
Diff

From 4463d5005711a7af048945d566834de430eee8fc Mon Sep 17 00:00:00 2001
From: Ramya Gnanasekar <quic_rgnanase@quicinc.com>
Date: Wed, 7 Dec 2022 17:28:57 +0530
Subject: [PATCH] ath12k: fix tkip encryption traffic failure
Fast rx is not assigned in case of TKIP cipher and hence
packets are dropped in fast path.
Handle the rx decap for TKIP so frames will be handled in
normal rx path.
Signed-off-by: Ramya Gnanasekar <quic_rgnanase@quicinc.com>
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index a9de599..96ec12f 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -2510,7 +2510,8 @@ static void ath12k_dp_rx_h_undecap(struct ath12k *ar, struct sk_buff *msdu,
ehdr = (struct ethhdr *)msdu->data;
/* mac80211 allows fast path only for authorized STA */
- if (ehdr->h_proto == cpu_to_be16(ETH_P_PAE)) {
+ if (ehdr->h_proto == cpu_to_be16(ETH_P_PAE) ||
+ enctype == HAL_ENCRYPT_TYPE_TKIP_MIC) {
ATH12K_SKB_RXCB(msdu)->is_eapol = true;
ath12k_dp_rx_h_undecap_eth(ar, msdu, enctype, status);
break;
--
2.17.1