lkml.org 
[lkml]   [2010]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] otus: zfTkipInit(): increment another pointer
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@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++;


\
 
 \ /
  Last update: 2010-01-09 09:47    [from the cache]
©2003-2011 Jasper Spaans