]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: Fix incorrect key_miss handling
authorSenthil Balasubramanian <senthilb@qca.qualcomm.com>
Mon, 11 Jul 2011 18:32:56 +0000 (00:02 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jul 2011 18:49:35 +0000 (14:49 -0400)
commit7c2e90d076ac2a80ee1432a069a109214708be00
tree83e514d64a1b925572dc7153aace4d81a40ac584
parentf4ac708ab2fba2b0618376fe36537b0d9c946ef1
ath9k_hw: Fix incorrect key_miss handling

Decryping frames on key_miss handling shouldn't be done for Michael
MIC failed frames as h/w would have already decrypted such frames
successfully anyway.

Also leaving CRC and PHY error(where the frame is going to be dropped
anyway), we are left to prcoess Decrypt error for which s/w decrypt is
selected anway and so having key_miss as a separate check doesn't serve
anything. So making key_miss handling mutually exlusive with other RX
status handling makes much more sense.

This patch addresses an issue with STA not reporting MIC failure events
resulting in STA being disconnected immediately.

Cc: stable@kernel.org
Signed-off-by: Senthil Balasubramanian <senthilb@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/mac.c