aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/sta.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-12 21:16:38 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-12 21:16:38 (GMT)
commit070d6173e23b5fdf1a6ed5bef2431eb26fbad87c (patch)
treed0f06aa3061fbad22d0485591f0df1fe49333f39 /wlantest/sta.c
parent994d6a88c55dc1e38c8b327e50026de4ee82ef92 (diff)
downloadhostap-070d6173e23b5fdf1a6ed5bef2431eb26fbad87c.zip
hostap-070d6173e23b5fdf1a6ed5bef2431eb26fbad87c.tar.gz
hostap-070d6173e23b5fdf1a6ed5bef2431eb26fbad87c.tar.bz2
wlantest: Verify MFP use in association with MFPR BSS
Diffstat (limited to 'wlantest/sta.c')
-rw-r--r--wlantest/sta.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wlantest/sta.c b/wlantest/sta.c
index 5c0ca0d..f3517e7 100644
--- a/wlantest/sta.c
+++ b/wlantest/sta.c
@@ -108,6 +108,12 @@ void sta_update_assoc(struct wlantest_sta *sta, struct ieee802_11_elems *elems)
MAC2STR(sta->addr), data.group_cipher,
MAC2STR(bss->bssid), bss->group_cipher);
}
+ if ((bss->rsn_capab & WPA_CAPABILITY_MFPR) &&
+ !(sta->rsn_capab & WPA_CAPABILITY_MFPC)) {
+ wpa_printf(MSG_INFO, "STA " MACSTR " tries to associate "
+ "without MFP to BSS " MACSTR " that advertises "
+ "MFPR", MAC2STR(sta->addr), MAC2STR(bss->bssid));
+ }
wpa_printf(MSG_INFO, "STA " MACSTR
" proto=%s%s%s"