• Jouni Malinen's avatar
    ath: Fix clearing of secondary key cache entry for TKIP · 8e546104
    Jouni Malinen authored
    All register writes to the key cache have to be done in pairs. However,
    the clearing of a separate MIC entry with hardware revisions that use
    combined MIC key layout did not do that with one of the registers. Add
    the matching register write to the following register to make the KEY4
    register write actually complete.
    
    This is mostly a fix for a theoretical issue since the incorrect entry
    that could potentially be left behind in the key cache would not match
    with received frames. Anyway, better make this code clean the entry
    correctly using paired register writes.
    Signed-off-by: default avatarJouni Malinen <jouni.malinen@atheros.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    8e546104
key.c 16.2 KB