mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 03:00:13 +01:00
libnm-core: support OWE when determining AP compatibility
This commit is contained in:
parent
cb33a27f96
commit
fc42a74ece
1 changed files with 6 additions and 1 deletions
|
|
@ -206,7 +206,8 @@ nm_setting_wireless_ap_security_compatible (NMSettingWireless *s_wireless,
|
|||
/* WPA[2]-PSK and WPA[2] Enterprise */
|
||||
if ( !strcmp (key_mgmt, "wpa-psk")
|
||||
|| !strcmp (key_mgmt, "wpa-eap")
|
||||
|| !strcmp (key_mgmt, "sae")) {
|
||||
|| !strcmp (key_mgmt, "sae")
|
||||
|| !strcmp (key_mgmt, "owe")) {
|
||||
|
||||
if (!strcmp (key_mgmt, "wpa-psk")) {
|
||||
if ( !(ap_wpa & NM_802_11_AP_SEC_KEY_MGMT_PSK)
|
||||
|
|
@ -220,6 +221,10 @@ nm_setting_wireless_ap_security_compatible (NMSettingWireless *s_wireless,
|
|||
if ( !(ap_wpa & NM_802_11_AP_SEC_KEY_MGMT_SAE)
|
||||
&& !(ap_rsn & NM_802_11_AP_SEC_KEY_MGMT_SAE))
|
||||
return FALSE;
|
||||
} else if (!strcmp (key_mgmt, "owe")) {
|
||||
if ( !(ap_wpa & NM_802_11_AP_SEC_KEY_MGMT_OWE)
|
||||
&& !(ap_rsn & NM_802_11_AP_SEC_KEY_MGMT_OWE))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// FIXME: should handle WPA and RSN separately here to ensure that
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue