From 0518d2eb65ed164ce8796ad15a020982c6589055 Mon Sep 17 00:00:00 2001 From: Sarvesh Bodakhe Date: Wed, 26 Apr 2023 18:00:31 +0530 Subject: [PATCH] wpa_supplicant: Fix PMKID SHA-256 related regression Fixed regression caused by commit 38e9c8b4 --- components/wpa_supplicant/src/rsn_supp/pmksa_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wpa_supplicant/src/rsn_supp/pmksa_cache.c b/components/wpa_supplicant/src/rsn_supp/pmksa_cache.c index 136a66d4d6..eedb29fac6 100644 --- a/components/wpa_supplicant/src/rsn_supp/pmksa_cache.c +++ b/components/wpa_supplicant/src/rsn_supp/pmksa_cache.c @@ -129,8 +129,8 @@ pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, else if (wpa_key_mgmt_suite_b(akmp)) rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); else - rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, - wpa_key_mgmt_sha256(akmp)); + rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); + os_get_reltime(&now); entry->expiration = now.sec + dot11RSNAConfigPMKLifetime; entry->reauth_time = now.sec + dot11RSNAConfigPMKLifetime *