about summary refs log tree commit diff
path: root/src/libnm-core-aux-intern/nm-libnm-core-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnm-core-aux-intern/nm-libnm-core-utils.h')
-rw-r--r--src/libnm-core-aux-intern/nm-libnm-core-utils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libnm-core-aux-intern/nm-libnm-core-utils.h b/src/libnm-core-aux-intern/nm-libnm-core-utils.h
index 0e75982e..ad0bad44 100644
--- a/src/libnm-core-aux-intern/nm-libnm-core-utils.h
+++ b/src/libnm-core-aux-intern/nm-libnm-core-utils.h
@@ -342,4 +342,29 @@ const char *nm_dns_uri_normalize(int addr_family, const char *str, char **out_fr
 gboolean nm_setting_ovs_other_config_check_key(const char *key, GError **error);
 gboolean nm_setting_ovs_other_config_check_val(const char *val, GError **error);
 
+/*****************************************************************************/
+
+const char **nm_connection_get_unreachable_gateways(NMConnection *connection);
+
+char *nm_connection_get_unreachable_gateways_warning(NMConnection *connection, gboolean translate);
+
+/*****************************************************************************/
+
+/* Wi-Fi frequencies range for each band */
+#define _NM_WIFI_FREQ_MIN_2GHZ 2412
+#define _NM_WIFI_FREQ_MAX_2GHZ 2484
+#define _NM_WIFI_FREQ_MIN_5GHZ 4915
+#define _NM_WIFI_FREQ_MAX_5GHZ 5825
+#define _NM_WIFI_FREQ_MIN_6GHZ 5955
+#define _NM_WIFI_FREQ_MAX_6GHZ 7115
+
+#define _NM_WIFI_FREQ_MIN _NM_WIFI_FREQ_MIN_2GHZ
+#define _NM_WIFI_FREQ_MAX _NM_WIFI_FREQ_MAX_6GHZ
+
+/* Max Wi-Fi channel for each band */
+#define _NM_WIFI_CHANNEL_MAX_2GHZ 14
+#define _NM_WIFI_CHANNEL_MAX_5GHZ 177
+#define _NM_WIFI_CHANNEL_MAX_6GHZ 233
+#define _NM_WIFI_CHANNEL_MAX      _NM_WIFI_CHANNEL_MAX_6GHZ
+
 #endif /* __NM_LIBNM_SHARED_UTILS_H__ */