From 52bc3542a6e57a34bc262efd6aa4345b72d0e496 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 16 Jun 2022 19:59:01 +0200 Subject: [PATCH] nmcli: distinguish OWE-TM from OWE BSS Distinguish a OWE-TM enabled BSS (which itself is unencrypted) from the OWE BSS actually employing encryption. Signed-off-by: David Bauer (cherry picked from commit 02e35f5b205445435f293eae959b7a4435b7d807) --- src/nmcli/devices.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nmcli/devices.c b/src/nmcli/devices.c index 6fce9de731..be51731f6e 100644 --- a/src/nmcli/devices.c +++ b/src/nmcli/devices.c @@ -1343,9 +1343,10 @@ fill_output_access_point(NMAccessPoint *ap, const APInfo *info) if (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_SAE) { g_string_append(security_str, "WPA3 "); } - if (NM_FLAGS_ANY(rsn_flags, - NM_802_11_AP_SEC_KEY_MGMT_OWE | NM_802_11_AP_SEC_KEY_MGMT_OWE_TM)) { + if (NM_FLAGS_ANY(rsn_flags, NM_802_11_AP_SEC_KEY_MGMT_OWE)) { g_string_append(security_str, "OWE "); + } else if (NM_FLAGS_ANY(rsn_flags, NM_802_11_AP_SEC_KEY_MGMT_OWE_TM)) { + g_string_append(security_str, "OWE-TM "); } if ((wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X) || (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)) {