Subject: [PATCH wireless-dev 6/6] d80211: Fix TKIP replay protection

From: Jouni Malinen <[email-masked]>
Date: Mon, 07 Aug 2006 16:16:14 -0700

Fixed TKIP replay protection for the case where hwaccel is enabled.
rx_initialized flag was not set in this case and the TSC validation
was skipped for the frames.

Signed-off-by: Jouni Malinen <[email-masked]>

Index: wireless-dev/net/d80211/tkip.c
===================================================================
--- wireless-dev.orig/net/d80211/tkip.c
+++ wireless-dev/net/d80211/tkip.c
@@ -286,6 +286,7 @@ int ieee80211_tkip_decrypt_data(struct c
 
 	if (only_iv) {
 		res = TKIP_DECRYPT_OK;
+		key->u.tkip.rx_initialized[queue] = 1;
 		goto done;
 	}

--
-- 
Jouni Malinen                                            PGP id EFC895FA