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