Commit Graph

57 Commits

Author SHA1 Message Date
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
Denis Kenzior 40a2d9034d Add call-forwarding to mbm driver 2010-03-29 15:38:22 -05:00
Denis Kenzior 21dd4f040a Move erinfo notify to atmodem netreg driver 2010-03-28 23:49:57 -05:00
Denis Kenzior d994ed1111 Add mbm vendor 2010-03-26 23:00:28 -05:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 94f71484db Register to MBM ERINFO notification
This is purely for information gathering purposes
2009-12-07 18:36:27 -06:00
Denis Kenzior ecfa61c50f Fix: Convert MBM plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 1ebf59b61b Fix: modem _disable needs to send the CFUN
For MBM driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 6297470cf0 Fix: Handle MBM hardware that fails on EMRDY? 2009-11-05 11:00:57 -06:00
Denis Kenzior a25f11862d Fix: Quiet compiler warning 2009-10-29 14:18:58 -05:00
Denis Kenzior 7ac963a26f Refactor: Make MBM driver actually use EMRDY 2009-10-29 14:18:58 -05:00
Denis Kenzior 8fed5a97fe Fix: Return EINPROGRESS as intended 2009-10-29 14:18:58 -05:00
Marcel Holtmann 0bf1401589 Remove support for call forwarding and barring from MBM plugin 2009-10-25 01:14:26 +09:00
Denis Kenzior 5cfe541582 Add GPRS context setup to MBM plugin 2009-10-23 17:05:56 -05:00
Denis Kenzior c3772c2bb6 Fix: Update Init string & shutdown string for mbm 2009-10-23 17:05:56 -05:00
Marcel Holtmann 0ebadcee45 Enable more atoms in the MBM plugin 2009-10-02 13:22:09 +02:00
Denis Kenzior 79cb80c7eb Update plugins to the new g_at_tty_open API 2009-10-01 17:01:15 -05:00
Denis Kenzior 12e77a3c70 Convert all the modem drivers to the new API 2009-09-17 10:15:34 -05:00
Marcel Holtmann 8acad4d0b4 Add support for SIM atom to MBM driver 2009-09-03 10:07:20 -07:00