summaryrefslogtreecommitdiffstats
path: root/src/gprs.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-25gprs: Fix to attachment race conditionDenis Kenzior1-6/+4
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-09Move data connection manager interface constants into common includeMarcel Holtmann1-27/+26
2010-03-26Refactor: Simplify the internal GPRS APIDenis Kenzior1-8/+6
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-26Refactor: Get rid of DCM propertiesDenis Kenzior1-114/+1
Be conformant with the API changes from the previous commit
2010-02-08Fix: Tweak gprs attach logicDenis Kenzior1-5/+5
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-08Fix: Add recheck flag to gprsDenis Kenzior1-1/+14
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-08Fix: Don't use ofono_debug directly in the coreDenis Kenzior1-5/+5
Use DBG macro which is integrated with the new debug framework.
2010-01-07Make primary context ids persistentDenis Kenzior1-0/+11
2010-01-07Use idmap to allocate primary context idsDenis Kenzior1-7/+22
2010-01-07Fix: Fail if no driver or id range setDenis Kenzior1-4/+5
2010-01-07Use the new from_range idmap constructorDenis Kenzior1-22/+5
2010-01-07Refactor: Use idmap to allocate CIDsDenis Kenzior1-29/+18
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-24Use error label instead of err or err_outMarcel Holtmann1-13/+13
2009-12-17Style: Fix a few more occurences of if/elseDenis Kenzior1-1/+2
See Linux coding style document for details
2009-12-09Add context-id allocation / deallocation codeDenis Kenzior1-3/+76
This also disables attempts to use multiple active contexts. The code isn't setup to do this yet.
2009-12-09Refactor: use unsigned ints for cidsDenis Kenzior1-3/+4
2009-12-08Fix: Reset active contexts if gprs is detachedDenis Kenzior1-0/+21
When we lose network registration or are forcefully detached from the network we must reset all active contexts to inactive.
2009-12-08Reset context settings when context is deactivatedDenis Kenzior1-0/+1
2009-12-08Style: Remove extra blank lineDenis Kenzior1-1/+0
2009-12-01Style: Use unsigned int instead of unsignedDenis Kenzior1-1/+2
2009-11-24Get rid of the pointless checks before g_free in GPRS engineMarcel Holtmann1-30/+11
2009-11-24Add support bringing GPRS interfaces up and down as neededMarcel Holtmann1-0/+50
2009-11-23Emit settings signal before active signalMartin Xu1-6/+7
2009-11-18Report AttachInProgress ErrorDenis Kenzior1-1/+1
If one tries to activate a context and we're currently attaching or detaching from GPRS, report the AttachInProgress error
2009-11-18Refactor: Send NotAttached errorDenis Kenzior1-3/+3
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-18Implement CGREG queryDenis Kenzior1-1/+21
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-18Refactor: Move functions up to avoid declarationDenis Kenzior1-72/+75
2009-11-18Fix: Again, uncross the wiresDenis Kenzior1-1/+1
2009-11-18Fix: Uncross the wiresDenis Kenzior1-2/+2
2009-11-17Support Settings property of PrimaryContextDenis Kenzior1-9/+206
2009-11-17Add ofono_gprs_context_get_modemMartin Xu1-0/+5
2009-11-05Fix: Load GPRS settings before finding netregDenis Kenzior1-9/+9
GPRS Settings should be loaded before we try to find netreg atom and potentially try to make the attach/detach decisions.
2009-11-02Add ability to restore GPRS contexts from settingsDenis Kenzior1-5/+113
2009-11-02Save GPRS context settingsDenis Kenzior1-2/+67
2009-11-02Add Basic save/restore code for GPRS settingDenis Kenzior1-3/+76
2009-11-02Limit the number of contexts that we manageDenis Kenzior1-0/+4
2009-11-02Update CreateContext APIDenis Kenzior1-10/+26
2009-11-02Add utility to convert strings to context typeDenis Kenzior1-8/+17
2009-11-02Fix: Default to type internetDenis Kenzior1-1/+1
2009-10-30Add checking for valid APN formatDenis Kenzior1-0/+3
2009-10-29Fix: Don't pass ofono_network_operator structuresDenis Kenzior1-1/+1
2009-10-27Fix: Obscure crash when GPRS is not supportedDenis Kenzior1-0/+5
2009-10-27Fix: Properly unregister context on exitDenis Kenzior1-0/+7
2009-10-26Fix: Use driver_attached instead of attachedDenis Kenzior1-1/+1
2009-10-26Make netreg_update based on CREG, not CGREGDenis Kenzior1-5/+2
2009-10-26Simplify logic in netreg_updateDenis Kenzior1-13/+14
2009-10-26Fix unused variable warningDenis Kenzior1-2/+1
2009-10-26Don't cause an infinite loopDenis Kenzior1-5/+4
2009-10-26Get rid of the AFTER_ROAMING stuffDenis Kenzior1-18/+1