Blame SOURCES/0004-net-device-wifi-Decode-SAE-AP-security.patch

44c0da
From 0904ae538704409c19c08c88957ff4283d4a152d Mon Sep 17 00:00:00 2001
44c0da
From: Benjamin Berg <bberg@redhat.com>
44c0da
Date: Tue, 2 Feb 2021 17:27:05 +0100
44c0da
Subject: [PATCH 4/8] net-device-wifi: Decode SAE AP security
44c0da
44c0da
Decode this information for the wireless row. Note that we don't really
44c0da
need this, as it would incorrectly select WPA2 which results in the same
44c0da
icon.
44c0da
44c0da
Based on upstream commit da0c45f2ab2b7b78695cfff9d6b7a2b045340ac7
44c0da
---
44c0da
 panels/network/net-device-wifi.c | 7 ++++++-
44c0da
 1 file changed, 6 insertions(+), 1 deletion(-)
44c0da
44c0da
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
44c0da
index 33758e499..da1e4837a 100644
44c0da
--- a/panels/network/net-device-wifi.c
44c0da
+++ b/panels/network/net-device-wifi.c
44c0da
@@ -46,7 +46,8 @@ typedef enum {
44c0da
   NM_AP_SEC_NONE,
44c0da
   NM_AP_SEC_WEP,
44c0da
   NM_AP_SEC_WPA,
44c0da
-  NM_AP_SEC_WPA2
44c0da
+  NM_AP_SEC_WPA2,
44c0da
+  NM_AP_SEC_SAE
44c0da
 } NMAccessPointSecurity;
44c0da
 
44c0da
 static void nm_device_wifi_refresh_ui (NetDeviceWifi *device_wifi);
44c0da
@@ -146,6 +147,10 @@ get_access_point_security (NMAccessPoint *ap)
44c0da
                  wpa_flags != NM_802_11_AP_SEC_NONE &&
44c0da
                  rsn_flags != NM_802_11_AP_SEC_NONE)
44c0da
                 type = NM_AP_SEC_WPA;
44c0da
+#if NM_CHECK_VERSION(1,20,6)
44c0da
+        else if (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_SAE)
44c0da
+                type = NM_AP_SEC_SAE;
44c0da
+#endif
44c0da
         else
44c0da
                 type = NM_AP_SEC_WPA2;
44c0da
 
44c0da
-- 
44c0da
2.34.1
44c0da