Skip to content
Commit dd28dea5 authored by Xing Song's avatar Xing Song Committed by Felix Fietkau
Browse files

mt76: do not pass the received frame with decryption error



MAC80211 doesn't care any decryption error in 802.3 path, so received
frame will be dropped if HW tell us that the cipher configuration is not
matched as well as the header has been translated to 802.3. This case only
appears when IEEE80211_FCTL_PROTECTED is 0 and cipher suit is not none in
the corresponding HW entry.

The received frame is only reported to monitor interface if HW decryption
block tell us there is ICV error or CCMP/BIP/WPI MIC error. Note in this
case the reported frame is decrypted 802.11 frame and the payload may be
malformed due to mismatched key.

Signed-off-by: default avatarXing Song <xing.song@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent dfdf6725
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment