]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/preauth_test.c
OCE: Mandate PMF for WPA2 association with OCE AP
[thirdparty/hostap.git] / wpa_supplicant / preauth_test.c
index 9cb2d92e8f8d94967c6544525efe980c7c16e08a..3f2da34e5bf011a80cf254c5ea59d57183d5c62b 100644 (file)
@@ -35,7 +35,7 @@ struct preauth_test_data {
 };
 
 
-static void _wpa_supplicant_deauthenticate(void *wpa_s, int reason_code)
+static void _wpa_supplicant_deauthenticate(void *wpa_s, u16 reason_code)
 {
        wpa_supplicant_deauthenticate(wpa_s, reason_code);
 }
@@ -144,7 +144,9 @@ static int wpa_supplicant_mlme_setprotection(void *wpa_s, const u8 *addr,
 
 
 static int wpa_supplicant_add_pmkid(void *wpa_s, void *network_ctx,
-                                   const u8 *bssid, const u8 *pmkid)
+                                   const u8 *bssid, const u8 *pmkid,
+                                   const u8 *fils_cache_id,
+                                   const u8 *pmk, size_t pmk_len)
 {
        printf("%s - not implemented\n", __func__);
        return -1;
@@ -152,7 +154,8 @@ static int wpa_supplicant_add_pmkid(void *wpa_s, void *network_ctx,
 
 
 static int wpa_supplicant_remove_pmkid(void *wpa_s, void *network_ctx,
-                                      const u8 *bssid, const u8 *pmkid)
+                                      const u8 *bssid, const u8 *pmkid,
+                                      const u8 *fils_cache_id)
 {
        printf("%s - not implemented\n", __func__);
        return -1;
@@ -345,7 +348,7 @@ int main(int argc, char *argv[])
                ret = -2;
        else {
                ret = pmksa_cache_set_current(wpa_s.wpa, NULL, bssid, NULL, 0,
-                                             NULL) ? 0 : -3;
+                                             NULL, 0) ? 0 : -3;
        }
 
        test_eapol_clean(&wpa_s);