[][MAC80211][mt76][do not check the ccmp pn for ONLY_MONITOR frame]

[Description]
Fix the ccmp pn check error with the incorrect key of
 disassociation frame (TGax HE-4.3.3.1_6G)
If the received frame enables RX_FLAG_ONLY_MONITOR,
driver doesn't need to check the ccmp pn of this frame.

[Release-log]
N/A

Change-Id: I7a95ad0fc027c42f32f4690862580ab1d38fb351
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6136684
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/0011-mt76-do-not-check-the-ccmp-pn-for-ONLY_MONITOR-frame.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/0011-mt76-do-not-check-the-ccmp-pn-for-ONLY_MONITOR-frame.patch
new file mode 100644
index 0000000..41149e4
--- /dev/null
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/0011-mt76-do-not-check-the-ccmp-pn-for-ONLY_MONITOR-frame.patch
@@ -0,0 +1,31 @@
+From d3a089aa2c46bd58ab415c909e7232c0bffce74e Mon Sep 17 00:00:00 2001
+From: MeiChia Chiu <meichia.chiu@mediatek.com>
+Date: Mon, 20 Jun 2022 17:42:19 +0800
+Subject: [PATCH] mt76: do not check the ccmp pn for ONLY_MONITOR frame
+
+if the received frame enables RX_FLAG_ONLY_MONITOR,
+driver doesn't need to check the ccmp pn of this frame.
+
+Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
+Change-Id: I85abba5b66ef3b58739069e04830980384f805d1
+---
+ mac80211.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/mac80211.c b/mac80211.c
+index 5515e16..35329c7 100644
+--- a/mac80211.c
++++ b/mac80211.c
+@@ -1028,6 +1028,9 @@ mt76_check_ccmp_pn(struct sk_buff *skb)
+ 	if (!(status->flag & RX_FLAG_DECRYPTED))
+ 		return 0;
+ 
++	if (status->flag & RX_FLAG_ONLY_MONITOR)
++		return 0;
++
+ 	if (!wcid || !wcid->rx_check_pn)
+ 		return 0;
+ 
+-- 
+2.36.1
+