platform/upstream/ofono.git
14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:33:09 +0000 (10:33 -0600)]
Style: Various issues

14 years agoStyle: Should be a space after if
Denis Kenzior [Tue, 12 Jan 2010 16:31:34 +0000 (10:31 -0600)]
Style: Should be a space after if

14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:30:42 +0000 (10:30 -0600)]
Style: Various issues

14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:29:16 +0000 (10:29 -0600)]
Style: Various issues

14 years agoStyle: Trailing whitespace & extra lines
Denis Kenzior [Tue, 12 Jan 2010 16:28:37 +0000 (10:28 -0600)]
Style: Trailing whitespace & extra lines

14 years agoFix: Make the CPHS MWIS version actually work
Denis Kenzior [Tue, 12 Jan 2010 23:54:18 +0000 (17:54 -0600)]
Fix: Make the CPHS MWIS version actually work

14 years agoRefactor: Move copy-pasted code into a function
Denis Kenzior [Tue, 12 Jan 2010 23:53:56 +0000 (17:53 -0600)]
Refactor: Move copy-pasted code into a function

14 years agoFix: Refactor error conditions
Denis Kenzior [Tue, 12 Jan 2010 21:57:23 +0000 (15:57 -0600)]
Fix: Refactor error conditions

14 years agoReorder CPHS initializatin order
Denis Kenzior [Tue, 12 Jan 2010 21:55:19 +0000 (15:55 -0600)]
Reorder CPHS initializatin order

Two issues
  - CPHS MWIS file must always be read, the specification isn't clear
    whether it depends on the Mailbox service to be available
  - CPHS MBDN file must be read after we read EFmbdn, otherwise it will
    not be processed properly

14 years agoFix: Create a dedicated callback for syncs
Denis Kenzior [Tue, 12 Jan 2010 21:53:19 +0000 (15:53 -0600)]
Fix: Create a dedicated callback for syncs

When synchronizing CPHS MBDN, create a separate callback that doesn't
try to emit signals, etc since the main work has already been done when
EFmbdn was set successfully.

14 years agoRemove #if 0
Denis Kenzior [Tue, 12 Jan 2010 21:51:28 +0000 (15:51 -0600)]
Remove #if 0

14 years agoFix: Don't recurse infinitely
Denis Kenzior [Tue, 12 Jan 2010 21:45:30 +0000 (15:45 -0600)]
Fix: Don't recurse infinitely

We try to keep the CPHS MBDN elementary file in sync with EFmbdn,
unfortunately we share the same callback, which leads to infinite
recursive writes.

Also cleanup the set_mbdn_request structure if the write fails.

14 years agoRefactor: Rename & Restructure cphs_support
Denis Kenzior [Tue, 12 Jan 2010 17:27:31 +0000 (11:27 -0600)]
Refactor: Rename & Restructure cphs_support

- Rename to cphs_service_table to be more inline with the specification.
- Since the spec allows arbitrary length service tables, use an unsigned
  char * return instead of a short.
- Use bit_field function instead of defining an enum

14 years agoRename: Rename CPHS Phase enums
Denis Kenzior [Tue, 12 Jan 2010 17:23:21 +0000 (11:23 -0600)]
Rename: Rename CPHS Phase enums

Be more consistent with the 3GPP Phase names

14 years agoIf EF-MWIS is not available use the CPHS version.
Andrzej Zaborowski [Thu, 7 Jan 2010 11:39:21 +0000 (12:39 +0100)]
If EF-MWIS is not available use the CPHS version.

14 years agoUse CPHS version of mailbox numbers on SIM if 3GPP version not available.
Andrzej Zaborowski [Thu, 7 Jan 2010 11:39:00 +0000 (12:39 +0100)]
Use CPHS version of mailbox numbers on SIM if 3GPP version not available.

Otherwise just try to keep the CPHS version of the files in sync.

14 years agoRetrieve CPHS phase (if any) from SIM.
Andrzej Zaborowski [Thu, 7 Jan 2010 11:38:47 +0000 (12:38 +0100)]
Retrieve CPHS phase (if any) from SIM.

14 years agoRemove trailing/leading whitespace
Aki Niemi [Mon, 11 Jan 2010 09:08:42 +0000 (11:08 +0200)]
Remove trailing/leading whitespace

14 years agoFix new and renamed files in Makefile.am
Aki Niemi [Fri, 8 Jan 2010 08:59:45 +0000 (10:59 +0200)]
Fix new and renamed files in Makefile.am

14 years agoRefactor devinfo driver
Aki Niemi [Fri, 8 Jan 2010 08:59:17 +0000 (10:59 +0200)]
Refactor devinfo driver

14 years agoAdd support for modem control
Aki Niemi [Fri, 8 Jan 2010 08:59:05 +0000 (10:59 +0200)]
Add support for modem control

This adds support to the PN_MTC server, allowing querying and control
of the modem power state.

14 years agoRefactor netreg driver
Aki Niemi [Fri, 8 Jan 2010 08:58:22 +0000 (10:58 +0200)]
Refactor netreg driver

14 years agoRefactor voicecall driver
Aki Niemi [Fri, 8 Jan 2010 08:58:08 +0000 (10:58 +0200)]
Refactor voicecall driver

14 years agoRefactor phonebook driver
Aki Niemi [Fri, 8 Jan 2010 08:57:59 +0000 (10:57 +0200)]
Refactor phonebook driver

14 years agoUser new debug facility
Aki Niemi [Fri, 8 Jan 2010 08:57:39 +0000 (10:57 +0200)]
User new debug facility

14 years agoInclude renamed files
Aki Niemi [Fri, 8 Jan 2010 08:57:01 +0000 (10:57 +0200)]
Include renamed files

14 years agoRemove contact from boilerplate
Aki Niemi [Fri, 8 Jan 2010 08:55:36 +0000 (10:55 +0200)]
Remove contact from boilerplate

14 years agoAdd debug implementation
Aki Niemi [Fri, 8 Jan 2010 08:54:43 +0000 (10:54 +0200)]
Add debug implementation

Alsoo remove call specific debugs.

14 years agoSplit ISI codepoints to separate files
Aki Niemi [Fri, 8 Jan 2010 08:53:42 +0000 (10:53 +0200)]
Split ISI codepoints to separate files

Also, adding infrastructure for debugging ISI messages, with APIs for
turning most common fields into human readable string format.

14 years agoSplit isi.h into isimodem.h and isiutil.h
Aki Niemi [Fri, 8 Jan 2010 08:48:32 +0000 (10:48 +0200)]
Split isi.h into isimodem.h and isiutil.h

14 years agoFix regression when removing watches
Luiz Augusto Von Dentz [Fri, 8 Jan 2010 10:17:19 +0000 (12:17 +0200)]
Fix regression when removing watches

filter_data_find return the first data registered in this case so there is
no guarantee that it return the same data as passed to
filter_data_remove_callback which is the one that should be removed.

The fix is to simple cache the connection removing the correct data before
checking if there is any filter left.

14 years agoMake primary context ids persistent
Denis Kenzior [Thu, 7 Jan 2010 20:43:21 +0000 (14:43 -0600)]
Make primary context ids persistent

14 years agoFix: Be paranoid and check that last is in range
Denis Kenzior [Thu, 7 Jan 2010 20:42:46 +0000 (14:42 -0600)]
Fix: Be paranoid and check that last is in range

14 years agoAdd idmap_take utility
Denis Kenzior [Thu, 7 Jan 2010 20:42:29 +0000 (14:42 -0600)]
Add idmap_take utility

14 years agoFix: Update unit test to the new return semantics
Denis Kenzior [Thu, 7 Jan 2010 20:41:18 +0000 (14:41 -0600)]
Fix: Update unit test to the new return semantics

14 years agoUse idmap to allocate primary context ids
Denis Kenzior [Thu, 7 Jan 2010 20:07:52 +0000 (14:07 -0600)]
Use idmap to allocate primary context ids

14 years agoChange the semantics to return id > max on failure
Denis Kenzior [Thu, 7 Jan 2010 20:06:45 +0000 (14:06 -0600)]
Change the semantics to return id > max on failure

14 years agoFix: Fail if no driver or id range set
Denis Kenzior [Thu, 7 Jan 2010 19:25:32 +0000 (13:25 -0600)]
Fix: Fail if no driver or id range set

14 years agoUse the new from_range idmap constructor
Denis Kenzior [Thu, 7 Jan 2010 19:25:10 +0000 (13:25 -0600)]
Use the new from_range idmap constructor

14 years agoAdd idmap_from_range constructor
Denis Kenzior [Thu, 7 Jan 2010 19:20:48 +0000 (13:20 -0600)]
Add idmap_from_range constructor

14 years agoRefactor: Use idmap to allocate CIDs
Denis Kenzior [Thu, 7 Jan 2010 19:01:12 +0000 (13:01 -0600)]
Refactor: Use idmap to allocate CIDs

14 years agoUpdate gitignore
Denis Kenzior [Thu, 7 Jan 2010 19:00:55 +0000 (13:00 -0600)]
Update gitignore

14 years agoAdd unit test for idmap utilities
Denis Kenzior [Thu, 7 Jan 2010 19:00:41 +0000 (13:00 -0600)]
Add unit test for idmap utilities

14 years agoAdd initial implementation of idmap utilities
Denis Kenzior [Thu, 7 Jan 2010 18:59:51 +0000 (12:59 -0600)]
Add initial implementation of idmap utilities

14 years agoUse short serial number for udev detected devices
Marcel Holtmann [Wed, 6 Jan 2010 22:22:40 +0000 (14:22 -0800)]
Use short serial number for udev detected devices

14 years agoPort udev (temporarily) to the new framework
Denis Kenzior [Wed, 6 Jan 2010 21:51:01 +0000 (15:51 -0600)]
Port udev (temporarily) to the new framework

14 years agoPort modemconf to the new framework
Denis Kenzior [Wed, 6 Jan 2010 21:50:53 +0000 (15:50 -0600)]
Port modemconf to the new framework

14 years agoPort isimodem to the new framework
Denis Kenzior [Wed, 6 Jan 2010 21:50:41 +0000 (15:50 -0600)]
Port isimodem to the new framework

14 years agoRefactor: Allow persisent modem names
Denis Kenzior [Wed, 6 Jan 2010 21:50:25 +0000 (15:50 -0600)]
Refactor: Allow persisent modem names

14 years agoSet phase to unknown until we probe it
Denis Kenzior [Wed, 6 Jan 2010 20:17:27 +0000 (14:17 -0600)]
Set phase to unknown until we probe it

14 years agoRefactor: Preserve Phase obtained from the SIM
Denis Kenzior [Wed, 6 Jan 2010 19:19:47 +0000 (13:19 -0600)]
Refactor: Preserve Phase obtained from the SIM

14 years agoIndex SIM cache by phase also.
Andrzej Zaborowski [Sat, 19 Dec 2009 01:49:21 +0000 (02:49 +0100)]
Index SIM cache by phase also.

14 years agoCleanup of D-Bus mainloop integration
Marcel Holtmann [Sun, 3 Jan 2010 05:42:10 +0000 (21:42 -0800)]
Cleanup of D-Bus mainloop integration

14 years agoUpdate copyright information of D-Bus helper library
Marcel Holtmann [Sat, 2 Jan 2010 01:04:13 +0000 (17:04 -0800)]
Update copyright information of D-Bus helper library

14 years agoUpdate copyright information
Marcel Holtmann [Sat, 2 Jan 2010 01:00:10 +0000 (17:00 -0800)]
Update copyright information

14 years agoAdd netmask to HSO GPRS context driver
Martin Xu [Wed, 30 Dec 2009 08:41:08 +0000 (16:41 +0800)]
Add netmask to HSO GPRS context driver

14 years agoFix undefined symbols
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 12:10:15 +0000 (14:10 +0200)]
Fix undefined symbols

14 years agoPort gdbus to use g_dbus_add_signal_watch
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 09:16:23 +0000 (11:16 +0200)]
Port gdbus to use g_dbus_add_signal_watch

14 years agoAdd initial implementation of g_dbus_add_signal_watch
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 08:53:21 +0000 (10:53 +0200)]
Add initial implementation of g_dbus_add_signal_watch

With g_dbus_add_signal_watch there is no need to register multiple filters
for dbus nor add matching rules manually.

14 years agoRelease 0.15 0.15
Marcel Holtmann [Thu, 24 Dec 2009 15:22:28 +0000 (07:22 -0800)]
Release 0.15

14 years agoUse error label instead of err or err_out
Marcel Holtmann [Thu, 24 Dec 2009 15:09:09 +0000 (07:09 -0800)]
Use error label instead of err or err_out

14 years agoUnifiy all GAtChat error labels
Marcel Holtmann [Thu, 24 Dec 2009 15:06:23 +0000 (07:06 -0800)]
Unifiy all GAtChat error labels

14 years agogisi: support sending ISI request as a scatter-gather array
Rémi Denis-Courmont [Thu, 17 Dec 2009 07:15:57 +0000 (09:15 +0200)]
gisi: support sending ISI request as a scatter-gather array

14 years agogisi: pass object handle to g_isi_verify() callback
Rémi Denis-Courmont [Wed, 16 Dec 2009 11:46:49 +0000 (13:46 +0200)]
gisi: pass object handle to g_isi_verify() callback

This will be needed for GPDS.

14 years agogisi: Fix g_isi_verify() type safety
Rémi Denis-Courmont [Wed, 16 Dec 2009 11:32:49 +0000 (13:32 +0200)]
gisi: Fix g_isi_verify() type safety

14 years agoStyle: Repeat for drivers
Denis Kenzior [Fri, 18 Dec 2009 03:44:09 +0000 (21:44 -0600)]
Style: Repeat for drivers

14 years agoStyle: Repeat for plugins
Denis Kenzior [Fri, 18 Dec 2009 03:33:48 +0000 (21:33 -0600)]
Style: Repeat for plugins

14 years agoStyle: Fix a few more occurences of if/else
Denis Kenzior [Fri, 18 Dec 2009 03:31:35 +0000 (21:31 -0600)]
Style: Fix a few more occurences of if/else

See Linux coding style document for details

14 years agoStyle: Flip the if statement
Denis Kenzior [Fri, 18 Dec 2009 03:25:15 +0000 (21:25 -0600)]
Style: Flip the if statement

The if case should have the multiple expressions

14 years agoStyle: Add empty lines where needed
Denis Kenzior [Fri, 18 Dec 2009 03:23:20 +0000 (21:23 -0600)]
Style: Add empty lines where needed

14 years agoAdd Powered property to CbsManager.
Andrzej Zaborowski [Thu, 17 Dec 2009 20:54:07 +0000 (21:54 +0100)]
Add Powered property to CbsManager.

14 years agoStyle: Fixup style issues
Denis Kenzior [Fri, 18 Dec 2009 01:29:51 +0000 (19:29 -0600)]
Style: Fixup style issues

14 years agoHandle EF-CBSMID contents.
Andrzej Zaborowski [Thu, 17 Dec 2009 18:52:32 +0000 (19:52 +0100)]
Handle EF-CBSMID contents.

14 years agoFix: The extra 00 at the end isn't necessary
Denis Kenzior [Fri, 18 Dec 2009 00:59:46 +0000 (18:59 -0600)]
Fix: The extra 00 at the end isn't necessary

14 years agoFix: Use capitals for hex-encoded pdus
Denis Kenzior [Fri, 18 Dec 2009 00:58:22 +0000 (18:58 -0600)]
Fix: Use capitals for hex-encoded pdus

14 years agoFix: Make sure we don't leak under any conditions
Denis Kenzior [Fri, 18 Dec 2009 00:52:21 +0000 (18:52 -0600)]
Fix: Make sure we don't leak under any conditions

14 years agoSimplify previous patch
Denis Kenzior [Thu, 17 Dec 2009 22:04:30 +0000 (16:04 -0600)]
Simplify previous patch

14 years agoImplementat SIM envelope in atmodem driver
Denis Kenzior [Thu, 17 Dec 2009 22:00:46 +0000 (16:00 -0600)]
Implementat SIM envelope in atmodem driver

14 years agoAdd SIM download envelope function to SIM driver
Andrzej Zaborowski [Thu, 17 Dec 2009 17:22:05 +0000 (18:22 +0100)]
Add SIM download envelope function to SIM driver

14 years agoAdd utility for checking if CBS topic is in range
Andrzej Zaborowski [Thu, 17 Dec 2009 17:22:05 +0000 (18:22 +0100)]
Add utility for checking if CBS topic is in range

14 years agoFix D-Bus timeout handling
Daniel Orstadius [Wed, 16 Dec 2009 09:23:46 +0000 (11:23 +0200)]
Fix D-Bus timeout handling

Timeouts should also be removed in the remove_timeout callback in
addition to the timeout_handler_free function. This is how dbus-glib
does it and it seems to prevent crashes in certain situations.

14 years agoMention Anders' contribution
Denis Kenzior [Wed, 16 Dec 2009 19:22:44 +0000 (13:22 -0600)]
Mention Anders' contribution

14 years agoFix: Documentation fixes
Anders Gustafsson [Wed, 16 Dec 2009 11:57:07 +0000 (13:57 +0200)]
Fix: Documentation fixes

14 years agoFix: Set netmask for static ip on mbm
Martin Xu [Wed, 16 Dec 2009 03:01:30 +0000 (11:01 +0800)]
Fix: Set netmask for static ip on mbm

14 years agoSupport 51.011 EFecc format.
Andrzej Zaborowski [Wed, 16 Dec 2009 02:05:37 +0000 (03:05 +0100)]
Support 51.011 EFecc format.

EFecc has different formats in G2 and G3 UICC specs.

14 years agoFix: Concatenation of datagram SMS messages
Denis Kenzior [Mon, 14 Dec 2009 16:13:42 +0000 (10:13 -0600)]
Fix: Concatenation of datagram SMS messages

The 16 bit port address was not being computed correctly.

14 years agoRelease 0.14 0.14
Marcel Holtmann [Sun, 13 Dec 2009 21:29:37 +0000 (22:29 +0100)]
Release 0.14

14 years agoAdd set-mic-volume test script to distribution
Marcel Holtmann [Sun, 13 Dec 2009 21:17:25 +0000 (22:17 +0100)]
Add set-mic-volume test script to distribution

14 years agoAdd legacy mode to gsmdial
Denis Kenzior [Fri, 11 Dec 2009 00:14:11 +0000 (18:14 -0600)]
Add legacy mode to gsmdial

Use ATD*99 variety for modems that don't support CGDATA.

14 years agoFix: wrong abbreviation for option
Denis Kenzior [Thu, 10 Dec 2009 23:49:33 +0000 (17:49 -0600)]
Fix: wrong abbreviation for option

14 years agoAdd offmode to gsmdial
Denis Kenzior [Thu, 10 Dec 2009 23:43:57 +0000 (17:43 -0600)]
Add offmode to gsmdial

14 years agoFix: Fix gsmdial to handle MD300
Denis Kenzior [Thu, 10 Dec 2009 23:41:42 +0000 (17:41 -0600)]
Fix: Fix gsmdial to handle MD300

MD300 never sends a CGREG indication, we must query it after CGATT

14 years agoAdd the beginnings of a GSM GPRS dialing app
Denis Kenzior [Thu, 10 Dec 2009 23:08:01 +0000 (17:08 -0600)]
Add the beginnings of a GSM GPRS dialing app

14 years agobootstrap: autoconf must run before automake
Rémi Denis-Courmont [Wed, 9 Dec 2009 11:35:37 +0000 (13:35 +0200)]
bootstrap: autoconf must run before automake

The other way, dependencies computation (depcomp) does not work
correctly. In fact, aclocal is the part of GNU/automake to be run
before autoconf whereas automake is the part to be run after it.
In other words, aclocal would not exist if automake could run
properly before autoconf. This ordering is consistent with most
autotools-based projects, and most authoritatively, with autoreconf.

This also adds a missing anti-slash for consistency.

14 years agoAdd context-id allocation / deallocation code
Denis Kenzior [Thu, 10 Dec 2009 03:01:50 +0000 (21:01 -0600)]
Add context-id allocation / deallocation code

This also disables attempts to use multiple active contexts.  The code
isn't setup to do this yet.

14 years agoRefactor: use unsigned ints for cids
Denis Kenzior [Thu, 10 Dec 2009 03:01:33 +0000 (21:01 -0600)]
Refactor: use unsigned ints for cids

14 years agoActivate Speech Service for Option devices
Marcel Holtmann [Thu, 10 Dec 2009 01:56:16 +0000 (02:56 +0100)]
Activate Speech Service for Option devices

14 years agoQuery current state of Option specific settings
Marcel Holtmann [Thu, 10 Dec 2009 01:55:53 +0000 (02:55 +0100)]
Query current state of Option specific settings

14 years agoAdd Microphone volume test script
Denis Kenzior [Wed, 9 Dec 2009 18:52:29 +0000 (12:52 -0600)]
Add Microphone volume test script

14 years agoUse at_util_parse_reg in netreg driver
Denis Kenzior [Wed, 9 Dec 2009 18:50:52 +0000 (12:50 -0600)]
Use at_util_parse_reg in netreg driver