diff options
author | Thomas Haller <thaller@redhat.com> | 2022-01-29 23:43:27 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-01-29 23:43:27 +0100 |
commit | 0f5536d60c393923cf03ff6edb5e9a177fff0e8b (patch) | |
tree | 4db94aee578c9fa679f78ea84a3477fd0e0bbd22 | |
parent | 34dd9d1f1cbf84a1f186a5e27ca927eb5de62660 (diff) | |
download | NetworkManager-0f5536d60c393923cf03ff6edb5e9a177fff0e8b.tar.gz |
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.
-rw-r--r-- | src/core/devices/wwan/nm-modem-broadband.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/devices/wwan/nm-modem-broadband.c b/src/core/devices/wwan/nm-modem-broadband.c index c1d8b1ee0d..f5336d3750 100644 --- a/src/core/devices/wwan/nm-modem-broadband.c +++ b/src/core/devices/wwan/nm-modem-broadband.c @@ -20,6 +20,10 @@ #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) \ NM_FLAGS_ANY( \ caps, \ |