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.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: MeiChia Chiu <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
MeiChia Chiu
2022-06-22 13:19:55 +02:00
committed by Felix Fietkau
parent 500c18014d
commit 3ef66fc7c7
+3
View File
@@ -1030,6 +1030,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;