• Xing Song's avatar
    mt76: use a separate CCMP PN receive counter for management frames · a1b0bbd4
    Xing Song authored
    When received frame is decryped by hardware, CCMP PN is checked by
    mt76.
    
    When management frame protection (IEEE 802.11w) is used, we must use
    a separate counter for tracking received CCMP packet number for the
    management frames. The previously used counter was shared with data
    frames and that can cause problems in detecting replays incorrectly
    for robust management frames.
    
    Add a new counter just for robust management frames to avoid this
    issue.
    Signed-off-by: default avatarXing Song <xing.song@mediatek.com>
    Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
    a1b0bbd4
mac80211.c 35.7 KB