device/wwan: add compat define for MM_MODEM_CAPABILITY_5GNR

MM_MODEM_CAPABILITY_5GNR was added in ModemManager 1.14. Add a define
for compatibility with older versions.
This commit is contained in:
Thomas Haller
2022-01-29 23:43:27 +01:00
parent 34dd9d1f1c
commit 0f5536d60c

View File

@@ -20,6 +20,10 @@
#define NM_MODEM_BROADBAND_MODEM "modem" #define NM_MODEM_BROADBAND_MODEM "modem"
#if !MM_CHECK_VERSION(1, 14, 0)
#define MM_MODEM_CAPABILITY_5GNR ((MMModemCapability) (1 << 6))
#endif
#define MODEM_CAPS_3GPP(caps) \ #define MODEM_CAPS_3GPP(caps) \
NM_FLAGS_ANY( \ NM_FLAGS_ANY( \
caps, \ caps, \