• Jouni Malinen's avatar
    mac80211: Fix drop-unencrypted for management frames · e0463f50
    Jouni Malinen authored
    ADDBA request Action frame was sent out before 4-way handshake was
    completed and the initial 802.11w code ended up dropping the frame
    even if MFP was not enabled. While the sending of Action frames this
    early is not really a good idea (will break with MFP enabled), we
    should not break this for the MFP disabled case.
    
    This patch fixes ieee80211_tx_h_select_key() not to drop management
    frames if MFP is disabled. If MFP is enabled, Action frames will be
    dropped before keys are set per IEEE 802.11w/D7.0. Other robust
    management frames (i.e., Deauthentication and Disassociation frames)
    are allowed unprotected prior to key configuration.
    Signed-off-by: default avatarJouni Malinen <jouni.malinen@atheros.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    e0463f50
tx.c 57.1 KB