mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 04:28:00 +02:00
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:
parent
dcd032055c
commit
29c7debf40
1 changed files with 0 additions and 4 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue