aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-09-05 16:01:14 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-05 16:05:15 (GMT)
commit6c29d95a9062f5c94c4fab3b0b29f4af34a085b0 (patch)
treec8b7d78c2fbad7b6e29c8dd707ad2e7986f0df6b /wlantest/bss.c
parent4675ba1d67a658b27361763287323423d0c5dfda (diff)
downloadhostap-6c29d95a9062f5c94c4fab3b0b29f4af34a085b0.zip
hostap-6c29d95a9062f5c94c4fab3b0b29f4af34a085b0.tar.gz
hostap-6c29d95a9062f5c94c4fab3b0b29f4af34a085b0.tar.bz2
wlantest: Support variable length PMK
This is needed to be able to handle key derivation for FILS authentication. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wlantest/bss.c')
-rw-r--r--wlantest/bss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlantest/bss.c b/wlantest/bss.c
index f021956..03baf94 100644
--- a/wlantest/bss.c
+++ b/wlantest/bss.c
@@ -93,7 +93,7 @@ int bss_add_pmk_from_passphrase(struct wlantest_bss *bss,
if (pmk == NULL)
return -1;
if (pbkdf2_sha1(passphrase, bss->ssid, bss->ssid_len, 4096,
- pmk->pmk, sizeof(pmk->pmk)) < 0) {
+ pmk->pmk, PMK_LEN) < 0) {
os_free(pmk);
return -1;
}
@@ -101,7 +101,7 @@ int bss_add_pmk_from_passphrase(struct wlantest_bss *bss,
wpa_printf(MSG_INFO, "Add possible PMK for BSSID " MACSTR
" based on passphrase '%s'",
MAC2STR(bss->bssid), passphrase);
- wpa_hexdump(MSG_DEBUG, "Possible PMK", pmk->pmk, sizeof(pmk->pmk));
+ wpa_hexdump(MSG_DEBUG, "Possible PMK", pmk->pmk, PMK_LEN);
dl_list_add(&bss->pmk, &pmk->list);
return 0;