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:
@@ -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, \
|
||||||
|
Reference in New Issue
Block a user