[PATCH] FT: fix the calculation of MIC Control field in FTIE

Hong Wu Hong.Wu
Fri Jul 15 23:03:29 PDT 2011


>> diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c
>> @@ -1207,7 +1207,7 @@ u16 wpa_ft_validate_reassoc(struct
>> wpa_state_machine *sm, const u8 *ies,
>>       count = 3;
>>       if (parse.ric)
>> -           count++;
>> +           count += ieee802_11_ie_count(parse.ric, parse.ric_len);

>This looks reasonable..

>> diff --git a/src/rsn_supp/wpa_ft.c b/src/rsn_supp/wpa_ft.c
>> @@ -950,8 +950,8 @@ int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm,
>> const u8 *ies,
>>       count = 3;
>> -     if (parse.tie)
>> -           count++;
>> +     if (parse.ric)
>> +           count += ieee802_11_ie_count(parse.ric, parse.ric_len);

>.. and so does the parse.ric part here, but why is parse.tie removed
>from the count?

Reassociation response frame may include RIC (IEEE802.11r 7.2.3.7), and TIE is not included in MIC calculation for FTIE. (IEEE802.11r 11A.8.4/11A.8.5).

Hong Wu 

______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20110716/b079a86b/attachment.htm 



More information about the Hostap mailing list