ofono with local patches/modifications
Go to file
Slava Monich 30c742439d sim: Move atom registration to the end of ofono_sim_register
The state needs to be checked prior to calling __ofono_atom_register
because atom registration calls OFONO_ATOM_WATCH_CONDITION_REGISTERED
callbacks each of which may call ofono_sim_inserted_notify. Should
that happen, by the time __ofono_atom_register returns, ofono_sim
will be in OFONO_SIM_STATE_INSERTED state and sim_initialize will
be called twice if the initial state was OFONO_SIM_STATE_NOT_PRESENT.
If nothing else, that results in memory leaks like this one (because
IMSI will be queried twice, among other things):

==3017== 16 bytes in 1 blocks are definitely lost in loss record 187 of 475
==3017==    at 0x483F380: malloc (vg_replace_malloc.c:296)
==3017==    by 0x4AFB0DF: g_malloc (gmem.c:94)
==3017==    by 0x4B12185: g_strdup (gstrfuncs.c:363)
==3017==    by 0xF79D3: sim_imsi_obtained (sim.c:1535)
==3017==    by 0xF7BB3: sim_imsi_cb (sim.c:1594)
==3017==    by 0x66C23: at_cimi_cb (sim.c:441)
==3017==    by 0xA6B53: at_chat_finish_command (gatchat.c:459)
==3017==    by 0xA6D9F: at_chat_handle_command_response (gatchat.c:521)
==3017==    by 0xA70AF: have_line (gatchat.c:600)
==3017==    by 0xA76DF: new_bytes (gatchat.c:759)
==3017==    by 0xABACF: received_data (gatio.c:122)
==3017==    by 0xAD093: watch_dispatch (gatmux.c:461)
==3017==    by 0xAC5D3: dispatch_sources (gatmux.c:180)
==3017==    by 0xAC98F: received_data (gatmux.c:265)
==3017==    by 0x4AF606F: g_main_dispatch (gmain.c:3154)
==3017==    by 0x4AF606F: g_main_context_dispatch (gmain.c:3769)
==3017==    by 0x4AF631D: g_main_context_iterate.isra.4 (gmain.c:3840)
==3017==    by 0x4AF658F: g_main_loop_run (gmain.c:4034)
==3017==    by 0xBE8AF: main (main.c:261)
2017-10-27 08:56:10 -05:00
btio btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
doc doc: documentation for SimAuth dbus interfaces 2017-10-12 09:49:11 -05:00
drivers atmodem: Query the list of supported <fac>s from the modem 2017-10-23 17:24:02 -05:00
dundee dundee: Fix out-of-order free 2015-05-13 15:44:39 -05:00
examples gprs-provision: Fix crash if no SPN present 2011-12-02 12:53:44 -06:00
gatchat gatchat: Removed unused GAtPPP field 2017-10-26 15:24:36 -05:00
gdbus gdbus: Close private connection if setup fails 2015-04-20 09:04:39 +02:00
gisi gisi: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:12 -07:00
gril gril: added RIL constants for cell info list 2017-09-08 15:06:45 -05:00
include sim-auth: prep simauth/dbus headers 2017-10-11 14:17:03 -05:00
plugins mbm: Add sim-auth 2017-10-26 10:23:47 -05:00
src sim: Move atom registration to the end of ofono_sim_register 2017-10-27 08:56:10 -05:00
test test: Add list-applications 2017-10-26 10:23:47 -05:00
tools tools: Remove unused qmi tool 2017-02-02 11:41:27 -06:00
unit unit: Fix up style issues 2017-10-11 10:29:16 -05:00
.gitignore unit: Add test-mbim 2017-10-05 11:08:38 -05:00
.mailmap mailmap: Fix up Michael's name 2012-05-01 12:40:09 +02:00
AUTHORS AUTHORS: Mention Ankit's contributions 2017-10-09 12:23:52 -05:00
COPYING Initial revision 2009-04-26 20:31:15 +02:00
ChangeLog Release 1.21 2017-10-05 16:28:01 +02:00
HACKING HACKING: Update instructions with email address 2015-12-17 13:13:27 -06:00
INSTALL Initial revision 2009-04-26 20:31:15 +02:00
Makefile.am test: Add list-applications 2017-10-26 10:23:47 -05:00
NEWS Initial revision 2009-04-26 20:31:15 +02:00
README README: add information about mailing list and site 2012-07-02 11:04:31 -05:00
TODO TODO: Add DTMF batch hint task 2015-11-12 13:39:31 -06:00
acinclude.m4 build: Don't report format truncation as warnings 2017-07-11 10:47:31 -07:00
bootstrap bootstrap: autoconf must run before automake 2009-12-10 15:55:49 +01:00
bootstrap-configure build: Reorder default developer build options 2012-12-10 20:45:24 +01:00
configure.ac mbimmodem: Add skeleton driver 2017-10-05 11:08:38 -05:00
ofono.pc.in build: Support for pkg-config 2011-01-31 10:44:56 +01:00

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