tests: Long P2P_LISTEN and offchannel TX
[mech_eap.git] / wlantest / bss.c
index 67af707..f021956 100644 (file)
@@ -217,6 +217,9 @@ void bss_update(struct wlantest *wt, struct wlantest_bss *bss,
                          elems->wpa_ie_len + 2);
        }
 
+       if (elems->mdie)
+               os_memcpy(bss->mdid, elems->mdie, 2);
+
        if (!update)
                return;
 
@@ -275,9 +278,9 @@ void bss_update(struct wlantest *wt, struct wlantest_bss *bss,
 
        wpa_printf(MSG_INFO, "BSS " MACSTR
                   " proto=%s%s%s%s"
-                  "pairwise=%s%s%s%s"
-                  "group=%s%s%s%s%s%s"
-                  "mgmt_group_cipher=%s"
+                  "pairwise=%s%s%s%s%s%s%s"
+                  "group=%s%s%s%s%s%s%s%s%s"
+                  "mgmt_group_cipher=%s%s%s%s%s"
                   "key_mgmt=%s%s%s%s%s%s%s%s%s"
                   "rsn_capab=%s%s%s%s%s",
                   MAC2STR(bss->bssid),
@@ -289,14 +292,29 @@ void bss_update(struct wlantest *wt, struct wlantest_bss *bss,
                   bss->pairwise_cipher & WPA_CIPHER_NONE ? "NONE " : "",
                   bss->pairwise_cipher & WPA_CIPHER_TKIP ? "TKIP " : "",
                   bss->pairwise_cipher & WPA_CIPHER_CCMP ? "CCMP " : "",
+                  bss->pairwise_cipher & WPA_CIPHER_CCMP_256 ? "CCMP-256 " :
+                  "",
+                  bss->pairwise_cipher & WPA_CIPHER_GCMP ? "GCMP " : "",
+                  bss->pairwise_cipher & WPA_CIPHER_GCMP_256 ? "GCMP-256 " :
+                  "",
                   bss->group_cipher == 0 ? "N/A " : "",
                   bss->group_cipher & WPA_CIPHER_NONE ? "NONE " : "",
                   bss->group_cipher & WPA_CIPHER_WEP40 ? "WEP40 " : "",
                   bss->group_cipher & WPA_CIPHER_WEP104 ? "WEP104 " : "",
                   bss->group_cipher & WPA_CIPHER_TKIP ? "TKIP " : "",
                   bss->group_cipher & WPA_CIPHER_CCMP ? "CCMP " : "",
-                  bss->mgmt_group_cipher & WPA_CIPHER_AES_128_CMAC ? "BIP " :
-                  "N/A ",
+                  bss->group_cipher & WPA_CIPHER_CCMP_256 ? "CCMP-256 " : "",
+                  bss->group_cipher & WPA_CIPHER_GCMP ? "GCMP " : "",
+                  bss->group_cipher & WPA_CIPHER_GCMP_256 ? "GCMP-256 " : "",
+                  bss->mgmt_group_cipher == 0 ? "N/A " : "",
+                  bss->mgmt_group_cipher & WPA_CIPHER_AES_128_CMAC ?
+                  "BIP " : "",
+                  bss->mgmt_group_cipher & WPA_CIPHER_BIP_GMAC_128 ?
+                  "BIP-GMAC-128 " : "",
+                  bss->mgmt_group_cipher & WPA_CIPHER_BIP_GMAC_256 ?
+                  "BIP-GMAC-256 " : "",
+                  bss->mgmt_group_cipher & WPA_CIPHER_BIP_CMAC_256 ?
+                  "BIP-CMAC-256 " : "",
                   bss->key_mgmt == 0 ? "N/A " : "",
                   bss->key_mgmt & WPA_KEY_MGMT_IEEE8021X ? "EAP " : "",
                   bss->key_mgmt & WPA_KEY_MGMT_PSK ? "PSK " : "",