[PATCH v2] mt76: do not pass the received frame with decryption error

Felix Fietkau nbd at nbd.name
Fri Nov 12 03:52:44 PST 2021


On 2021-11-10 03:54, Xing Song wrote:
> Drop the received frame if decryption failed and mac80211 can not
> handle it.
> 
> Signed-off-by: Xing Song <xing.song at mediatek.com>
What happens if decryption failed? Do we receive the encrypted packets?
If so, I think we should return -EINVAL only if we don't have any 
monitor mode interfaces. If monitor mode is active, we should probably 
just clear RX_FLAG_DECRYPTED instead.

- Felix



More information about the Linux-mediatek mailing list