Files
linux/drivers/net
Lorenzo Bianconi c227ece753 ath9k: fix decrypt_error initialization in ath_rx_tasklet()
commit e1352fde56 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-14 10:00:39 -07:00
..
2011-03-05 10:55:57 +01:00
2012-03-19 08:57:46 -07:00
2012-07-16 08:47:37 -07:00
2012-08-09 08:27:52 -07:00
2012-01-25 17:25:03 -08:00
2011-07-01 17:36:04 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-06-13 18:25:19 -04:00
2010-12-21 02:16:08 -08:00
2011-05-31 19:28:32 -07:00
2010-11-09 09:17:56 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-11-09 09:17:56 -08:00
2011-03-31 11:26:23 -03:00
2010-08-24 12:24:07 -07:00
2010-09-26 18:34:29 -07:00
2012-08-09 08:27:51 -07:00
2011-04-10 18:55:21 -07:00
2011-03-31 11:26:23 -03:00
2010-12-23 11:44:34 -08:00
2010-09-26 18:34:29 -07:00
2010-09-26 18:34:29 -07:00
2011-05-31 19:28:32 -07:00
2011-05-07 03:08:38 -07:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-07-15 16:00:20 -07:00
2011-07-15 16:00:20 -07:00
2011-04-17 17:47:36 -07:00
2011-05-07 22:31:35 -07:00
2011-06-19 16:28:02 -07:00
2011-03-31 11:26:23 -03:00
2010-12-21 02:16:08 -08:00
2011-05-31 19:28:32 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-02-29 16:34:31 -08:00
2012-02-29 16:34:31 -08:00
2012-05-21 09:40:05 -07:00
2011-03-31 11:26:23 -03:00
2010-11-09 09:17:56 -08:00
2011-03-31 11:26:23 -03:00
2010-11-09 09:17:56 -08:00
2011-03-31 11:26:23 -03:00
2011-08-15 18:31:38 -07:00
2010-09-26 18:34:29 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-31 19:28:32 -07:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2011-08-15 18:31:38 -07:00
2011-04-06 14:35:23 -07:00
2011-03-31 11:26:23 -03:00
2010-09-15 22:06:05 -07:00
2010-09-21 18:04:47 -07:00
2011-03-31 11:26:23 -03:00
2011-04-26 10:22:59 +02:00
2010-10-24 16:25:39 -07:00
2011-06-05 17:02:51 -07:00
2011-03-31 11:26:23 -03:00
2011-05-31 19:28:32 -07:00
2010-12-21 02:16:08 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-05-21 09:40:00 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-08-09 08:27:53 -07:00
2011-03-31 11:26:23 -03:00
2012-02-29 16:34:08 -08:00
2011-05-30 11:14:16 +09:30
2010-12-21 02:16:08 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00