mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 03:28:03 +02:00
libnm: use MODEM_CAPS_3GPP()/MODEM_CAPS_3GPP2() macros in get_setting_type()
This commit is contained in:
parent
8f6423ac06
commit
d501e96857
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue