Commit Graph

75 Commits

Author SHA1 Message Date
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
Denis Kenzior 0b514affee mbm: Signal sim initialized on EPEV 2017-11-08 21:41:34 -06:00
Denis Kenzior 2dd64cda80 mbm: Add sim-auth 2017-10-26 10:23:47 -05:00
Denis Kenzior 0aeeaefdce mbm: Fix segfault with hot-plugged MD300 modem 2013-10-17 15:25:52 -05:00
Denis Kenzior 1103f8ae08 mbm: Delay init until EMRDY
If we send these commands before the EMRDY notification has been seen,
they will simply return an error.
2013-01-21 10:22:45 -06:00
Denis Kenzior 2bc5871d52 mbm: Fix SIM not inserted detection 2012-11-07 07:59:57 -06:00
Denis Kenzior 8112a025b9 mbm: Fix crash from processing multiple *EMRDY
Sometimes we see the *EMRDY notification before we query, and trigger
initialization procedures twice.
2012-08-16 11:39:22 -05:00
Denis Kenzior cdb3de4d03 mbm: Remove spurious ';' 2012-08-16 11:20:45 -05:00
Guillaume Zajac fd5e7ed37e mbm: Update to new sim_state_query API 2012-04-18 04:08:02 -05:00
Marcel Holtmann c867c9f9bf plugins: Update copyright information 2011-10-10 13:39:54 -07:00
Marcel Holtmann 7f627b4034 mbm: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann 868b4489f9 mbm: Don't bother with NULL checking for SIM state query free 2011-08-03 14:31:56 +02:00
Marcel Holtmann bff43cead1 mbm: Set baud rate to 115200 for TTY speed
The Ericsson F5521gw is a bit picky with its TTY speed. All previous
cards do not need this setting, but this one does. To make things a
bit simpler, just set all Ericsson cards to a baud rate of 115200.
2011-07-24 16:09:45 +02:00
Marcel Holtmann 01b754806d mbm: Use AT&C0 to disable data carrier detect
When the DCD is disabled the modem does not hangup anymore after the
data connection. This only affected the PPP connection used for MMS
context setups, but without the quirk the handling of MMS contexts is
a lot cleaner as well.
2011-07-24 15:27:00 +02:00
Denis Kenzior 01d967c381 mbm: Use at_util's cpin polling implementation 2011-07-22 08:27:32 -05:00
Denis Kenzior 6aa70ebf6b mbm: Use decode_error from atutil 2011-06-27 10:12:19 -05:00
Rafael Ignacio Zurita 9a1d0a788d mbm: add location-reporting atom 2011-02-23 17:19:29 -06:00
Jeevaka Badrappan 6433af838d mbm: add radio-settings support 2011-01-31 10:48:01 +01:00
Jeevaka Badrappan 8c667aadad plugins: remove NULL check 2011-01-29 18:39:37 +01:00
Marcel Holtmann 93895ca934 mbm: Move SMS support into post_sim stage 2011-01-29 10:28:47 +01:00
Tomasz Gregorek 802b3acbd9 mbm: Remove data->reopen_source timer before setting up new one
Check if there is a timer running already and remove it before
creating a new one. This will prevent calling reopen_callback() more
than if mbm_disconnect() is called more than once.
2011-01-14 14:40:47 +01:00
Tomasz Gregorek d104573d54 mbm: Adding timer removal to mbm_remove()
In case the modem is disconnected during enabling process, mbm_disconnect()
will set up data->reopen_source timer. This timer needs to be
removed in mbm_remove() to stop execution of reopen_callback() after
hardware disconnection.
2011-01-14 14:39:37 +01:00
Marcel Holtmann 9c5fdc9065 mbm: Fix check for modem model 2011-01-05 22:28:19 -08:00
Lucas De Marchi 67f78f680d plugins: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 12:55:49 -06:00
Marcel Holtmann 6c52b1ff63 mbm: Fix setting GPRS context type for wrong atom 2010-10-27 11:53:13 +02:00
Marcel Holtmann 0b66264f8b mbm: Set specific GPRS context type for different atoms 2010-10-27 11:37:17 +02:00
Marcel Holtmann 23f2706dd0 mbm: Handle TTY disconnect for PPP based GPRS context
The Ericsson MBM modems also hangup the TTY when disconnecting PPP and
in that case the TTY needs to be re-opened. In addition it seems that
the TTY is actually blocked until the context is fully brought down, so
also a delay is required.
2010-10-27 02:02:41 +02:00
Marcel Holtmann 10ee140c24 mbm: Use the variant specific enum in a cleaner way 2010-10-27 01:18:42 +02:00
Marcel Holtmann 1e0602a9a8 mbm: Use data port for second PPP based GPRS context 2010-10-27 01:17:10 +02:00
Marcel Holtmann be1912fe9c Make debug handling with OFONO_AT_DEBUG a bit more consistent 2010-09-24 14:14:04 +09:00
Pekka Pessi 8a7e919578 mbm: implement Online property 2010-09-09 01:24:34 +02:00
Pekka Pessi bbe4cf9f9d mbm: D5530 gets bogus +GCAP, not +CGAP 2010-08-30 11:28:19 -05:00
Pekka Pessi 72bc1c7780 mbm: add quirks for Dell D5530
Dell D5530 is an OEM version of F3507g. It has an annoying habit of
announcing itself to world with its own name. Another problem is some weird
+CGAP messages at the same time. It also crashes upon processing received
CBS messages.
2010-08-25 12:18:23 -05:00
Pekka Pessi 51a1bae8c7 mbm: fix initial polling for sim
There seems to be no specific error codes returned when SIM is missing.
Poll at least 5 times upon an error and give up after that.
2010-08-23 16:31:36 +02:00
Marcel Holtmann e3372f0b04 mbm: Remove registration and bearer specific notifications 2010-08-20 16:51:24 +02:00
Marcel Holtmann 9cdc303574 mbm: Enable notifications for packet switched bearer changes 2010-08-20 16:24:12 +02:00
Marcel Holtmann 132041004b mbm: Enable CFUN and EREG notifications 2010-08-20 15:45:17 +02:00
Marcel Holtmann 3251e7e234 mbm: Fix naming of MBM driver for GPRS context handling 2010-08-20 14:12:01 +02:00
Marcel Holtmann f1e8114f2a mbm: Use proper MBM quirks 2010-08-20 14:09:55 +02:00
Marcel Holtmann 4e9fc90e8a Use permissive parser for MBM since otherwise STK causes problems 2010-08-10 21:42:00 -04:00
Pekka Pessi 99f6c920f5 mbm: poll SIM status when initializing 2010-07-15 09:18:08 -05:00
Pekka Pessi e8965f5f8c mbm: use CPIN? to check if SIM is missing
AT+CRSM=242 is not supported by all mbm models.
2010-06-29 12:24:51 -05:00
Andrzej Zaborowski 4f72a3a1f7 mbm: Use MBM vendor quirk of the sim driver. 2010-06-18 14:14:53 -05:00
Andrzej Zaborowski 56c8033f9f mbm: Register stk driver post sim. 2010-06-18 14:11:26 -05:00
Marcel Holtmann 74791ca805 Remove all voice related atoms from MBM modem support 2010-06-15 14:16:43 +02:00
Andrzej Zaborowski bf7afc6130 mbm: Check there's a SIM card inserted. 2010-05-12 13:46:17 -05:00
Andrzej Zaborowski 19ddfb302f mbm: Register sim toolkit atom in mbm plugin. 2010-05-12 13:44:53 -05:00
Denis Kenzior 244ea076cc Fix: Remove easy uses of g_at_chat_shutdown 2010-04-28 17:27:33 -05:00
Andrzej Zaborowski ddfe8acf11 Drivers can notify core of SIM insertion / removal
Add ofono_sim_inserted_notify function to notify the core of SIM
insertion / removal.

Make every plugin generate a sim inserted event on start.  For devices
with removable card, the event should be emitted after the
plugin detects such event.  For devices that need to wait for SIM card
initialization, they can emit this event later.
2010-04-15 16:49:40 -05:00
Denis Kenzior 4d44103cce Update mbm to use two ports
The second port might be used for a second active context via ppp
2010-03-31 18:36:21 -05:00