aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r--src/mm-iface-modem.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index c9f5c174..a39fd001 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -5515,6 +5515,22 @@ mm_iface_modem_is_4g_only (MMIfaceModem *self)
FALSE);
}
+gboolean
+mm_iface_modem_is_5g (MMIfaceModem *self)
+{
+ return find_supported_mode (self, MM_MODEM_MODE_5G, NULL);
+}
+
+gboolean
+mm_iface_modem_is_5g_only (MMIfaceModem *self)
+{
+ gboolean only;
+
+ return (find_supported_mode (self, MM_MODEM_MODE_5G, &only) ?
+ only :
+ FALSE);
+}
+
/*****************************************************************************/
MMModemCapability