mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 04:30:16 +01:00
device/wwan: drop deprecated MM_MODEM_CAPABILITY_LTE_ADVANCED
This is long deprecated, and was apparently never even used/exposed by ModemManager. Drop it.
This commit is contained in:
parent
748feaee89
commit
068f8dc496
1 changed files with 4 additions and 16 deletions
|
|
@ -20,22 +20,10 @@
|
|||
|
||||
#define NM_MODEM_BROADBAND_MODEM "modem"
|
||||
|
||||
static gboolean
|
||||
MODEM_CAPS_3GPP(MMModemCapability caps)
|
||||
{
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
/* MM_MODEM_CAPABILITY_LTE_ADVANCED is marked as deprecated since ModemManager 1.14.0.
|
||||
*
|
||||
* The flag probably was never used, it certainly isn't used since 1.14.0.
|
||||
*
|
||||
* Still, just to be sure, there is no harm in checking it here. Suppress the
|
||||
* warning, it should have no bad effect.
|
||||
*/
|
||||
return NM_FLAGS_ANY(caps,
|
||||
(MM_MODEM_CAPABILITY_GSM_UMTS | MM_MODEM_CAPABILITY_LTE
|
||||
| MM_MODEM_CAPABILITY_LTE_ADVANCED | MM_MODEM_CAPABILITY_5GNR));
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
}
|
||||
#define MODEM_CAPS_3GPP(caps) \
|
||||
NM_FLAGS_ANY( \
|
||||
caps, \
|
||||
(MM_MODEM_CAPABILITY_GSM_UMTS | MM_MODEM_CAPABILITY_LTE | MM_MODEM_CAPABILITY_5GNR))
|
||||
|
||||
#define MODEM_CAPS_3GPP2(caps) NM_FLAGS_ANY((caps), MM_MODEM_CAPABILITY_CDMA_EVDO)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue