]> git.baikalelectronics.ru Git - kernel.git/commit
ath: Fix clearing of secondary key cache entry for TKIP
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 4 Feb 2011 11:51:28 +0000 (13:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Feb 2011 21:29:52 +0000 (16:29 -0500)
commit4340b5e9454fb4bca5bc73ca070b6cd2cda5f3f0
tree1b8fc4eaf6031dc1ea7b70a2d10011916586196f
parent650c64ecba5af372840e1a38af2d11539bacfb7b
ath: Fix clearing of secondary key cache entry for TKIP

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: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/key.c