platform/upstream/ofono.git
14 years agoImplement committing the EF-MBDN records to SIM
Andrzej Zaborowski [Wed, 5 Aug 2009 07:08:40 +0000 (09:08 +0200)]
Implement committing the EF-MBDN records to SIM

14 years agoAdd utility for building ADN records
Andrzej Zaborowski [Wed, 5 Aug 2009 07:08:40 +0000 (09:08 +0200)]
Add utility for building ADN records

Used to populate MSISDN, MBDN, etc records on the SIM

14 years agoExpose address encode/decode utilities
Andrzej Zaborowski [Wed, 5 Aug 2009 07:08:40 +0000 (09:08 +0200)]
Expose address encode/decode utilities

These can be used elsewhere, in particular for decoding the
enhanced message waiting notification ieis

14 years agoAdd encode_bcd_number utility function
Andrzej Zaborowski [Wed, 5 Aug 2009 07:08:40 +0000 (09:08 +0200)]
Add encode_bcd_number utility function

14 years agoDon't emit signals for unexposed properties
Denis Kenzior [Wed, 5 Aug 2009 17:44:36 +0000 (12:44 -0500)]
Don't emit signals for unexposed properties

Signals shouldn't be emitted, but we should still track the information
so it can be written to the SIM reliably

14 years agoFix record number in at_sim_update_record.
Andrzej Zaborowski [Wed, 5 Aug 2009 09:25:21 +0000 (11:25 +0200)]
Fix record number in at_sim_update_record.

14 years agoDon't hardcode info len to 6
Denis Kenzior [Wed, 5 Aug 2009 17:35:08 +0000 (12:35 -0500)]
Don't hardcode info len to 6

14 years agoMake method async
Denis Kenzior [Wed, 5 Aug 2009 17:33:57 +0000 (12:33 -0500)]
Make method async

14 years agoRemove unused declaration
Denis Kenzior [Wed, 5 Aug 2009 17:33:01 +0000 (12:33 -0500)]
Remove unused declaration

14 years agoUse invalid_args instead of invalid_format
Andrzej Zaborowski [Wed, 5 Aug 2009 05:17:10 +0000 (07:17 +0200)]
Use invalid_args instead of invalid_format

14 years agoRefactor how mwis updates are done
Denis Kenzior [Tue, 4 Aug 2009 19:56:03 +0000 (14:56 -0500)]
Refactor how mwis updates are done

14 years agoName the callback properly
Denis Kenzior [Tue, 4 Aug 2009 19:07:16 +0000 (14:07 -0500)]
Name the callback properly

14 years agoDon't emit SubscriberNumbers multiple times
Denis Kenzior [Tue, 4 Aug 2009 18:59:30 +0000 (13:59 -0500)]
Don't emit SubscriberNumbers multiple times

We would emit the signal even if the record could not be parsed

14 years agoRefactor how MBDN set is done
Denis Kenzior [Tue, 4 Aug 2009 18:44:01 +0000 (13:44 -0500)]
Refactor how MBDN set is done

14 years agoDon't gmalloc something that is max 140 bytes
Denis Kenzior [Tue, 4 Aug 2009 16:04:47 +0000 (11:04 -0500)]
Don't gmalloc something that is max 140 bytes

14 years agoGet rid of message-waiting.h
Denis Kenzior [Tue, 4 Aug 2009 15:56:07 +0000 (10:56 -0500)]
Get rid of message-waiting.h

14 years agoFix minor style issues
Denis Kenzior [Tue, 4 Aug 2009 15:45:15 +0000 (10:45 -0500)]
Fix minor style issues

14 years agoUse invalid_args instead of invalid_format
Denis Kenzior [Tue, 4 Aug 2009 15:25:54 +0000 (10:25 -0500)]
Use invalid_args instead of invalid_format

14 years agoAdd a MessageWaiting interface to track message waiting indications.
Andrzej Zaborowski [Mon, 3 Aug 2009 12:50:14 +0000 (14:50 +0200)]
Add a MessageWaiting interface to track message waiting indications.

The state of the indications is kept in memory and written back to
the SIM after any changes.

14 years agoFix segfault when pnn record doesn't exist
Denis Kenzior [Tue, 4 Aug 2009 15:16:06 +0000 (10:16 -0500)]
Fix segfault when pnn record doesn't exist

14 years agoPut defines near the top
Denis Kenzior [Tue, 4 Aug 2009 15:15:33 +0000 (10:15 -0500)]
Put defines near the top

14 years agoPort Andrew's TFR patch
Denis Kenzior [Tue, 4 Aug 2009 15:15:00 +0000 (10:15 -0500)]
Port Andrew's TFR patch

14 years agoMake sim_op_info_cb caching a bit more readable
Denis Kenzior [Tue, 4 Aug 2009 15:02:50 +0000 (10:02 -0500)]
Make sim_op_info_cb caching a bit more readable

14 years agoMake cache a gboolean
Denis Kenzior [Tue, 4 Aug 2009 14:54:51 +0000 (09:54 -0500)]
Make cache a gboolean

14 years agoMake sim_op_retrieve_cb a bit more readable
Denis Kenzior [Tue, 4 Aug 2009 14:53:11 +0000 (09:53 -0500)]
Make sim_op_retrieve_cb a bit more readable

14 years agoCheck write() return values in sim.c for errors.
Andrzej Zaborowski [Mon, 3 Aug 2009 13:38:21 +0000 (15:38 +0200)]
Check write() return values in sim.c for errors.

14 years agoFix invalid queue use in sim_write_cb
Andrzej Zaborowski [Tue, 4 Aug 2009 03:39:40 +0000 (05:39 +0200)]
Fix invalid queue use in sim_write_cb

Since we pop the queue's head, we can't use sim_op_error

14 years agoFix over-complicated code flow that results in uninitialized variables
Marcel Holtmann [Mon, 3 Aug 2009 18:20:46 +0000 (11:20 -0700)]
Fix over-complicated code flow that results in uninitialized variables

14 years agoMake sure SIM read callbacks die cleanly.
Andrzej Zaborowski [Sat, 1 Aug 2009 12:17:43 +0000 (14:17 +0200)]
Make sure SIM read callbacks die cleanly.

14 years agoMake is_read a gboolean
Denis Kenzior [Mon, 3 Aug 2009 17:41:44 +0000 (12:41 -0500)]
Make is_read a gboolean

14 years agoImplement ofono_sim_write
Andrzej Zaborowski [Sat, 1 Aug 2009 13:48:37 +0000 (15:48 +0200)]
Implement ofono_sim_write

Writes use sim->simop_q queue together with reads.

14 years agoFix configure script on bash 2.0
Rémi Denis-Courmont [Mon, 3 Aug 2009 07:42:51 +0000 (10:42 +0300)]
Fix configure script on bash 2.0

../configure: line 11885: CFLAGS+= -Werror -Wextra: command not found
../configure: line 11886: CFLAGS+= -Wno-unused-parameter: command not found
../configure: line 11887: CFLAGS+= -Wno-missing-field-initializers: command not found
../configure: line 11888: CFLAGS+= -Wdeclaration-after-statement: command not found
../configure: line 11889: CFLAGS+= -Wmissing-declarations: command not found
../configure: line 11890: CFLAGS+= -Wredundant-decls: command not found
../configure: line 11891: CFLAGS+= -Wcast-align: command not found

14 years agoMake distcheck work
Denis Kenzior [Fri, 31 Jul 2009 23:32:44 +0000 (18:32 -0500)]
Make distcheck work

14 years agoadd manpage for ofonod
Andres Salomon [Tue, 28 Jul 2009 01:34:51 +0000 (21:34 -0400)]
add manpage for ofonod

I created this manpage for Debian; feel free to use it.  The license
is the same as oFono's.

14 years agoFix possible memory leak on SIM reading error.
Andrzej Zaborowski [Thu, 30 Jul 2009 08:05:32 +0000 (10:05 +0200)]
Fix possible memory leak on SIM reading error.

This would also stall the SIM op queue if there's a read error for a record
other than the first.  The other solution would be "goto next;" (keep
reading further records).

14 years agoDon't use g_slist_length to check for empty lists.
Andrzej Zaborowski [Thu, 30 Jul 2009 08:05:10 +0000 (10:05 +0200)]
Don't use g_slist_length to check for empty lists.

A glib Anti-pattern according to http://www.burtonini.com/blog

14 years agoClean up in sim.c.
Andrzej Zaborowski [Thu, 30 Jul 2009 08:04:59 +0000 (10:04 +0200)]
Clean up in sim.c.

Remove unused variables and fields.
Move EFadn format parsing to a common function because various files use
this same format.

14 years agoUse STORAGEDIR autoconf voodoo from Bluez.
Andrzej Zaborowski [Mon, 27 Jul 2009 16:36:11 +0000 (18:36 +0200)]
Use STORAGEDIR autoconf voodoo from Bluez.

14 years agoRemove all uses of modem.h
Denis Kenzior [Wed, 29 Jul 2009 21:53:19 +0000 (16:53 -0500)]
Remove all uses of modem.h

14 years agoGet rid of modem.h
Denis Kenzior [Wed, 29 Jul 2009 21:40:30 +0000 (16:40 -0500)]
Get rid of modem.h

14 years agoGet rid of unnecessary function
Denis Kenzior [Wed, 29 Jul 2009 21:32:51 +0000 (16:32 -0500)]
Get rid of unnecessary function

14 years agoMove ofono_modem functions to modem.c
Denis Kenzior [Wed, 29 Jul 2009 21:32:10 +0000 (16:32 -0500)]
Move ofono_modem functions to modem.c

14 years agoMove MODEM_INTERFACE to dbus.h
Denis Kenzior [Wed, 29 Jul 2009 21:09:12 +0000 (16:09 -0500)]
Move MODEM_INTERFACE to dbus.h

14 years agoMove MANAGER_PATH to dbus.h
Denis Kenzior [Wed, 29 Jul 2009 20:46:47 +0000 (15:46 -0500)]
Move MANAGER_PATH to dbus.h

14 years agoMove MANAGER_INTERFACE to dbus.h
Denis Kenzior [Wed, 29 Jul 2009 20:43:58 +0000 (15:43 -0500)]
Move MANAGER_INTERFACE to dbus.h

14 years agoRename ofono_modem_userdata
Denis Kenzior [Wed, 29 Jul 2009 19:33:58 +0000 (14:33 -0500)]
Rename ofono_modem_userdata

14 years agoMake plugins use ofono_modem_get_path
Denis Kenzior [Wed, 29 Jul 2009 19:26:45 +0000 (14:26 -0500)]
Make plugins use ofono_modem_get_path

14 years agoRename modem_add_interface / modem_remove_interface
Denis Kenzior [Wed, 29 Jul 2009 19:16:53 +0000 (14:16 -0500)]
Rename modem_add_interface / modem_remove_interface

Move to ofono_modem_add_interface, ofono_modem_remove_interface
and put in ofono/modem.h

14 years agoRename modem_alloc_callid, modem_release_callid
Denis Kenzior [Wed, 29 Jul 2009 19:05:33 +0000 (14:05 -0500)]
Rename modem_alloc_callid, modem_release_callid

14 years agoMove ofono_modem definition to ofono.h
Denis Kenzior [Wed, 29 Jul 2009 19:03:34 +0000 (14:03 -0500)]
Move ofono_modem definition to ofono.h

14 years agoRename internal ofono history funcs to __ofono
Denis Kenzior [Wed, 29 Jul 2009 17:59:39 +0000 (12:59 -0500)]
Rename internal ofono history funcs to __ofono

14 years agoRemove supports_tech variable
Denis Kenzior [Wed, 29 Jul 2009 16:13:54 +0000 (11:13 -0500)]
Remove supports_tech variable

The proper way to register with a particular network technology
is to use a band selection command (e.g. select 2G only or 3G only,
or hybrid)

The tech selection according to 27.007 is non-binding anyway

14 years agoTweak CREG notification to be more fault tolerant
Denis Kenzior [Wed, 29 Jul 2009 16:10:57 +0000 (11:10 -0500)]
Tweak CREG notification to be more fault tolerant

14 years agoRename dbus-gsm.c to dbus.c
Denis Kenzior [Wed, 29 Jul 2009 16:10:47 +0000 (11:10 -0500)]
Rename dbus-gsm.c to dbus.c

14 years agoGet rid of dbus-gsm.h
Denis Kenzior [Wed, 29 Jul 2009 15:55:00 +0000 (10:55 -0500)]
Get rid of dbus-gsm.h

14 years agoRename dbus_gsm_pending_reply
Denis Kenzior [Wed, 29 Jul 2009 15:40:17 +0000 (10:40 -0500)]
Rename dbus_gsm_pending_reply

14 years agoDon't expose dbus_gsm_append_array_variant
Denis Kenzior [Wed, 29 Jul 2009 15:33:45 +0000 (10:33 -0500)]
Don't expose dbus_gsm_append_array_variant

14 years agoDon't expose dbus_gsm_append_variant
Denis Kenzior [Wed, 29 Jul 2009 15:32:43 +0000 (10:32 -0500)]
Don't expose dbus_gsm_append_variant

14 years agoRename dbus_gsm_dict_append_array
Denis Kenzior [Wed, 29 Jul 2009 15:29:52 +0000 (10:29 -0500)]
Rename dbus_gsm_dict_append_array

14 years agoRename dbus_gsm_dict_append
Denis Kenzior [Wed, 29 Jul 2009 15:26:55 +0000 (10:26 -0500)]
Rename dbus_gsm_dict_append

14 years agoMove & Rename PROPERTIES_ARRAY_SIGNATURE
Denis Kenzior [Wed, 29 Jul 2009 15:26:38 +0000 (10:26 -0500)]
Move & Rename PROPERTIES_ARRAY_SIGNATURE

14 years agoRename dbus_gsm_signal_array_property_changed
Denis Kenzior [Wed, 29 Jul 2009 15:06:42 +0000 (10:06 -0500)]
Rename dbus_gsm_signal_array_property_changed

14 years agoRename dbus_gsm_signal_property_changed
Denis Kenzior [Wed, 29 Jul 2009 15:04:06 +0000 (10:04 -0500)]
Rename dbus_gsm_signal_property_changed

14 years agoFix segfault
Denis Kenzior [Wed, 29 Jul 2009 14:58:52 +0000 (09:58 -0500)]
Fix segfault

14 years agoRename dbus_gsm error functions to __ofono_error
Denis Kenzior [Wed, 29 Jul 2009 00:11:32 +0000 (19:11 -0500)]
Rename dbus_gsm error functions to __ofono_error

14 years agoRemove reconnect timeout define
Denis Kenzior [Tue, 28 Jul 2009 22:42:16 +0000 (17:42 -0500)]
Remove reconnect timeout define

14 years agoGet rid of dbus_gsm_free_string_array
Denis Kenzior [Tue, 28 Jul 2009 22:39:35 +0000 (17:39 -0500)]
Get rid of dbus_gsm_free_string_array

Use g_strfreev instead.

14 years agoRefactor dbus initialization & reconnect
Denis Kenzior [Tue, 28 Jul 2009 21:59:05 +0000 (16:59 -0500)]
Refactor dbus initialization & reconnect

14 years agoMove & Rename dbus_gsm_init & dbus_gsm_exit
Denis Kenzior [Tue, 28 Jul 2009 21:29:08 +0000 (16:29 -0500)]
Move & Rename dbus_gsm_init & dbus_gsm_exit

Rename to __ofono_dbus_init && __ofono_dbus_cleanup for consistency
Move to ofono.h

14 years agoRemove dbus_gsm_set_connection from header
Denis Kenzior [Tue, 28 Jul 2009 20:58:01 +0000 (15:58 -0500)]
Remove dbus_gsm_set_connection from header

Not actually needed outside of dbus-gsm.c

14 years agoMove & Rename dbus_gsm_connection
Denis Kenzior [Tue, 28 Jul 2009 20:56:11 +0000 (15:56 -0500)]
Move & Rename dbus_gsm_connection

Move to ofono/dbus.h ofono_dbus_get_connection

14 years agoAdd new ofono/dbus.h header
Denis Kenzior [Tue, 28 Jul 2009 20:50:26 +0000 (15:50 -0500)]
Add new ofono/dbus.h header

14 years agoExperimental support for modems with no UCS2/UTF8
Denis Kenzior [Tue, 28 Jul 2009 20:26:37 +0000 (15:26 -0500)]
Experimental support for modems with no UCS2/UTF8

Some modems, like the G1 do not support UCS2/UTF8.  However, we can
still attempt to export some phonebook entries which are probably
going to be simple Latin1 characters (e.g. 411, etc)

14 years agoFix tolower undeclared warning
Denis Kenzior [Tue, 28 Jul 2009 20:14:39 +0000 (15:14 -0500)]
Fix tolower undeclared warning

14 years agoHandle phonebook text field with uppercase type
Yang Gu [Mon, 27 Jul 2009 06:06:34 +0000 (14:06 +0800)]
Handle phonebook text field with uppercase type

14 years agoFix phonebook comment to report CSCS
Yang Gu [Mon, 27 Jul 2009 05:56:22 +0000 (13:56 +0800)]
Fix phonebook comment to report CSCS

14 years agoFix phonebook problem when charset is in a list
Yang Gu [Mon, 27 Jul 2009 05:54:36 +0000 (13:54 +0800)]
Fix phonebook problem when charset is in a list

14 years agoAdd support for cyclic files
Denis Kenzior [Mon, 27 Jul 2009 21:56:05 +0000 (16:56 -0500)]
Add support for cyclic files

14 years agoRefactor SIM file access code
Denis Kenzior [Mon, 27 Jul 2009 21:53:03 +0000 (16:53 -0500)]
Refactor SIM file access code

SIM File Access conditions would be reported similarly between various
stacks, so it seems like the core logic of figuring out the access
conditions belongs up in the daemon.

This also fixes various problems, including:
  - access conditions read from bytes 10-12, instead of 9-11.
  - read/update, invalidate/rehabilitate and increase conditions
    read from the wrong bits (0-3 instead of 4-7 and vice versa)

14 years agoKill unused variable warn
Denis Kenzior [Tue, 21 Jul 2009 18:11:43 +0000 (13:11 -0500)]
Kill unused variable warn

14 years agoKill implicit declaration warn
Denis Kenzior [Tue, 21 Jul 2009 18:11:21 +0000 (13:11 -0500)]
Kill implicit declaration warn

14 years agoKill 'Suggest parantheses around truth value' warn
Denis Kenzior [Tue, 21 Jul 2009 18:10:13 +0000 (13:10 -0500)]
Kill 'Suggest parantheses around truth value' warn

14 years agoCache EF-PNN, EF-OPL sim files on disk.
Andrzej Zaborowski [Mon, 20 Jul 2009 16:12:02 +0000 (18:12 +0200)]
Cache EF-PNN, EF-OPL sim files on disk.

This uses plain files in /var/lib/ofono for storing contents of the
operator lists to avoid possibly numerous queries to the SIM on every
startup.  Files are indexed with IMSI.  I'm not 100% sure about the
autoconf magic.

Users need to rerun bootstrap-configure after applying this.

Depends on [PATCH] Return SIM file access conditions from read_file_info.

14 years agoReturn SIM file access conditions from read_file_info.
Andrzej Zaborowski [Mon, 20 Jul 2009 16:11:39 +0000 (18:11 +0200)]
Return SIM file access conditions from read_file_info.

14 years agoUse int for MoreMessagestoSend (mms)
Denis Kenzior [Fri, 24 Jul 2009 23:16:14 +0000 (18:16 -0500)]
Use int for MoreMessagestoSend (mms)

15 years agoFix a crash with unsolicited notifications
Denis Kenzior [Tue, 21 Jul 2009 19:38:29 +0000 (14:38 -0500)]
Fix a crash with unsolicited notifications

When a line comes in from the modem, we check against prefixes
in outstanding commands and unsolicited notifications.  If the
outstanding command has not yet been sent (cmd_bytes_written == 0),
we still check it resulting in access violation.

15 years agoRelease 0.2 0.2
Marcel Holtmann [Sat, 18 Jul 2009 10:09:06 +0000 (12:09 +0200)]
Release 0.2

15 years agoAdd test-simutil binary to ignore list
Marcel Holtmann [Sat, 18 Jul 2009 10:08:46 +0000 (12:08 +0200)]
Add test-simutil binary to ignore list

15 years agoTest EONS handling.
Andrzej Zaborowski [Sat, 18 Jul 2009 01:29:57 +0000 (03:29 +0200)]
Test EONS handling.

15 years agoUse registration status constants consistently.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:45:22 +0000 (01:45 +0200)]
Use registration status constants consistently.

15 years agoDon't dereference before the null check.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:44:54 +0000 (01:44 +0200)]
Don't dereference before the null check.

15 years agoClean-up in sim.c.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:42:54 +0000 (01:42 +0200)]
Clean-up in sim.c.

15 years agoMake PNN / OPL work.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:42:31 +0000 (01:42 +0200)]
Make PNN / OPL work.

15 years agoFix typos in doc/overview.txt
Andres Salomon [Fri, 17 Jul 2009 18:35:35 +0000 (14:35 -0400)]
Fix typos in doc/overview.txt

15 years agoRefactor phonebook code
Denis Kenzior [Thu, 16 Jul 2009 22:17:54 +0000 (17:17 -0500)]
Refactor phonebook code

15 years agoDon't escape phonebooks
Denis Kenzior [Thu, 16 Jul 2009 21:57:19 +0000 (16:57 -0500)]
Don't escape phonebooks

15 years agoFix style issue
Denis Kenzior [Thu, 16 Jul 2009 19:31:45 +0000 (14:31 -0500)]
Fix style issue

15 years agoAdd character set support in phonebook
Yang Gu [Thu, 16 Jul 2009 07:05:33 +0000 (15:05 +0800)]
Add character set support in phonebook

15 years agoAdd experimental support for MT incoming sms store
Denis Kenzior [Thu, 16 Jul 2009 16:42:15 +0000 (11:42 -0500)]
Add experimental support for MT incoming sms store

Some Nokia modems only support "MT" as the incoming sms store.
Presumably the modem has some intelligence to pick the right store
depending on the SMS class.  This means that oFono must now track
what the current store is, and issue a CPMS, CMGR & CMGD when a
CMTI notification arrives.

15 years agoAdd CFUN=1 for the ti_calypso driver
Denis Kenzior [Thu, 16 Jul 2009 16:42:03 +0000 (11:42 -0500)]
Add CFUN=1 for the ti_calypso driver