openwrt-ipq-breeze303/package/kernel/mac80211/patches/nss/ath11k/359-ath11k-fix-tkip-encryption-traffic-failure.patch

26 lines
975 B
Diff

From e4f2f898dcbe2bf82b9e8fb4f3d306c98d82e5bd Mon Sep 17 00:00:00 2001
From: Ramya Gnanasekar <quic_rgnanase@quicinc.com>
Date: Wed, 7 Dec 2022 17:29:50 +0530
Subject: [PATCH] ath11k: 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>
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -2564,7 +2564,8 @@ static void ath11k_dp_rx_h_undecap(struc
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) {
ATH11K_SKB_RXCB(msdu)->is_eapol = true;
ath11k_dp_rx_h_undecap_eth(ar, msdu, first_hdr,
enctype, status);