aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-qmi.h
AgeCommit message (Collapse)Author
2012-09-06broadband-modem-qmi: load initial SMS parts using QMIAleksander Morgado
2012-09-06broadband-modem-qmi: implement default storage setting using QMIAleksander Morgado
2012-08-31broadband-modem-qmi: fix handling of current and overall modem capabilitiesDan Williams
Current capabilities is the set of *active* radios that can be used right now. Modem capabilities are the set of all radios the modem could use, if some action were performed to enable them if they are not enabled already (firmware reload, changing allowed mode, etc). For QMI devices, the DMS Get Capabilities command represents all radios, and thus "modem capabilities". But to read *current* capabilities, ie active radios, we need to query the NAS System Selection Preference and grab the "mode preference" TLV. Unfortunately that is only available with NAS >= 1.1, which means older Gobi devices (1K and 2K) don't support it. So for older devices, we try to get the Technology Preference (which takes into account user-requested limitations) and then mask that with the DMS Get Capabilities result for a best-effort current capabilities. For example, the Pantech UML290VW reports DMS Get Capabilities of "cdma, evdo, gsm, umts, lte", but a more limited SSP mode preference according to what modes are actually enabled. Gobi 1K devices don't support SSP, and the DMS Get Capabilities reports cdma/evdo or gsm/umts depending on the currently loaded firmware. Previous to this patch, ModemManager reported all modes as available on the UML290, ignoring what modes were actually enabled.
2012-08-31broadband-modem-qmi: use System Selection Preference when availableAleksander Morgado
Get/Set Technology Preference was introduced in NAS 1.0, so should be always available (even if we thought it was introduced in NAS 1.7, that's not true). But the newer System Selection Preference behaves better as it allows more features like 'preferred' modes; so use it when available (NAS >= 1.1).
2012-08-30broadband-modem-qmi: implement current bands loadingAleksander Morgado
Also, sync with libqmi: commit b03ca502f45f75541c2b2ccebf44e712ab925456 Author: Aleksander Morgado <aleksander@lanedo.com> Date: Thu Aug 30 19:17:19 2012 +0200 nas: consolidate `QmiNasActiveBand' names
2012-08-30broadband-modem-qmi: move common enum translators to new -helpers-qmi.[ch] filesAleksander Morgado