platform/upstream/ofono.git
14 years agoUpdate the at call meter driver for new API
Denis Kenzior [Thu, 13 Aug 2009 17:59:26 +0000 (12:59 -0500)]
Update the at call meter driver for new API

14 years agoEvolve the call meter driver API
Denis Kenzior [Thu, 13 Aug 2009 17:58:54 +0000 (12:58 -0500)]
Evolve the call meter driver API

14 years agoUpdate at modem call forwarding driver
Denis Kenzior [Thu, 13 Aug 2009 15:59:51 +0000 (10:59 -0500)]
Update at modem call forwarding driver

14 years agoEvolve the call-forwarding driver
Denis Kenzior [Thu, 13 Aug 2009 15:58:42 +0000 (10:58 -0500)]
Evolve the call-forwarding driver

14 years agoUpdate at modem call-barring driver to the new API
Denis Kenzior [Wed, 12 Aug 2009 21:55:26 +0000 (16:55 -0500)]
Update at modem call-barring driver to the new API

14 years agoEvolve the call-barring driver
Denis Kenzior [Wed, 12 Aug 2009 21:52:20 +0000 (16:52 -0500)]
Evolve the call-barring driver

- Move call barring related functionality out of driver.h into a
  dedicated file, call-barring.h
- Update to use the new atom framework
- Remove over-reliance on the modem structure, call-barring structure
  should now be used instead whenever possible

14 years agoPhonet: basic pipe owner support
Rémi Denis-Courmont [Fri, 7 Aug 2009 12:19:12 +0000 (15:19 +0300)]
Phonet: basic pipe owner support

This will be needed for GPRS support.

14 years agoAdd ISI modem SIM phonebook support
Alexander Kanavin [Thu, 13 Aug 2009 16:54:26 +0000 (19:54 +0300)]
Add ISI modem SIM phonebook support

This patch only provides access to the SIM phonebook. Note that the
interface to the SIM phonebook is quite slow, which may cause timeouts
on phonebooks with a large number of entries using the default D-Bus
timeout value.

14 years agoMove certain parts of driver.h to types.h
Denis Kenzior [Wed, 12 Aug 2009 21:47:31 +0000 (16:47 -0500)]
Move certain parts of driver.h to types.h

14 years agoAdd ofono atom routines
Denis Kenzior [Wed, 12 Aug 2009 19:46:59 +0000 (14:46 -0500)]
Add ofono atom routines

14 years agoMake ss_passwd_register slightly more efficient
Denis Kenzior [Wed, 12 Aug 2009 21:57:01 +0000 (16:57 -0500)]
Make ss_passwd_register slightly more efficient

14 years agoMake ss_control_register slightly more efficient
Denis Kenzior [Wed, 12 Aug 2009 21:56:45 +0000 (16:56 -0500)]
Make ss_control_register slightly more efficient

14 years agoRelease 0.3 0.3
Marcel Holtmann [Thu, 13 Aug 2009 01:00:24 +0000 (18:00 -0700)]
Release 0.3

14 years agoWarn when (potentially) invalid input encountered
Denis Kenzior [Thu, 13 Aug 2009 00:47:22 +0000 (19:47 -0500)]
Warn when (potentially) invalid input encountered

14 years agoAlways output useable FN in VCard
Denis Kenzior [Thu, 13 Aug 2009 00:37:39 +0000 (19:37 -0500)]
Always output useable FN in VCard

If text is NULL or empty, use the number field for the FN VCard entry
instead.

14 years agoFix a segfault in need_merge
Denis Kenzior [Thu, 13 Aug 2009 00:37:29 +0000 (19:37 -0500)]
Fix a segfault in need_merge

14 years agoBail out early if text & number are empty
Denis Kenzior [Thu, 13 Aug 2009 00:35:36 +0000 (19:35 -0500)]
Bail out early if text & number are empty

14 years agoFix comment
Marcel Holtmann [Thu, 13 Aug 2009 00:40:41 +0000 (17:40 -0700)]
Fix comment

14 years agoAdd function for printing warnings
Marcel Holtmann [Thu, 13 Aug 2009 00:33:44 +0000 (17:33 -0700)]
Add function for printing warnings

14 years agoAdd API documentation for voice call interfaces
Marcel Holtmann [Wed, 12 Aug 2009 23:43:34 +0000 (16:43 -0700)]
Add API documentation for voice call interfaces

14 years agoAdd some initial API documents
Marcel Holtmann [Wed, 12 Aug 2009 23:33:45 +0000 (16:33 -0700)]
Add some initial API documents

14 years agoFix compile warning
Denis Kenzior [Sun, 9 Aug 2009 03:38:43 +0000 (22:38 -0500)]
Fix compile warning

14 years agoUse NameHasOwner instead of ListNames for name checking
Johan Hedberg [Sat, 8 Aug 2009 17:21:26 +0000 (20:21 +0300)]
Use NameHasOwner instead of ListNames for name checking

14 years agoQuiet an error if a modem is removed quickly
Denis Kenzior [Sat, 8 Aug 2009 01:11:34 +0000 (20:11 -0500)]
Quiet an error if a modem is removed quickly

14 years agoFix segfault upon modem removal due to g_source
Denis Kenzior [Sat, 8 Aug 2009 01:05:39 +0000 (20:05 -0500)]
Fix segfault upon modem removal due to g_source

Network registration was not removing operator list scan g_source,
which was causing a crash in one of two potential places.

14 years agoRefactor SIM file cache
Denis Kenzior [Sat, 8 Aug 2009 00:50:09 +0000 (19:50 -0500)]
Refactor SIM file cache

14 years agoRe-enable reading of SPN & PNN on phonesim
Denis Kenzior [Sat, 8 Aug 2009 00:47:37 +0000 (19:47 -0500)]
Re-enable reading of SPN & PNN on phonesim

14 years agoMake the sim op queue have a removable gsource
Denis Kenzior [Fri, 7 Aug 2009 22:58:59 +0000 (17:58 -0500)]
Make the sim op queue have a removable gsource

14 years agoDon't use g_timeout_add to retrieve imsi
Denis Kenzior [Fri, 7 Aug 2009 22:47:57 +0000 (17:47 -0500)]
Don't use g_timeout_add to retrieve imsi

14 years agoNo need to use g_timeout_add here
Denis Kenzior [Fri, 7 Aug 2009 22:45:48 +0000 (17:45 -0500)]
No need to use g_timeout_add here

14 years agoNo need to use g_timeout_add here
Denis Kenzior [Fri, 7 Aug 2009 22:40:54 +0000 (17:40 -0500)]
No need to use g_timeout_add here

14 years agoNo need to use g_timeout_add here
Denis Kenzior [Fri, 7 Aug 2009 22:36:26 +0000 (17:36 -0500)]
No need to use g_timeout_add here

14 years agoNo need to use g_timeout_add here
Denis Kenzior [Fri, 7 Aug 2009 22:30:28 +0000 (17:30 -0500)]
No need to use g_timeout_add here

14 years agoNo need to use g_timeout_add
Denis Kenzior [Fri, 7 Aug 2009 21:33:31 +0000 (16:33 -0500)]
No need to use g_timeout_add

Simply calling the function here should be sufficient

14 years agoEnsure g_timeout_add source can be removed safely
Denis Kenzior [Fri, 7 Aug 2009 21:20:59 +0000 (16:20 -0500)]
Ensure g_timeout_add source can be removed safely

14 years agoStore the tx_next g_source so it can be removed
Denis Kenzior [Fri, 7 Aug 2009 21:12:55 +0000 (16:12 -0500)]
Store the tx_next g_source so it can be removed

14 years agoUse g_source instead of flag for mpty list changes
Denis Kenzior [Fri, 7 Aug 2009 21:07:40 +0000 (16:07 -0500)]
Use g_source instead of flag for mpty list changes

14 years agoUse g_source instead of flag for call list changes
Denis Kenzior [Fri, 7 Aug 2009 21:04:41 +0000 (16:04 -0500)]
Use g_source instead of flag for call list changes

14 years agoFix sim ADN type of number handling
Denis Kenzior [Fri, 7 Aug 2009 19:19:55 +0000 (14:19 -0500)]
Fix sim ADN type of number handling

The type of number stored here is not quite the same as SMS number,
and should be parsed differently

14 years agoRefactor setting MSISDN
Denis Kenzior [Fri, 7 Aug 2009 19:18:40 +0000 (14:18 -0500)]
Refactor setting MSISDN

- Empty lists should be supported, as clearing the MSISDN is OK
- Initialization of empty MSISDN record should also be possible
- Overwriting of unused records should be possible
- Simplify resource cleanup

14 years agoKeep new numbers in the main sim data structure
Denis Kenzior [Fri, 7 Aug 2009 16:50:42 +0000 (11:50 -0500)]
Keep new numbers in the main sim data structure

No sense to allocate / free memory for a single pointer

14 years agoMove error label to a more logical place
Denis Kenzior [Fri, 7 Aug 2009 16:35:14 +0000 (11:35 -0500)]
Move error label to a more logical place

14 years agoMove variable declarations to a move logical place
Denis Kenzior [Fri, 7 Aug 2009 16:34:52 +0000 (11:34 -0500)]
Move variable declarations to a move logical place

14 years agoMake SubscriberNumbers writable.
Andrzej Zaborowski [Fri, 7 Aug 2009 09:24:27 +0000 (11:24 +0200)]
Make SubscriberNumbers writable.

This implements writing SubscriberNumbers if the SIM allows this
(optional to the SIM provider).  Because the property is an array
of phone numbers, setting the property needs to write multiple
records on the SIM so it's not atomic and potentially can fail
partially.  In this case we have to report a write error to DBus
client but at the same time file may be changed and we send a
PropertyChanged.

14 years agoMake SIM op queue more robust.
Andrzej Zaborowski [Thu, 6 Aug 2009 20:29:12 +0000 (22:29 +0200)]
Make SIM op queue more robust.

This allows ofono_sim_read and ofono_sim_write callbacks to queue new
read or write operations.  The callback must not be called between
removing the operation from queue and checking queue length.

14 years agoFix blocking service watch initial connect handling
Marcel Holtmann [Fri, 7 Aug 2009 05:10:19 +0000 (22:10 -0700)]
Fix blocking service watch initial connect handling

14 years agoFix style
Denis Kenzior [Thu, 6 Aug 2009 22:33:44 +0000 (17:33 -0500)]
Fix style

14 years agoFix style
Denis Kenzior [Thu, 6 Aug 2009 22:33:00 +0000 (17:33 -0500)]
Fix style

14 years agoAdd whitespace properly
Denis Kenzior [Thu, 6 Aug 2009 22:29:55 +0000 (17:29 -0500)]
Add whitespace properly

14 years agoFix trailing whitespace
Denis Kenzior [Thu, 6 Aug 2009 22:29:11 +0000 (17:29 -0500)]
Fix trailing whitespace

14 years agoNo spaces between variable and ++/--
Denis Kenzior [Thu, 6 Aug 2009 22:26:06 +0000 (17:26 -0500)]
No spaces between variable and ++/--

14 years agoFix trailing whitespace
Denis Kenzior [Thu, 6 Aug 2009 22:24:46 +0000 (17:24 -0500)]
Fix trailing whitespace

14 years agoFix trailing whitespace
Denis Kenzior [Thu, 6 Aug 2009 22:24:23 +0000 (17:24 -0500)]
Fix trailing whitespace

14 years agoBe more lenient for PDU lines
Denis Kenzior [Thu, 6 Aug 2009 22:05:52 +0000 (17:05 -0500)]
Be more lenient for PDU lines

14 years agoRemove unneeded declarations
Denis Kenzior [Thu, 6 Aug 2009 22:05:31 +0000 (17:05 -0500)]
Remove unneeded declarations

14 years agoUpdate AT modem plugin to use GAtChat logging
Denis Kenzior [Thu, 6 Aug 2009 20:50:22 +0000 (15:50 -0500)]
Update AT modem plugin to use GAtChat logging

Enabled if OFONO_AT_DEBUG environment variable is set

14 years agoCleanup the debug support patch
Denis Kenzior [Thu, 6 Aug 2009 20:50:10 +0000 (15:50 -0500)]
Cleanup the debug support patch

14 years agogatchat: add debugging infrastructure
Andres Salomon [Wed, 5 Aug 2009 21:18:34 +0000 (17:18 -0400)]
gatchat: add debugging infrastructure

This patch adds debugging support to GAtChat (specifically of what's going
across the serial line).  Callbacks can be set via g_at_chat_set_debugging,
and that callback is called after any channel reads or writes.

14 years agoMake overflow code a bit better
Denis Kenzior [Thu, 6 Aug 2009 19:23:04 +0000 (14:23 -0500)]
Make overflow code a bit better

14 years agoFixup atmodem.c for gatchat changes
Denis Kenzior [Tue, 4 Aug 2009 23:53:53 +0000 (18:53 -0500)]
Fixup atmodem.c for gatchat changes

14 years agoRefactor GAtChat to accept user-provided parsers
Denis Kenzior [Tue, 4 Aug 2009 23:53:25 +0000 (18:53 -0500)]
Refactor GAtChat to accept user-provided parsers

Intended for really broken modems.  A default 27.007 compliant
parser is provided.

14 years agoFix refcounting in GAtChat
Denis Kenzior [Thu, 6 Aug 2009 15:32:29 +0000 (10:32 -0500)]
Fix refcounting in GAtChat

14 years agoEnlarge the timeout for phonebook import
Yang Gu [Thu, 6 Aug 2009 03:40:49 +0000 (11:40 +0800)]
Enlarge the timeout for phonebook import

14 years agoSquash warning
Denis Kenzior [Thu, 6 Aug 2009 20:39:30 +0000 (15:39 -0500)]
Squash warning

14 years agoSquash warning
Denis Kenzior [Thu, 6 Aug 2009 20:39:04 +0000 (15:39 -0500)]
Squash warning

14 years agoSquash warning
Denis Kenzior [Thu, 6 Aug 2009 20:38:36 +0000 (15:38 -0500)]
Squash warning

14 years agoAttempt to update MBDN based on Enhanced VM IEI
Andrzej Zaborowski [Wed, 5 Aug 2009 07:08:40 +0000 (09:08 +0200)]
Attempt to update MBDN based on Enhanced VM IEI

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