• Felix Fietkau's avatar
    mt76: validate rx CCMP PN · 30ce7f44
    Felix Fietkau authored
    Apparently hardware does not perform CCMP PN validation in hardware, so
    we need to take care of this in the driver. This is important for
    protecting against replay attacks.
    
    Since validation of fragmented frames is more complex, the CCMP header
    for those is preserved. To keep the counter in sync, the first fragment
    is verified by both mt76 and mac80211, and all other fragments only by
    mac80211.
    Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    30ce7f44
mac80211.c 12.8 KB