diff options
author | Thomas Haller <thaller@redhat.com> | 2022-01-28 21:32:47 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-01-29 16:22:30 +0100 |
commit | d501e968579826e0c6e99c46a6ac959925432216 (patch) | |
tree | 06aad4e42e758b3cd7be1117baf9713437eef2db | |
parent | 8f6423ac069a7a29044cd38dfc6b0245bda051e0 (diff) |
libnm: use MODEM_CAPS_3GPP()/MODEM_CAPS_3GPP2() macros in get_setting_type()
-rw-r--r-- | src/libnm-client-impl/nm-device-modem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libnm-client-impl/nm-device-modem.c b/src/libnm-client-impl/nm-device-modem.c index eb8a19d3cf..a1edfb049e 100644 --- a/src/libnm-client-impl/nm-device-modem.c +++ b/src/libnm-client-impl/nm-device-modem.c @@ -208,11 +208,9 @@ get_setting_type(NMDevice *device) NMDeviceModemCapabilities caps; caps = nm_device_modem_get_current_capabilities(NM_DEVICE_MODEM(device)); - if (caps - & (NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS | NM_DEVICE_MODEM_CAPABILITY_LTE - | NM_DEVICE_MODEM_CAPABILITY_5GNR)) + if (MODEM_CAPS_3GPP(caps)) return NM_TYPE_SETTING_GSM; - else if (caps & NM_DEVICE_MODEM_CAPABILITY_CDMA_EVDO) + else if (MODEM_CAPS_3GPP2(caps)) return NM_TYPE_SETTING_CDMA; else return G_TYPE_INVALID; |