FILS: Fix ifdef for PTK derivation with SHA384-based AKM

sha384_prf() is used both with Suite B and FILS, so add CONFIG_FILS as
another alternative to building in this functionality.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-02-16 21:12:40 +02:00 committed by Jouni Malinen
parent 2e555f9cb0
commit e491389ebc

View file

@ -194,12 +194,12 @@ int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
ptk->tk_len = wpa_cipher_key_len(cipher);
ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len;
#ifdef CONFIG_SUITEB192
#if defined(CONFIG_SUITEB192) || defined(CONFIG_FILS)
if (wpa_key_mgmt_sha384(akmp))
sha384_prf(pmk, pmk_len, label, data, sizeof(data),
tmp, ptk_len);
else
#endif /* CONFIG_SUITEB192 */
#endif /* CONFIG_SUITEB192 || CONFIG_FILS */
#ifdef CONFIG_IEEE80211W
if (wpa_key_mgmt_sha256(akmp))
sha256_prf(pmk, pmk_len, label, data, sizeof(data),