diff options
author | Thomas Haller <thaller@redhat.com> | 2020-01-02 15:09:34 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-01-08 09:47:57 +0100 |
commit | 936bb8716b6b9c925cf40145a1565f5522dc696c (patch) | |
tree | 13f4195478bcf4315a24887caefa1cbf426a4644 | |
parent | 2e72403cb75883a277628d8e87252cc2be0f8285 (diff) | |
download | NetworkManager-936bb8716b6b9c925cf40145a1565f5522dc696c.tar.gz |
libnm: break lines in conditions of nm_utils_security_valid()
-rw-r--r-- | libnm-core/nm-utils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 1f30fd1591..7d6e159b84 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -1183,7 +1183,8 @@ nm_utils_security_valid (NMUtilsSecurityType type, g_assert (have_ap); if (ap_flags & NM_802_11_AP_FLAGS_PRIVACY) return FALSE; - if (ap_wpa || ap_rsn) + if ( ap_wpa + || ap_rsn) return FALSE; return TRUE; case NMU_SEC_LEAP: /* require PRIVACY bit for LEAP? */ @@ -1194,7 +1195,8 @@ nm_utils_security_valid (NMUtilsSecurityType type, g_assert (have_ap); if (!(ap_flags & NM_802_11_AP_FLAGS_PRIVACY)) return FALSE; - if (ap_wpa || ap_rsn) { + if ( ap_wpa + || ap_rsn) { if (!device_supports_ap_ciphers (wifi_caps, ap_wpa, TRUE)) { if (!device_supports_ap_ciphers (wifi_caps, ap_rsn, TRUE)) return FALSE; @@ -1205,7 +1207,8 @@ nm_utils_security_valid (NMUtilsSecurityType type, if (adhoc) return FALSE; g_assert (have_ap); - if (ap_rsn || !(ap_flags & NM_802_11_AP_FLAGS_PRIVACY)) + if ( ap_rsn + || !(ap_flags & NM_802_11_AP_FLAGS_PRIVACY)) return FALSE; /* Some APs broadcast minimal WPA-enabled beacons that must be handled */ if (ap_wpa) { |