Search Linux Wireless

Re: [PATCH] mac80211: Let drivers have access to TKIP key offets for TX and RX MIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 21, 2008 at 5:30 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Sat, 2008-06-21 at 07:51 -0400, Luis R. Rodriguez wrote:
>> Some drivers may want to to use the TKIP key offsets for TX and RX
>> MIC so lets move this out.
>>
>> Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
>> ---
>>  include/net/cfg80211.h |    5 +++++
>>  net/mac80211/key.h     |   37 ++++++++++++-------------------------
>>  2 files changed, 17 insertions(+), 25 deletions(-)
>>
>> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
>> index e007508..6cb8b02 100644
>> --- a/include/net/cfg80211.h
>> +++ b/include/net/cfg80211.h
>> @@ -12,6 +12,11 @@
>>   * Copyright 2006, 2007      Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
>>   */
>>
>> +/* Starting offsets for each key for TKIP */
>> +#define ALG_TKIP_TEMP_ENCR_KEY               0
>> +#define ALG_TKIP_TEMP_AUTH_TX_MIC_KEY        16
>> +#define ALG_TKIP_TEMP_AUTH_RX_MIC_KEY        24
>
> put it into nl80211 and give it proper namespace prefixes, please.

OK

>> -/* ALG_TKIP
>> - * struct ieee80211_key::key is encoded as a 256-bit (32 byte) data block:
>> - * Temporal Encryption Key (128 bits)
>> - * Temporal Authenticator Tx MIC Key (64 bits)
>> - * Temporal Authenticator Rx MIC Key (64 bits)
>> - */
>
> and why remove the comment? There's a small comment in nl80211.h but it
> could be described in more detail.

ieee80211_key::key is wrong, it should be ieee80211_key_conf::key,
I'll try to clear this up in a few places and how we follow this to
keep the same format as that received by nl80211.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux