[patch] otus: zfTkipInit(): increment another pointer

Dan Carpenter error27 at gmail.com
Sat Jan 9 08:44:05 UTC 2010


This applies on top of Simon Horman's patch set, particularly [patch 5/6].  
Feel free to roll them into one and change the sign-off to yourself.

There was another pointer that needed to be incremented.  Now all six
of the bytes are used.

Signed-off-by: Dan Carpenter <error27 at gmail.com>

--- orig/drivers/staging/otus/80211core/ctkip.c	2010-01-09 00:46:14.000000000 +0300
+++ devel/drivers/staging/otus/80211core/ctkip.c	2010-01-09 00:48:39.000000000 +0300
@@ -255,7 +255,8 @@ void zfTkipInit(u8_t* key, u8_t* ta, str
     zfMemoryCopy(pSeed->ta, ta, 6);
     zfMemoryCopy(pSeed->tk, key, 16);
 
-    iv16 = *initIv++;
+    iv16 = *initIv;
+    initIv++;
     iv16 += *initIv<<8;
     initIv++;
 



More information about the devel mailing list