]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Use MFPC field instead of igtk_set to check if BIP is needed
authorJouni Malinen <j@w1.fi>
Fri, 12 Nov 2010 21:01:56 +0000 (23:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 12 Nov 2010 21:01:56 +0000 (23:01 +0200)
wlantest/rx_mgmt.c

index 8147cc15be98f35f018e1ed5baa13f3a37e5c8b1..309db146b589f2a3c49fea0b2608b12255a83ab7 100644 (file)
@@ -605,8 +605,7 @@ static int check_bip(struct wlantest *wt, const u8 *data, size_t len)
        if (len < 24 + 18 || data[len - 18] != WLAN_EID_MMIE ||
            data[len - 17] != 16) {
                /* No MMIE */
-               /* TODO: use MFPC flag in RSN IE instead of IGTK flags */
-               if (bss->igtk_set[4] || bss->igtk_set[5]) {
+               if (bss->rsn_capab & WPA_CAPABILITY_MFPC) {
                        wpa_printf(MSG_INFO, "Robust group-addressed "
                                   "management frame sent without BIP by "
                                   MACSTR, MAC2STR(mgmt->sa));