developer | 91dd11a | 2022-06-20 17:56:57 +0800 | [diff] [blame^] | 1 | From d3a089aa2c46bd58ab415c909e7232c0bffce74e Mon Sep 17 00:00:00 2001 |
| 2 | From: MeiChia Chiu <meichia.chiu@mediatek.com> |
| 3 | Date: Mon, 20 Jun 2022 17:42:19 +0800 |
| 4 | Subject: [PATCH] mt76: do not check the ccmp pn for ONLY_MONITOR frame |
| 5 | |
| 6 | if the received frame enables RX_FLAG_ONLY_MONITOR, |
| 7 | driver doesn't need to check the ccmp pn of this frame. |
| 8 | |
| 9 | Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 10 | Change-Id: I85abba5b66ef3b58739069e04830980384f805d1 |
| 11 | --- |
| 12 | mac80211.c | 3 +++ |
| 13 | 1 file changed, 3 insertions(+) |
| 14 | |
| 15 | diff --git a/mac80211.c b/mac80211.c |
| 16 | index 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 | -- |
| 30 | 2.36.1 |
| 31 | |