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

Jouni Malinen j
Fri Jul 15 01:53:32 PDT 2011


On Tue, Jun 28, 2011 at 03:16:39AM +0300, Hong Wu wrote:

> 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?

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list