From: Jouni Malinen Date: Wed, 13 Mar 2019 14:34:48 +0000 (+0200) Subject: FILS: Do not try to add PMKSA cache entry if caching is disabled X-Git-Tag: hostap_2_8~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aabbdb818d02037c7ccd6b4c23ba46129c9faae7;p=thirdparty%2Fhostap.git FILS: Do not try to add PMKSA cache entry if caching is disabled This gets rid of a confusing error message "FILS: Failed to add PMKSA cache entry based on ERP" for cases where PMKSA caching is disabled in hostapd (disable_pmksa_caching=1). Functionality remains unchanged, i.e., no cache entry was added before this change either. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 2e01530b2..eee468396 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1753,7 +1753,8 @@ prepare_auth_resp_fils(struct hostapd_data *hapd, } sta->fils_erp_pmkid_set = 0; - if (wpa_auth_pmksa_add2( + if (!hapd->conf->disable_pmksa_caching && + wpa_auth_pmksa_add2( hapd->wpa_auth, sta->addr, pmk, pmk_len, sta->fils_erp_pmkid,