Commit Graph

16 Commits

Author SHA1 Message Date
Jonas Bonn 3beeff758d treewide: Remove superfluous use of _GNU_SOURCE
There are a large number of files in the tree that define _GNU_SOURCE
despite not actually using features hidden behind this flag.  This patch
removes all these definitions in one fell swoop...
2018-10-17 10:01:57 -05:00
Denis Kenzior d0ab273615 mbim: Remove useless debug 2018-06-19 12:37:15 -05:00
Bob Ham 1d63b1d35f plugins: Add support for SIM7100E by SIMCom
Add support for the SIM7100E modem.  We add a new "sim7100" plugin
because there's no other AT-based modem that has support for both GPRS
and voice calls.
2018-04-30 11:17:47 -05:00
Denis Kenzior 44acd97dd9 mbim: Keep track of max_sessions
Also set the CID range 0..max sessions.  This forces the default context
into cid 0
2017-11-13 21:24:37 -06:00
Denis Kenzior a4a7e19379 mbim: Instantiate gprs-context atom 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 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 2bb8feab07 mbim: Add sms atom 2017-11-08 21:41:34 -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 b7c768c74a mbim: Set device online and offline properly
At initialization time set the radio off and implement .set_online
to toggle the radio state.
2017-10-09 20:35:51 -05:00
Denis Kenzior 187b0840d6 mbim: Add sim atom to mbim modem driver 2017-10-09 16:37:57 -05:00
Denis Kenzior ab17a278c6 mbim: Instantiate devinfo atom 2017-10-05 11:08:38 -05:00
Denis Kenzior 09eed88553 mbim: Add basic enable/disable 2017-10-05 11:08:38 -05:00
Denis Kenzior e7597bcae2 mbim: Parse MBIM descriptors
This is needed to find out the maximum fragment size that this device
supports.  The minimum length specified in the spec is 64, however 512
bytes is recommended.

We also attempt to parse how many simultaneous commands can be
outstanding at a given time.  In theory MBIM supports multiple
outstanding commands through the use of transaction-id matching, but it
seems some devices only support a single outstanding command at a time.
2017-10-05 11:08:38 -05:00
Denis Kenzior 649d204158 mbim: Add skeleton mbim modem driver 2017-10-05 11:08:38 -05:00