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
Denis Kenzior
d11505f751
Fix: Add recheck flag to gprs
...
When a powered is toggled quickly, we ignore the second request. This
flag tells us that we should recheck what the attach status should be
once the current operation finishes
2010-02-08 15:32:04 -06:00
Denis Kenzior
87ca1b0c8f
Fix: Don't use ofono_debug directly in the core
...
Use DBG macro which is integrated with the new debug framework.
2010-02-08 11:54:03 -06:00
Denis Kenzior
20db731484
Make primary context ids persistent
2010-01-07 14:43:21 -06:00
Denis Kenzior
bf209425e5
Use idmap to allocate primary context ids
2010-01-07 14:07:52 -06:00
Denis Kenzior
0ed5c70010
Fix: Fail if no driver or id range set
2010-01-07 13:25:32 -06:00
Denis Kenzior
cdfe6dd342
Use the new from_range idmap constructor
2010-01-07 13:25:10 -06:00
Denis Kenzior
6051d0bdde
Refactor: Use idmap to allocate CIDs
2010-01-07 13:01:12 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Marcel Holtmann
0b359e89db
Use error label instead of err or err_out
2009-12-24 07:09:09 -08:00
Denis Kenzior
955e6a61ee
Style: Fix a few more occurences of if/else
...
See Linux coding style document for details
2009-12-17 21:45:39 -06:00
Denis Kenzior
70e1d47baa
Add context-id allocation / deallocation code
...
This also disables attempts to use multiple active contexts. The code
isn't setup to do this yet.
2009-12-09 21:02:47 -06:00
Denis Kenzior
8495e047e6
Refactor: use unsigned ints for cids
2009-12-09 21:02:47 -06:00
Denis Kenzior
58c8a33adf
Fix: Reset active contexts if gprs is detached
...
When we lose network registration or are forcefully detached from the
network we must reset all active contexts to inactive.
2009-12-08 17:19:40 -06:00
Denis Kenzior
2ac70c7f27
Reset context settings when context is deactivated
2009-12-08 17:19:23 -06:00
Denis Kenzior
a1ea26cd9d
Style: Remove extra blank line
2009-12-08 17:11:35 -06:00
Denis Kenzior
55572b6e69
Style: Use unsigned int instead of unsigned
2009-12-01 12:42:23 -06:00
Marcel Holtmann
231aca4a69
Get rid of the pointless checks before g_free in GPRS engine
2009-11-24 00:27:22 +01:00
Marcel Holtmann
5253d82057
Add support bringing GPRS interfaces up and down as needed
2009-11-24 00:26:09 +01:00
Martin Xu
040d660d41
Emit settings signal before active signal
2009-11-23 09:07:57 +01:00
Denis Kenzior
9777d244ec
Report AttachInProgress Error
...
If one tries to activate a context and we're currently attaching or
detaching from GPRS, report the AttachInProgress error
2009-11-18 13:24:20 -06:00
Denis Kenzior
e1e44e772a
Refactor: Send NotAttached error
...
If one tries to activate the context and we're currently not attached to
GPRS, report a NotAttached error instead of a failure
2009-11-18 13:23:13 -06:00
Denis Kenzior
41050ef7b1
Implement CGREG query
...
Some modems do not properly send CGREG notifications when the context is
attached / detached. We manually query the registration state of GPRS
to make sure that if the modem is indeed attached, the state is
reflected properly
2009-11-18 10:34:23 -06:00
Denis Kenzior
d111fc3cee
Refactor: Move functions up to avoid declaration
2009-11-18 10:34:00 -06:00
Denis Kenzior
ec7f95de7e
Fix: Again, uncross the wires
2009-11-18 10:33:09 -06:00
Denis Kenzior
acb4e127c6
Fix: Uncross the wires
2009-11-18 10:00:04 -06:00
Denis Kenzior
9b4e898702
Support Settings property of PrimaryContext
2009-11-17 18:55:32 -06:00
Martin Xu
26413141be
Add ofono_gprs_context_get_modem
2009-11-17 15:56:31 -06:00
Denis Kenzior
e75fef59f2
Fix: Load GPRS settings before finding netreg
...
GPRS Settings should be loaded before we try to find netreg atom and
potentially try to make the attach/detach decisions.
2009-11-05 10:25:59 -06:00
Denis Kenzior
ac5f67c46d
Add ability to restore GPRS contexts from settings
2009-11-02 16:02:09 -06:00
Denis Kenzior
8d7f5245b4
Save GPRS context settings
2009-11-02 16:02:09 -06:00
Denis Kenzior
1ff069be5a
Add Basic save/restore code for GPRS setting
2009-11-02 16:02:09 -06:00
Denis Kenzior
3c702b4d99
Limit the number of contexts that we manage
2009-11-02 16:02:09 -06:00
Denis Kenzior
708f7481b0
Update CreateContext API
2009-11-02 16:02:09 -06:00
Denis Kenzior
1f73c18257
Add utility to convert strings to context type
2009-11-02 16:02:09 -06:00
Denis Kenzior
bf8e486f02
Fix: Default to type internet
2009-11-02 16:02:09 -06:00
Denis Kenzior
26804de94b
Add checking for valid APN format
2009-10-30 15:54:32 -05:00
Denis Kenzior
fd6d9f9fc7
Fix: Don't pass ofono_network_operator structures
2009-10-29 15:28:26 -05:00
Denis Kenzior
25ef3f8b18
Fix: Obscure crash when GPRS is not supported
2009-10-27 12:39:20 -05:00
Denis Kenzior
30609627bf
Fix: Properly unregister context on exit
2009-10-27 12:39:09 -05:00
Denis Kenzior
fa8eb23d3f
Fix: Use driver_attached instead of attached
2009-10-26 18:30:41 -05:00
Denis Kenzior
e63ea23557
Make netreg_update based on CREG, not CGREG
2009-10-26 17:26:19 -05:00
Denis Kenzior
4f85ee5c97
Simplify logic in netreg_update
2009-10-26 17:25:52 -05:00
Denis Kenzior
078e2bdc2a
Fix unused variable warning
2009-10-26 17:00:35 -05:00
Denis Kenzior
4552b0c26a
Don't cause an infinite loop
2009-10-26 17:00:18 -05:00
Denis Kenzior
ae1192ba99
Get rid of the AFTER_ROAMING stuff
2009-10-26 16:58:24 -05:00
Denis Kenzior
c7a113dbd2
Ignore gprs status when not attached/attaching
2009-10-26 16:57:21 -05:00
Denis Kenzior
d5fe6dce96
Update attached status when gprs status changes
2009-10-26 16:56:52 -05:00