1
0
Files
linux/drivers/net/wireless/ath/ath9k
Lorenzo Bianconi e1352fde56 ath9k: fix decrypt_error initialization in ath_rx_tasklet()
ath_rx_tasklet() calls ath9k_rx_skb_preprocess() and ath9k_rx_skb_postprocess()
in a loop over the received frames. The decrypt_error flag is
initialized to false
just outside ath_rx_tasklet() loop. ath9k_rx_accept(), called by
ath9k_rx_skb_preprocess(),
only sets decrypt_error to true and never to false.
Then ath_rx_tasklet() calls ath9k_rx_skb_postprocess() and passes
decrypt_error to it.
So, after a decryption error, in ath9k_rx_skb_postprocess(), we can
have a leftover value
from another processed frame. In that case, the frame will not be marked with
RX_FLAG_DECRYPTED even if it is decrypted correctly.
When using CCMP encryption this issue can lead to connection stuck
because of CCMP
PN corruption and a waste of CPU time since mac80211 tries to decrypt an already
deciphered frame with ieee80211_aes_ccm_decrypt.
Fix the issue initializing decrypt_error flag at the begging of the
ath_rx_tasklet() loop.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-08-13 15:17:24 -04:00
..
2012-07-09 16:36:24 -04:00
2012-06-28 14:37:46 -04:00
2012-06-28 14:37:46 -04:00
2012-06-06 15:20:31 -04:00
2012-06-28 14:37:47 -04:00
2012-06-28 14:37:47 -04:00
2012-07-17 15:11:40 -04:00
2012-07-17 15:11:40 -04:00
2012-06-06 15:20:30 -04:00
2012-06-06 15:20:30 -04:00
2012-07-17 15:11:39 -04:00
2012-07-17 15:11:40 -04:00
2012-07-17 15:11:36 -04:00
2012-06-26 14:28:52 -04:00
2012-06-26 14:28:52 -04:00
2012-08-03 10:11:14 -04:00
2012-08-03 10:11:14 -04:00
2012-07-17 15:11:39 -04:00
2012-07-17 15:11:40 -04:00
2012-07-12 15:27:16 -04:00
2012-07-17 15:11:40 -04:00
2012-08-10 14:51:29 -04:00
2012-07-12 15:27:16 -04:00
2012-07-17 15:11:40 -04:00