[network-manager-applet: 1/3] connection-editor: add OWE support



commit b85ed300781ce9f26df9cf8e659d1bc0bc173201
Author: David Bauer <mail david-bauer net>
Date:   Mon Apr 27 19:52:08 2020 +0200

    connection-editor: add OWE support
    
    This adds support for Enhanced Open support as a selectable wireless
    security method.

 src/connection-editor/page-wifi-security.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
---
diff --git a/src/connection-editor/page-wifi-security.c b/src/connection-editor/page-wifi-security.c
index ea6d861a..729ad623 100644
--- a/src/connection-editor/page-wifi-security.c
+++ b/src/connection-editor/page-wifi-security.c
@@ -132,6 +132,11 @@ get_default_type_for_security (NMSettingWirelessSecurity *sec)
        if (!strcmp (key_mgmt, "sae"))
                return NMU_SEC_SAE;
 
+#if NM_CHECK_VERSION(1,24,0)
+       if (!strcmp (key_mgmt, "owe"))
+               return NMU_SEC_OWE;
+#endif
+
        return NMU_SEC_INVALID;
 }
 
@@ -425,6 +430,20 @@ finish_setup (CEPageWifiSecurity *self, gpointer user_data)
                }
        }
 
+#if NM_CHECK_VERSION(1,24,0)
+       if (security_valid (NMU_SEC_OWE, mode)) {
+               gtk_list_store_append (sec_model, &iter);
+               gtk_list_store_set (sec_model, &iter,
+                                   S_NAME_COLUMN, _("Enhanced Open"),
+                                   S_ADHOC_VALID_COLUMN, FALSE,
+                                   S_HOTSPOT_VALID_COLUMN, TRUE,
+                                   -1);
+               if ((active < 0) && (default_type == NMU_SEC_OWE))
+                       active = item;
+               item++;
+       }
+#endif
+
        combo = GTK_COMBO_BOX (gtk_builder_get_object (parent->builder, "wifi_security_combo"));
        gtk_combo_box_set_model (combo, GTK_TREE_MODEL (sec_model));
        gtk_cell_layout_clear (GTK_CELL_LAYOUT (combo));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]