Blame SOURCES/0003-ce-page-details-add-SAE-support.patch

a11c41
From 17ca12acd4e0a924a1acd5107b8569dd66d368af Mon Sep 17 00:00:00 2001
a11c41
From: David Bauer <mail@david-bauer.net>
a11c41
Date: Sat, 21 Dec 2019 17:39:02 +0100
a11c41
Subject: [PATCH 3/8] ce-page-details: add SAE support
a11c41
a11c41
(cherry picked from commit 97f6c8f53c15c7ccb9dd7a65ce1ac02ebc18a724)
a11c41
---
a11c41
 panels/network/connection-editor/ce-page-details.c | 13 +++++++++++--
a11c41
 1 file changed, 11 insertions(+), 2 deletions(-)
a11c41
a11c41
diff --git a/panels/network/connection-editor/ce-page-details.c b/panels/network/connection-editor/ce-page-details.c
a11c41
index c972c0e5b..f0c594dd4 100644
a11c41
--- a/panels/network/connection-editor/ce-page-details.c
a11c41
+++ b/panels/network/connection-editor/ce-page-details.c
a11c41
@@ -60,8 +60,17 @@ get_ap_security_string (NMAccessPoint *ap)
a11c41
                 g_string_append_printf (str, "%s, ", _("WPA"));
a11c41
         }
a11c41
         if (rsn_flags != NM_802_11_AP_SEC_NONE) {
a11c41
-                /* TRANSLATORS: this WPA WiFi security */
a11c41
-                g_string_append_printf (str, "%s, ", _("WPA2"));
a11c41
+#if NM_CHECK_VERSION(1,20,6)
a11c41
+                if (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_SAE) {
a11c41
+                        /* TRANSLATORS: this WPA3 WiFi security */
a11c41
+                        g_string_append_printf (str, "%s, ", _("WPA3"));
a11c41
+                }
a11c41
+		else
a11c41
+#endif
a11c41
+		{
a11c41
+                        /* TRANSLATORS: this WPA WiFi security */
a11c41
+                        g_string_append_printf (str, "%s, ", _("WPA2"));
a11c41
+                }
a11c41
         }
a11c41
         if ((wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X) ||
a11c41
             (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)) {
a11c41
-- 
a11c41
2.34.1
a11c41