|
@@ -352,14 +352,14 @@ int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
|
|
return -1;
|
|
return -1;
|
|
#endif /* CONFIG_SUITEB192 || CONFIG_FILS */
|
|
#endif /* CONFIG_SUITEB192 || CONFIG_FILS */
|
|
} else if (wpa_key_mgmt_sha256(akmp) || akmp == WPA_KEY_MGMT_OWE) {
|
|
} else if (wpa_key_mgmt_sha256(akmp) || akmp == WPA_KEY_MGMT_OWE) {
|
|
-#ifdef CONFIG_IEEE80211W
|
|
|
|
|
|
+#if defined(CONFIG_IEEE80211W) || defined(CONFIG_SAE)
|
|
wpa_printf(MSG_DEBUG, "WPA: PTK derivation using PRF(SHA256)");
|
|
wpa_printf(MSG_DEBUG, "WPA: PTK derivation using PRF(SHA256)");
|
|
if (sha256_prf(pmk, pmk_len, label, data, sizeof(data),
|
|
if (sha256_prf(pmk, pmk_len, label, data, sizeof(data),
|
|
tmp, ptk_len) < 0)
|
|
tmp, ptk_len) < 0)
|
|
return -1;
|
|
return -1;
|
|
-#else /* CONFIG_IEEE80211W */
|
|
|
|
|
|
+#else /* CONFIG_IEEE80211W or CONFIG_SAE */
|
|
return -1;
|
|
return -1;
|
|
-#endif /* CONFIG_IEEE80211W */
|
|
|
|
|
|
+#endif /* CONFIG_IEEE80211W or CONFIG_SAE */
|
|
#ifdef CONFIG_DPP
|
|
#ifdef CONFIG_DPP
|
|
} else if (akmp == WPA_KEY_MGMT_DPP && pmk_len == 32) {
|
|
} else if (akmp == WPA_KEY_MGMT_DPP && pmk_len == 32) {
|
|
wpa_printf(MSG_DEBUG, "WPA: PTK derivation using PRF(SHA256)");
|
|
wpa_printf(MSG_DEBUG, "WPA: PTK derivation using PRF(SHA256)");
|