diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-03-13 11:16:13 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-11 09:17:13 +0200 |
commit | 162d96b11680bbdf819a3f8e1c058184abb7b792 (patch) | |
tree | bc983e82899cbe9ab3174fcb6b1bf8e1bceb4da9 /src/mm-modem-helpers-qmi.h | |
parent | be8c8a99bb29d340720715874696bc1fae11d331 (diff) |
test-modem-helpers-qmi: new unit tests to check the 'current-capabilities' logic
Based on Dan's tests with QMI modems.
Diffstat (limited to 'src/mm-modem-helpers-qmi.h')
-rw-r--r-- | src/mm-modem-helpers-qmi.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-qmi.h b/src/mm-modem-helpers-qmi.h index 711d655b..8da0fdd7 100644 --- a/src/mm-modem-helpers-qmi.h +++ b/src/mm-modem-helpers-qmi.h @@ -90,4 +90,20 @@ MMSmsState mm_sms_state_from_qmi_message_tag (QmiWmsMessageTagType tag); QmiWdsAuthentication mm_bearer_allowed_auth_to_qmi_authentication (MMBearerAllowedAuth auth); +/*****************************************************************************/ +/* Utility to gather current capabilities from various sources */ + +typedef struct { + /* NAS System Selection Preference */ + QmiNasRatModePreference nas_ssp_mode_preference_mask; + QmiNasBandPreference nas_ssp_band_preference_mask; + QmiNasLteBandPreference nas_ssp_lte_band_preference_mask; + /* NAS Technology Preference */ + QmiNasRadioTechnologyPreference nas_tp_mask; + /* DMS Capabilities */ + MMModemCapability dms_capabilities; +} MMQmiCapabilitiesContext; + +MMModemCapability mm_modem_capability_from_qmi_capabilities_context (MMQmiCapabilitiesContext *ctx); + #endif /* MM_MODEM_HELPERS_QMI_H */ |