api: new TDS capability
This commit is contained in:

committed by
Aleksander Morgado

parent
ecb5c3dbef
commit
176b3f53c2
@@ -38,6 +38,7 @@
|
|||||||
* @MM_MODEM_CAPABILITY_LTE: Modem has LTE data capability.
|
* @MM_MODEM_CAPABILITY_LTE: Modem has LTE data capability.
|
||||||
* @MM_MODEM_CAPABILITY_IRIDIUM: Modem has Iridium capabilities.
|
* @MM_MODEM_CAPABILITY_IRIDIUM: Modem has Iridium capabilities.
|
||||||
* @MM_MODEM_CAPABILITY_5GNR: Modem has 5GNR capabilities. Since 1.14.
|
* @MM_MODEM_CAPABILITY_5GNR: Modem has 5GNR capabilities. Since 1.14.
|
||||||
|
* @MM_MODEM_CAPABILITY_TDS: Modem has TDS capabilties. Since 1.20.
|
||||||
* @MM_MODEM_CAPABILITY_ANY: Mask specifying all capabilities.
|
* @MM_MODEM_CAPABILITY_ANY: Mask specifying all capabilities.
|
||||||
*
|
*
|
||||||
* Flags describing one or more of the general access technology families that a
|
* Flags describing one or more of the general access technology families that a
|
||||||
@@ -54,6 +55,7 @@ typedef enum { /*< underscore_name=mm_modem_capability >*/
|
|||||||
/* MM_MODEM_CAPABILITY_LTE_ADVANCED deprecated */
|
/* MM_MODEM_CAPABILITY_LTE_ADVANCED deprecated */
|
||||||
MM_MODEM_CAPABILITY_IRIDIUM = 1 << 5,
|
MM_MODEM_CAPABILITY_IRIDIUM = 1 << 5,
|
||||||
MM_MODEM_CAPABILITY_5GNR = 1 << 6,
|
MM_MODEM_CAPABILITY_5GNR = 1 << 6,
|
||||||
|
MM_MODEM_CAPABILITY_TDS = 1 << 7,
|
||||||
MM_MODEM_CAPABILITY_ANY = 0xFFFFFFFF
|
MM_MODEM_CAPABILITY_ANY = 0xFFFFFFFF
|
||||||
} MMModemCapability;
|
} MMModemCapability;
|
||||||
|
|
||||||
|
@@ -42,6 +42,8 @@ mm_modem_capability_from_qmi_radio_interface (QmiDmsRadioInterface network,
|
|||||||
return MM_MODEM_CAPABILITY_GSM_UMTS;
|
return MM_MODEM_CAPABILITY_GSM_UMTS;
|
||||||
case QMI_DMS_RADIO_INTERFACE_LTE:
|
case QMI_DMS_RADIO_INTERFACE_LTE:
|
||||||
return MM_MODEM_CAPABILITY_LTE;
|
return MM_MODEM_CAPABILITY_LTE;
|
||||||
|
case QMI_DMS_RADIO_INTERFACE_TDS:
|
||||||
|
return MM_MODEM_CAPABILITY_TDS;
|
||||||
case QMI_DMS_RADIO_INTERFACE_5GNR:
|
case QMI_DMS_RADIO_INTERFACE_5GNR:
|
||||||
return MM_MODEM_CAPABILITY_5GNR;
|
return MM_MODEM_CAPABILITY_5GNR;
|
||||||
default:
|
default:
|
||||||
@@ -69,6 +71,7 @@ mm_modem_mode_from_qmi_radio_interface (QmiDmsRadioInterface network,
|
|||||||
return MM_MODEM_MODE_4G;
|
return MM_MODEM_MODE_4G;
|
||||||
case QMI_DMS_RADIO_INTERFACE_5GNR:
|
case QMI_DMS_RADIO_INTERFACE_5GNR:
|
||||||
return MM_MODEM_MODE_5G;
|
return MM_MODEM_MODE_5G;
|
||||||
|
case QMI_DMS_RADIO_INTERFACE_TDS:
|
||||||
default:
|
default:
|
||||||
mm_obj_warn (log_object, "unhandled QMI radio interface '%u'", (guint)network);
|
mm_obj_warn (log_object, "unhandled QMI radio interface '%u'", (guint)network);
|
||||||
return MM_MODEM_MODE_NONE;
|
return MM_MODEM_MODE_NONE;
|
||||||
|
Reference in New Issue
Block a user