aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_ft.c
diff options
context:
space:
mode:
authorHong Wu <Hong.Wu@dspg.com>2011-07-16 07:57:17 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-16 07:57:17 (GMT)
commitc284b4614150ed5210fbcf361844b4c7d484121f (patch)
treea8f66baab06a369a60a1af7e3c2b7e09f62b23d7 /src/ap/wpa_auth_ft.c
parente1d526293b27f5123777e695750a0d38bdfe936a (diff)
downloadhostap-c284b4614150ed5210fbcf361844b4c7d484121f.zip
hostap-c284b4614150ed5210fbcf361844b4c7d484121f.tar.gz
hostap-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.c2
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",