aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-qmi.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-09 18:21:02 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-03-22 08:12:59 +0100
commit3e5251cad703dcb7ec679fae215f4cb01503df4e (patch)
tree1f2263ea5aad926957e89d28aac7cd697f4c4750 /src/mm-modem-helpers-qmi.c
parent5cc98341ad5fbafd3d8f83c65767f604b0e5a5e4 (diff)
broadband-modem-qmi: implement initial CDMA activation state loading
Diffstat (limited to 'src/mm-modem-helpers-qmi.c')
-rw-r--r--src/mm-modem-helpers-qmi.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c
index f4d75992..7de04347 100644
--- a/src/mm-modem-helpers-qmi.c
+++ b/src/mm-modem-helpers-qmi.c
@@ -1059,6 +1059,33 @@ mm_modem_cdma_registration_state_from_qmi_registration_state (QmiNasRegistration
/*****************************************************************************/
+MMModemCdmaActivationState
+mm_modem_cdma_activation_state_from_qmi_activation_state (QmiDmsActivationState state)
+{
+ switch (state) {
+ case QMI_DMS_ACTIVATION_STATE_NOT_ACTIVATED:
+ return MM_MODEM_CDMA_ACTIVATION_STATE_NOT_ACTIVATED;
+ case QMI_DMS_ACTIVATION_STATE_ACTIVATED:
+ return MM_MODEM_CDMA_ACTIVATION_STATE_ACTIVATED;
+ case QMI_DMS_ACTIVATION_STATE_CONNECTING:
+ case QMI_DMS_ACTIVATION_STATE_CONNECTED:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_AUTHENTICATED:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_NAM:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_MDN:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_IMSI:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_PRL:
+ case QMI_DMS_ACTIVATION_STATE_OTASP_SPC:
+ return MM_MODEM_CDMA_ACTIVATION_STATE_ACTIVATING;
+ case QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED:
+ return MM_MODEM_CDMA_ACTIVATION_STATE_PARTIALLY_ACTIVATED;
+
+ default:
+ return MM_MODEM_CDMA_ACTIVATION_STATE_UNKNOWN;
+ }
+}
+
+/*****************************************************************************/
+
QmiWmsStorageType
mm_sms_storage_to_qmi_storage_type (MMSmsStorage storage)
{