Commit 1858e4fc authored by MeiChia Chiu's avatar MeiChia Chiu Committed by Felix Fietkau

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: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarMeiChia Chiu <MeiChia.Chiu@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 8e3e7567
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment