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

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