Commit Graph

8444 Commits

Author SHA1 Message Date
Denis Kenzior 6a3888b2d4 xmm7xxx: Use sim_initialized_notify 2017-11-08 21:41:34 -06:00
Denis Kenzior b3a3d72825 ifx: Use sim_initialized_notify 2017-11-08 21:41:34 -06:00
Denis Kenzior 3c36211be3 atmodem: Remove XSIM handling from sim driver
This will be covered by ifx/xmm7xxx modem drivers using
sim_initialized_notify
2017-11-08 21:41:34 -06:00
Denis Kenzior 63341a1f09 telit: signal sim initialized 2017-11-08 21:41:34 -06:00
Denis Kenzior 15b2ab8b31 sim: Remove QSS handling
The telit plugin will use sim_initialized_notify instead
2017-11-08 21:41:34 -06:00
Denis Kenzior d9fb0eaa57 ste: signal sim initialized on EPEV 2017-11-08 21:41:34 -06:00
Denis Kenzior 0b514affee mbm: Signal sim initialized on EPEV 2017-11-08 21:41:34 -06:00
Denis Kenzior 7996e2374a atmodem: Remove EPEV handling
This will be moved to ste & mbm modem drivers
2017-11-08 21:41:34 -06:00
Denis Kenzior 8b98126da5 mbim: Set the subscribe list
Some devices don't seem to enable incoming SMS notifications.  So set
the notifications we're interested in at modem startup.
2017-11-08 21:41:34 -06:00
Denis Kenzior 8bf5a3e353 unit: Add Device Subscribe List set build test 2017-11-08 21:41:34 -06:00
Denis Kenzior bd0ba8bf3b mbim: Support variable struct signatures in arrays
DEVICE_SUBSCRIBE_LIST uses an array of structures.  The structure
contains the UUID of the service and then a variable number of CIDs that
are enabled.
2017-11-08 21:41:34 -06:00
Denis Kenzior 2bb8feab07 mbim: Add sms atom 2017-11-08 21:41:34 -06:00
Denis Kenzior 3ed0a1e077 mbimmodem: Add SMS atom 2017-11-08 21:41:34 -06:00
Denis Kenzior d7423bdf90 unit: Add SMS Send parse test 2017-11-08 21:41:34 -06:00
Denis Kenzior 529d522a00 mbim: Support embedded databuffers
SMS_SEND uses an embedded databuffer inside MBIM_SET_SMS_SEND which
wants to use a local offset (local to the databuffer structure) as
opposed to the offset from the start of the static buffer.
2017-11-08 21:41:31 -06:00
Denis Kenzior 5ef333b363 mbim: Fix incorrectly generating arrays 2017-11-08 21:02:22 -06:00
Denis Kenzior 1d7a41205b unit: Add SMS Read response tests 2017-11-08 21:02:22 -06:00
Denis Kenzior 1bf22999e5 unit: Fix fragmenting messages < frag_size 2017-11-08 21:02:22 -06:00
Denis Kenzior bae2843eac mbim: Add additional sanity checking
For zero element arrays we might inadvertently run past the end of the
iov buffer.  Fix this by adding additional checks that n_elem > 0 and
don't call _iter_get_data unless needed.
2017-11-08 21:02:22 -06:00
Denis Kenzior dc8574ba55 mbim: Support appending byte arrays 2017-11-08 21:02:22 -06:00
Denis Kenzior 79ebe4beb9 mbim: Fix iterator advance logic 2017-11-08 21:02:22 -06:00
Denis Kenzior 79f5fc6207 mbim: Turn radio off before disabling 2017-11-08 21:02:22 -06:00
Denis Kenzior b9355ca392 mbim: Add netreg atom 2017-11-08 21:02:22 -06:00
Denis Kenzior 2ec8ed30bf mbimmodem: Add netreg driver 2017-11-08 21:02:22 -06:00
Denis Kenzior 689ebc808f mbim: Add MBIM_DATA_CLASS enum 2017-11-08 21:02:22 -06:00
Denis Kenzior 2ce556cb73 udevng: Save off MBIM modem's VID/PID 2017-11-08 21:02:22 -06:00
Denis Kenzior 9b7d58d85a sim: Remove stale comment 2017-11-08 21:02:22 -06:00
Denis Kenzior 0222e657a0 mbimmodem: Support PIN/PUK operations 2017-11-08 21:02:22 -06:00
Denis Kenzior 54d56d763e sim: Introduce ofono_sim_initialized_notify
This change is likely to break multiple drivers.  One can easily emulate
the current behavior (pre-this commit) by calling
ofono_sim_initialized_notify after ofono_sim_inserted_notify.
2017-11-08 21:02:22 -06:00
Denis Kenzior c5d83c01a8 include: Introduce ofono_sim_initialized_notify 2017-11-08 21:02:22 -06:00
Denis Kenzior ecc6332e28 mbim: Fix comment typo 2017-11-08 21:02:22 -06:00
Denis Kenzior 9315d73f62 mbim: Add support for registering to notifications 2017-11-08 21:02:22 -06:00
Denis Kenzior 57e0b26f22 sim: Compact all booleans into the bitfield 2017-11-08 21:02:22 -06:00
Denis Kenzior ec3a59afb6 sim: Use gcc's bitfield instead of managing flags 2017-11-08 21:02:22 -06:00
Denis Kenzior 286e1b0952 hfpmodem: Make sure to NULL terminate 2017-11-08 21:02:22 -06:00
James Prestwood 8986e0dd28 simauth: use new sim atom functionality for simauth
All the functionality for the simauth driver was moved
into the sim atom. This patch transitions the simauth
atom to using those API's instead of the simauth driver
API's.

With this change it made more sense to store each AID
as its own object structure so the AID and object path
could be re-used rather than generating it on the fly.

Renamed the simauth 'sim' variable to 'sa' to keep it
consistent now that the simauth structure references
the sim atom as 'sim'.
2017-11-08 20:48:25 -06:00
James Prestwood 44fdcbe97c atmodem: implemented logical access driver API
This moves the logical access API from the simauth
driver to the sim atmodem driver.
2017-11-07 10:55:01 -06:00
James Prestwood 2564ac717a sim: logical access API implementation
Implemented wrapper for the sim drivers logical
access API
2017-11-07 10:55:01 -06:00
James Prestwood c77fb101f9 sim: logical access API
Moved logical access API from simauth to sim atom. This removes
the need for a simauth driver completely, as the rest of the
functionality was moved in previous commits.
2017-11-07 10:55:01 -06:00
Denis Kenzior 64a240015d atmodem: Disambiguate simcom/cinterion spic use 2017-11-07 10:01:57 -06:00
Denis Kenzior f778e6780e AUTHORS: Mention Gabriel's contributions 2017-11-07 09:59:47 -06:00
Gabriel Lucas 3a7a4d7ae6 gemalto: add PIN retries support in plugin
In SimManager, the Retries property isn't used for gemalto modems.
The at command AT^SPIC is used to get the remaining retries left
for the current required password type.

This commit enable the use of the driver in the gemalto plugin
2017-11-07 09:57:10 -06:00
Gabriel Lucas 90a89b2529 gemalto: add PIN retries support in driver
In SimManager, the Retries property isn't used for gemalto modems.
The at command AT^SPIC is used to get the remaining retries left
for the current required password type.

This commit adds the implementation in the SIM driver of the retries
queries.
2017-11-07 09:55:35 -06:00
James Prestwood efe4362851 sim: added ImsPrivateIdentity to SimManager
If the ISIM AID is found a new AID based context will be
created and the EFIMPI file will be read from the SIM
which contains the ImsPrivateIdentity.
2017-11-06 17:09:10 -06:00
James Prestwood 8f9c2e1a27 docs: ImsPrivateIdentity property documentation 2017-11-06 16:20:09 -06:00
James Prestwood b754949032 sim: implement create ISIM context
API to create a sim context for the ISIM application, if found.
During AID discovery, if an ISIM AID is found, a new fs object is
initialized for the ISIM which will be used for any future
ISIM context creation.
2017-11-06 16:17:32 -06:00
James Prestwood 9cdce0abcc sim: header definitions for ISIM context API
This will allow an atom to create a SIM context to an ISIM
AID (if available). It is then possible to access EF's on the
ISIM using this SIM context.
2017-11-06 16:13:06 -06:00
James Prestwood f972ba88f1 simfs: read files from specific AID's
The simfs atom could not read EF's that did not exist on the
'default' ADF directory. This implements a new way to read EF's
that exist on a given AID. A new fs object/context can be
initialized for a given AID. Using this fs context with
the existing read file API will read from that AID rather than
the default ADF.
2017-11-06 16:12:19 -06:00
James Prestwood 0d5faa5adf atmodem: implement new driver APIs for AID sessions
Implementation for open/close channel, list applications,
and session based file read.
2017-11-03 18:28:11 -05:00
James Prestwood c3b2ff945b atmodem: helper for appending the file path to a command
Several file read API's were re-using the same code to append
a file path. This code was moved into a helper API.
2017-11-03 17:52:25 -05:00