supplicant/config: Remove superfluous check to disable PMF

We only set the "ieee80211w" option in the wpa_supplicant config in case
we're using WPA (see the if-block underneath), otherwise the value of
"pmf" is completely ignored. That means the override here (in case WPA
isn't used) isn't getting applied anyway, so just remove it.
This commit is contained in:
Jonas Dreßler 2021-04-23 16:08:04 +02:00 committed by Beniamino Galvani
parent dcd032055c
commit 29c7debf40

View file

@ -954,10 +954,6 @@ nm_supplicant_config_add_setting_wireless_security(NMSupplicantConfig *
}
}
/* Don't try to enable PMF on non-WPA/SAE/OWE networks */
if (!NM_IN_STRSET(key_mgmt, "wpa-eap", "wpa-eap-suite-b-192", "wpa-psk", "sae", "owe"))
pmf = NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE;
/* Check if we actually support PMF */
set_pmf = TRUE;
if (!_get_capability(priv, NM_SUPPL_CAP_TYPE_PMF)) {