blob: 41149e48f1dec43a4e417e1b87f2681f4c9fc474 [file] [log] [blame]
developer91dd11a2022-06-20 17:56:57 +08001From d3a089aa2c46bd58ab415c909e7232c0bffce74e Mon Sep 17 00:00:00 2001
2From: MeiChia Chiu <meichia.chiu@mediatek.com>
3Date: Mon, 20 Jun 2022 17:42:19 +0800
4Subject: [PATCH] mt76: do not check the ccmp pn for ONLY_MONITOR frame
5
6if the received frame enables RX_FLAG_ONLY_MONITOR,
7driver doesn't need to check the ccmp pn of this frame.
8
9Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
10Change-Id: I85abba5b66ef3b58739069e04830980384f805d1
11---
12 mac80211.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/mac80211.c b/mac80211.c
16index 5515e16..35329c7 100644
17--- a/mac80211.c
18+++ b/mac80211.c
19@@ -1028,6 +1028,9 @@ mt76_check_ccmp_pn(struct sk_buff *skb)
20 if (!(status->flag & RX_FLAG_DECRYPTED))
21 return 0;
22
23+ if (status->flag & RX_FLAG_ONLY_MONITOR)
24+ return 0;
25+
26 if (!wcid || !wcid->rx_check_pn)
27 return 0;
28
29--
302.36.1
31