• Arik Nemtsov's avatar
    wlcore: improve handling for Rx errors · 387116b8
    Arik Nemtsov authored
    Treat Rx error code as a bitmask. This allows sending MIC failures
    when other error bit are on.
    
    Align Rx descriptor status mask to the FW definition.
    
    Ease debugging in case FW reports failure to decrypt on packets.
    
    Discard corrupted packets early in Rx path to avoid reporting other
    abnormalities with corrupted packets that also have other failure bytes on.
    Namely - we don't want to get a MIC failure on a corrupted packet.
    This is mandated by the WiFi specification - see
    section 11.4.2.4.1 in 802.11-2012.
    Signed-off-by: default avatarEyal Shapira <eyal@wizery.com>
    Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
    Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
    387116b8
rx.h 4.08 KB