]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
wlantest: Verify MFP use in association with MFPR BSS
authorJouni Malinen <j@w1.fi>
Fri, 12 Nov 2010 21:16:38 +0000 (23:16 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 12 Nov 2010 21:16:38 +0000 (23:16 +0200)
wlantest/sta.c

index 5c0ca0db3c8dacc8c15dadbfcb56758c911c117d..f3517e7a147307844d7607219344e750030af462 100644 (file)
@@ -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"