mirror of git://git.sysmocom.de/ofono
1fd419e5b4
ofono_gprs_status_notify is an asynchronous notification that messes with the 'attached' state of the GPRS atom. This method is normally prevented from running while an attach is in progress because the attachment machinery wants to finish up and make it's own determination of attach state. When automatic context activation is relevant, as for LTE networks, the ofono_gprs_cid_activated machinery replaces the usual set_attach machinery for attaching to the network. The cid_activated variant, however, does not guard against simulatenous invocations of ofono_gprs_status_notify. This causes a race whereby status_notify sets the state to 'attached' before the context is fully constructed and set to active. If the connection manager sees the 'attached' state before there are any 'active' contexts, it may decide to activate a context manually which is not the correct behaviour for this type of network. This patch makes the *_cid_activated machinery an 'attaching' state, introducing the same guards that set_attached has to prevent ofono_gprs_status_notify from running concurrently. |
||
---|---|---|
btio | ||
doc | ||
drivers | ||
dundee | ||
examples | ||
gatchat | ||
gdbus | ||
gisi | ||
gril | ||
include | ||
plugins | ||
src | ||
test | ||
tools | ||
unit | ||
.gitignore | ||
.mailmap | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
HACKING | ||
INSTALL | ||
Makefile.am | ||
NEWS | ||
README | ||
TODO | ||
acinclude.m4 | ||
bootstrap | ||
bootstrap-configure | ||
configure.ac | ||
ofono.pc.in |
README
oFono - Open Source Telephony ***************************** Copyright (C) 2008-2011 Intel Corporation. All rights reserved. Compilation and installation ============================ In order to compile telephony stack you need following software packages: - GCC compiler - GLib library - D-Bus library To configure run: ./configure --prefix=/usr --mandir=/usr/share/man \ --sysconfdir=/etc --localstatedir=/var Configure automatically searches for all required components and packages. To compile and install run: make && make install Kernel Dependencies =================== In order to have the PPP stack working in oFono you need to enable CONFIG_TUN (Universal TUN/TAP device driver support) in your kernel .config. Information =========== Mailing list: ofono@ofono.org For additional information about the project visit oFono web site: http://www.ofono.org