• Ping-Ke Shih's avatar
    rtw88: Don't set RX_FLAG_DECRYPTED if packet has no encryption · 0649ff58
    Ping-Ke Shih authored
    The value of GET_RX_DESC_SWDEC() indicates that if this RX
    packet requires software decryption or not. And software
    decryption is required when the packet was encrypted and the
    hardware failed to decrypt it.
    
    So, GET_RX_DESC_SWDEC() is negative does not mean that this
    packet is decrypted, it might just have no encryption at all.
    To actually see if the packet is decrypted, driver needs to
    further check if the hardware has successfully decrypted it,
    with a specific type of encryption algorithm.
    Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    0649ff58
rx.h 2.38 KB