mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 19:00:11 +01:00
tui: wifi: support WPA3-Personal (SAE)
(cherry picked from commit b57f8d93e2)
This commit is contained in:
parent
7686415ad2
commit
900eb63cf3
2 changed files with 11 additions and 0 deletions
|
|
@ -605,6 +605,9 @@ get_security_type (NMEditorWirelessSecurityMethodBinding *binding)
|
|||
|| !strcmp (key_mgmt, "wpa-psk"))
|
||||
return "wpa-personal";
|
||||
|
||||
if (!strcmp (key_mgmt, "sae"))
|
||||
return "wpa3-personal";
|
||||
|
||||
if (!strcmp (key_mgmt, "wpa-eap"))
|
||||
return "wpa-enterprise";
|
||||
|
||||
|
|
@ -709,6 +712,12 @@ wireless_security_target_changed (GObject *object,
|
|||
NM_SETTING_WIRELESS_SECURITY_AUTH_ALG, NULL,
|
||||
NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, NM_WEP_KEY_TYPE_UNKNOWN,
|
||||
NULL);
|
||||
} else if (!strcmp (method, "wpa3-personal")) {
|
||||
g_object_set (binding->s_wsec,
|
||||
NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "sae",
|
||||
NM_SETTING_WIRELESS_SECURITY_AUTH_ALG, NULL,
|
||||
NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, NM_WEP_KEY_TYPE_UNKNOWN,
|
||||
NULL);
|
||||
} else if (!strcmp (method, "wpa-enterprise")) {
|
||||
g_object_set (binding->s_wsec,
|
||||
NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "wpa-eap",
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ static NmtNewtPopupEntry wifi_band[] = {
|
|||
static NmtNewtPopupEntry wifi_security[] = {
|
||||
{ NC_("Wi-Fi security", "None"), "none" },
|
||||
{ N_("WPA & WPA2 Personal"), "wpa-personal" },
|
||||
{ N_("WPA3 Personal"), "wpa3-personal" },
|
||||
{ N_("WPA & WPA2 Enterprise"), "wpa-enterprise" },
|
||||
{ N_("WEP 40/128-bit Key (Hex or ASCII)"), "wep-key" },
|
||||
{ N_("WEP 128-bit Passphrase"), "wep-passphrase" },
|
||||
|
|
@ -275,6 +276,7 @@ nmt_page_wifi_constructed (GObject *object)
|
|||
G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
|
||||
nmt_editor_grid_append (NMT_EDITOR_GRID (subgrid), _("Password"), widget, NULL);
|
||||
nmt_newt_stack_add (stack, "wpa-personal", subgrid);
|
||||
nmt_newt_stack_add (stack, "wpa3-personal", subgrid);
|
||||
|
||||
/* "wpa-enterprise" */
|
||||
// FIXME
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue