Commit Graph

133 Commits

Author SHA1 Message Date
Antti Paila 185bb79b1b gprs: Fix for gprs context conversion 2010-12-02 07:58:17 -06:00
Lucas De Marchi b210838e87 core: 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 13:27:15 -06:00
Rémi Denis-Courmont e7c4442c69 core: Remove stray newlines in messages sent to log 2010-11-26 13:50:15 -06:00
Jeevaka Badrappan 2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Pekka Pessi 32b333059b gprs: NULL-safe ofono_gprs_context_remove()
Check for NULL in one place.
2010-11-08 13:03:16 -06:00
Denis Kenzior bbe6eb6d4e gprs-context: Replace TYPE_INVALID with TYPE_ANY 2010-10-27 12:39:46 -05:00
Marcel Holtmann 99bd7d0399 gprs: Use common function for default name of default Internet context 2010-10-27 18:14:50 +02:00
Pekka Pessi de96428ca2 gprs-context: add IMS connection type 2010-10-27 16:57:57 +02:00
Marcel Holtmann 4e72af9b19 gprs: Add host route to the configured MMS proxy 2010-10-27 16:09:27 +02:00
Marcel Holtmann 534d1ccec6 gprs: Set IP address for GPRS contexts of type MMS 2010-10-27 15:25:25 +02:00
Marcel Holtmann 87cd9f57b3 gprs: Add support for exposing proxy information for MMS context 2010-10-27 15:09:33 +02:00
Marcel Holtmann c409dacbc8 gprs: Add support for selecting GPRS context drivers based on types 2010-10-27 14:43:32 +02:00
Marcel Holtmann 8ff5d6d6a9 gprs: Add flag to track usage of GPRS context drivers 2010-10-27 13:56:12 +02:00
Marcel Holtmann c7a5210be6 gprs: Extract GPRS context assignment into separate function 2010-10-27 11:53:37 +02:00
Marcel Holtmann b3d18d5115 gprs: Add support for setting GPRS context type 2010-10-27 11:34:54 +02:00
Marcel Holtmann 6cb86931e3 gprs: Make GPRS context type a public enum 2010-10-27 11:28:52 +02:00
Marcel Holtmann 0df5a60a0c gprs: Load stored MMS Proxy and MMSC settings 2010-10-27 00:51:51 +02:00
Marcel Holtmann 20f3a3adb2 gprs: Use better default name for context creation 2010-10-26 23:19:54 +02:00
Marcel Holtmann 768d02a881 gprs: Add support for storing MMS Proxy and MMSC settings 2010-10-26 23:14:58 +02:00
Marcel Holtmann 483663eeed gprs: Assign GPRS atom to GPRS context atom
If the GPRS atom is not assigned to the GPRS context atom, then possible
network triggered activation crashes.
2010-10-26 14:03:47 +02:00
Denis Kenzior ee4879d196 gprs: Return busy if ops are potentially colliding 2010-10-25 16:32:49 -05:00
Denis Kenzior 180f765ebe gprs: Implement DeactivateAll() 2010-10-25 16:32:49 -05:00
Denis Kenzior d168c35b99 gprs: Support multiple active contexts 2010-10-25 14:45:12 -05:00
Marcel Holtmann 3342af770a gprs: Handle failure of GPRS context atom drivers
The GRPS context atom drivers can return an error from their probe
callbacks. In that case gc->driver is NULL and will cause a crash
when trying to activate a context. So check that there is actually
a driver attached to that GPRS context.
2010-10-24 17:14:16 +02:00
Jeevaka Badrappan 4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Mika Liljeberg 1e139eb1ce gprs: add Suspended property 2010-09-10 10:51:53 -05:00
Pekka Pessi 4aa442d36f gprs: add debug info 2010-08-26 10:38:14 -05:00
Marcel Holtmann 7838503458 gprs: Default value for RoamingAllowed should be FALSE 2010-08-20 11:22:47 +02:00
Marcel Holtmann 335ec6f3ea gprs: Use "Internet" for default PDP context name 2010-08-19 22:36:18 +02:00
Denis Kenzior 18d8584adb gprs: Automatically add a context if none defined 2010-08-19 15:10:30 -05:00
Denis Kenzior 256e01c8c4 gprs: Add support for GetContexts 2010-08-19 14:20:06 -05:00
Denis Kenzior a9a54c0933 gprs: Tweak context object path naming
And support loading of legacy context names
2010-08-19 14:20:06 -05:00
Denis Kenzior 473e34db66 gprs: Break out writing of gprs context settings 2010-08-19 14:20:06 -05:00
Denis Kenzior 323874790b gprs: Add ContextRemoved signal 2010-08-19 14:20:06 -05:00
Denis Kenzior fb4aa43a5d gprs: Emit the ContextAdded signal 2010-08-19 14:20:06 -05:00
Denis Kenzior d1a2875a7e gprs: minor style fix 2010-08-19 14:20:06 -05:00
Denis Kenzior 62b598f704 gprs: Break out context properties append function 2010-08-19 14:20:06 -05:00
Denis Kenzior 4f57fef81b gprs: Get rid of PrimaryContexts property 2010-08-19 14:20:06 -05:00
Denis Kenzior 8f0796ff4f gprs: Update CreateContext to AddContext 2010-08-19 14:20:05 -05:00
Denis Kenzior b73ebe3c83 gprs: Update GPRS related DBus interface names 2010-08-19 14:20:05 -05:00
Denis Kenzior 06f56000ff gprs: Update Attached when Auto-Attached succeded 2010-08-18 20:56:00 -05:00
Denis Kenzior d6f81ef17a gprs: Fix up some attach/detach logic issues
Parts of it are related to Meego bug 5193, namely that we don't properly
signal the Attached status when powering down.

Another part of the fix is that we automatically detach in case our
conditions are not fulfilled if the modem attaches automatically (e.g.
Auto-Attach is enabled)
2010-08-13 18:17:04 -05:00
Zhenhua Zhang 6556eda51c gprs: Fix release cid in gprs_deactive_for_remove
Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.
2010-08-09 09:07:30 -05:00
Denis Kenzior a3b694672d gprs: Minor style fixes 2010-07-19 13:51:00 -05:00
Denis Kenzior d4cae8dd56 gprs: Add Protocol property with IPv6/IPv4 2010-07-19 13:50:37 -05:00
Denis Kenzior f3e0e466c7 gprs: Fix to attachment race condition
Sometimes we get unsolicited attachment status before our query
finishes.  If the client is fast enough they can attempt to attach
and get the AttachInProgress error
2010-06-25 14:19:08 -05:00
Marcel Holtmann 9a72d2566d Move data connection manager interface constants into common include 2010-06-09 20:38:50 -07:00
Denis Kenzior 7972f844c7 Refactor: Simplify the internal GPRS API
We no longer expose lac/ci/tech attributes obtained from CGREG
(some modems, like ISI, do not even report them for GPRS separately).
Simplify the internal gprs driver api to only report the registration
status (e.g. home, roaming, searching, not registered, etc)
2010-03-26 23:00:28 -05:00
Denis Kenzior 88994bbe81 Refactor: Get rid of DCM properties
Be conformant with the API changes from the previous commit
2010-03-26 23:00:28 -05:00
Denis Kenzior ea771ec186 Fix: Tweak gprs attach logic
We use driver_attached to track whether the driver is attached /
attaching.  Unfortunately we only set it when set_attached succeeds.
Instead we should set it right away when calling set_attached, so we
cover pending attaches as well.
2010-02-08 15:33:17 -06:00