Denis Kenzior
2abfd90edd
mbimmodem: Add gprs-context driver
2017-11-13 21:24:37 -06:00
Denis Kenzior
f43341af2f
mbim: Add IPv4/v6 Element & Address extractors
...
The IP Configuration data structure does not match any of the existing
data structure serialization conventions in the rest of the MBIM
specification. So add IPv4 / v6 specific extractors for IPV4 address
and IPV4 Element structures.
2017-11-13 21:24:37 -06:00
Denis Kenzior
f8d6a0a668
gprs: Add implementation of set_ipv4_prefix_length
2017-11-13 21:24:37 -06:00
Denis Kenzior
2690d1c8dd
mbim: Add mbim context type UUIDs
2017-11-13 21:24:37 -06:00
Denis Kenzior
fcd419e2ea
mbim: Add gprs atom
2017-11-13 21:24:37 -06:00
Denis Kenzior
97e39299d0
gprs: Set Attached if no .read_settings
...
Some protocols (like MBIM) do not properly support default bearer
semantics. Instead they want everything to function like UMTS/GSM where
the context has to be explicitly attached / activated.
2017-11-13 21:24:37 -06:00
Denis Kenzior
2d164c38c4
mbimmodem: Add GPRS atom driver
2017-11-13 21:24:37 -06:00
Denis Kenzior
f7bd6900c3
mbim: Properly write values in little endian format
2017-11-13 21:24:37 -06:00
Denis Kenzior
cc196e6503
mbim: Add support for 64-bit integers
2017-11-13 21:24:37 -06:00
James Prestwood
c4bb058e40
plugins: updated plugins using simauth module
...
The simauth creation API changed to not take the driver structure
2017-11-09 11:56:08 -06:00
James Prestwood
d025f2c8b5
simauth: remove driver code from core simauth atom
2017-11-09 11:55:42 -06:00
James Prestwood
589babc272
simauth: remove driver API definitions from simauth include
2017-11-09 11:50:16 -06:00
Denis Kenzior
f8b4730d4f
mbimmodem: Move available_data_classes_to_tech
...
to util.[ch] so it can be used from other drivers
2017-11-09 11:39:43 -06:00
Denis Kenzior
47b562b91c
mbim: Silence unused variable warning
2017-11-09 11:39:07 -06:00
James Prestwood
065e27fa92
atmodem: removed simauth.c from atmodem
2017-11-09 11:20:39 -06:00
James Prestwood
9a3993add9
make: remove atmodem simauth driver
2017-11-09 11:20:39 -06:00
James Prestwood
1c46f8ee85
atmodem: removed simauth init
2017-11-09 11:20:39 -06:00
Denis Kenzior
ba9f126716
atmodem: Rework at_pin_send_cb
...
Instead of delaying the cpin entry callback until the sim is found to be
'ready', call back into the core right away. The core will wait until
the initialized notification is called from the driver before proceeding
with the rest of the initialization procedure.
The sim state query is now being done in the background and potential
leaking of cbd is now fixed.
2017-11-08 21:41:34 -06:00
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