Do not derive SAE PT if the network profile does not include SAE

wpa_s_setup_sae_pt() derived SAE PT even when the configured key
management options did not include SAE if the global sae_pwe
configuration parameter had been changed to enable H2E. This adds
unnecessary extra delay, so derive PT only if SAE is actually enabled in
the network profile.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Hu Wang 2024-06-04 22:21:02 -07:00 committed by Jouni Malinen
parent b7c6aa3ac6
commit 438a27b369

View file

@ -2424,6 +2424,7 @@ void wpa_s_setup_sae_pt(struct wpa_config *conf, struct wpa_ssid *ssid,
password = ssid->passphrase; password = ssid->passphrase;
if (!password || if (!password ||
!wpa_key_mgmt_sae(ssid->key_mgmt) ||
(conf->sae_pwe == SAE_PWE_HUNT_AND_PECK && !ssid->sae_password_id && (conf->sae_pwe == SAE_PWE_HUNT_AND_PECK && !ssid->sae_password_id &&
!wpa_key_mgmt_sae_ext_key(ssid->key_mgmt) && !wpa_key_mgmt_sae_ext_key(ssid->key_mgmt) &&
!force && !force &&