diff options
author | Hong Wu <Hong.Wu@dspg.com> | 2011-07-16 10:57:17 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-07-16 10:57:17 +0300 |
commit | c284b4614150ed5210fbcf361844b4c7d484121f (patch) | |
tree | a8f66baab06a369a60a1af7e3c2b7e09f62b23d7 /src/ap/wpa_auth_ft.c | |
parent | e1d526293b27f5123777e695750a0d38bdfe936a (diff) | |
download | external_wpa_supplicant_8_ti-c284b4614150ed5210fbcf361844b4c7d484121f.zip external_wpa_supplicant_8_ti-c284b4614150ed5210fbcf361844b4c7d484121f.tar.gz external_wpa_supplicant_8_ti-c284b4614150ed5210fbcf361844b4c7d484121f.tar.bz2 |
FT: Fix the calculation of MIC Control field in FTIE
Reassociation Request/Response frame validation need to count all IEs in
the RIC. In addition, TIE is not protected, so it should not be included
in the count.
Signed-off-by: Hong Wu <hong.wu@dspg.com>
Diffstat (limited to 'src/ap/wpa_auth_ft.c')
-rw-r--r-- | src/ap/wpa_auth_ft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c index 65f5f4c..aac1400 100644 --- 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); if (ftie->mic_control[1] != count) { wpa_printf(MSG_DEBUG, "FT: Unexpected IE count in MIC " "Control: received %u expected %u", |