platform/upstream/ofono.git
11 years agodundee: disconnect bluetooth link in case dial fails
Gustavo Padovan [Mon, 13 Aug 2012 21:52:06 +0000 (18:52 -0300)]
dundee: disconnect bluetooth link in case dial fails

If the ATD*99# dial fails for some reason, NO CARRIER, for example, we
need to disconnect the bluetooth link and do further clean up on
disconnect_callback().

11 years agodundee: explicit shutdown the bluetooth file descriptor
Gustavo Padovan [Tue, 14 Aug 2012 07:14:32 +0000 (04:14 -0300)]
dundee: explicit shutdown the bluetooth file descriptor

If we do not shut it down the fd can remain opened. This make impossible
to try a re-connect: busy is returned in this case.

We call shutdown here to make sure that the link is always closed.

11 years agodundee: add timeout to close stalled ppp handshake
Gustavo Padovan [Tue, 14 Aug 2012 07:14:31 +0000 (04:14 -0300)]
dundee: add timeout to close stalled ppp handshake

If something goes wrong the PPP handshake can stall, then we just add a
timer to return an error after a certain timeout (15 seconds).

11 years agombm: Fix crash from processing multiple *EMRDY
Denis Kenzior [Thu, 16 Aug 2012 16:39:22 +0000 (11:39 -0500)]
mbm: Fix crash from processing multiple *EMRDY

Sometimes we see the *EMRDY notification before we query, and trigger
initialization procedures twice.

11 years agombm: Remove spurious ';'
Denis Kenzior [Thu, 16 Aug 2012 16:20:45 +0000 (11:20 -0500)]
mbm: Remove spurious ';'

11 years agotelit: pass vendor at sim atom creation
Christopher Vogl [Thu, 16 Aug 2012 09:01:48 +0000 (11:01 +0200)]
telit: pass vendor at sim atom creation

11 years agotelit: Fix 80 character per line violation
Denis Kenzior [Thu, 16 Aug 2012 06:15:39 +0000 (01:15 -0500)]
telit: Fix 80 character per line violation

11 years agotelit: move gprs atom into post sim phase
Christopher Vogl [Thu, 16 Aug 2012 08:40:08 +0000 (10:40 +0200)]
telit: move gprs atom into post sim phase

11 years agogprs: data bearer for telit with PSNT
August Mayer [Thu, 16 Aug 2012 08:11:16 +0000 (10:11 +0200)]
gprs: data bearer for telit with PSNT

Telit neither supports '+CPSB' nor reports the data bearer through
'+CGREG'. It has its own +PSNT command.

11 years agosim: Minor formatting nitpicks
Denis Kenzior [Thu, 16 Aug 2012 06:05:01 +0000 (01:05 -0500)]
sim: Minor formatting nitpicks

11 years agosim: Fix warning
Denis Kenzior [Thu, 16 Aug 2012 06:04:47 +0000 (01:04 -0500)]
sim: Fix warning

drivers/atmodem/sim.c: In function ‘at_pct_cb’:
drivers/atmodem/sim.c:872:2: error: ISO C90 forbids mixed declarations
and code

11 years agoAUTHORS: Mention August's contributions
Denis Kenzior [Thu, 16 Aug 2012 06:00:57 +0000 (01:00 -0500)]
AUTHORS: Mention August's contributions

11 years agosim: support PIN retry counters for telit modems
August Mayer [Thu, 16 Aug 2012 07:37:20 +0000 (09:37 +0200)]
sim: support PIN retry counters for telit modems

11 years agosim: implement function to get password type
August Mayer [Thu, 16 Aug 2012 07:37:19 +0000 (09:37 +0200)]
sim: implement function to get password type

11 years agosim: add function to get password type
August Mayer [Thu, 16 Aug 2012 07:37:18 +0000 (09:37 +0200)]
sim: add function to get password type

11 years agounit: Add a unit test for empty sim strings
Denis Kenzior [Thu, 16 Aug 2012 05:49:45 +0000 (00:49 -0500)]
unit: Add a unit test for empty sim strings

11 years agoutil: Make sure to handle special empty strings
Denis Kenzior [Thu, 16 Aug 2012 05:47:59 +0000 (00:47 -0500)]
util: Make sure to handle special empty strings

Some SIMs contain an EFspn with the contents all set to 'filler'
characters, e.g. 0xFF.  We mistakenly do not handle these strings
correctly.

Aug  8 11:40:00 mx31tt01 daemon.info ofonod[622]: Aux: >
AT+CRSM=176,28486,0,0,17\r
Aug  8 11:40:00 mx31tt01 daemon.info ofonod[622]: Aux: < \r\n+CRSM:
144,0,FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\r\n\r\nOK\r\n
Aug  8 11:40:00 mx31tt01 daemon.debug ofonod[622]:
drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 17
Aug  8 11:40:00 mx31tt01 daemon.debug ofonod[622]:
src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 17
Aug  8 11:40:00 mx31tt01 daemon.err ofonod[622]: EFspn read
successfully, but couldn't parse

11 years agogprs: fix bearer dbus signal interface
Christopher Vogl [Mon, 13 Aug 2012 13:23:58 +0000 (15:23 +0200)]
gprs: fix bearer dbus signal interface

According to the documentation the data bearer property should be
located on interface org.ofono.ConnectionManager.

11 years agogprs-context: print reason for ppp disconnect
Christopher Vogl [Mon, 13 Aug 2012 13:22:42 +0000 (15:22 +0200)]
gprs-context: print reason for ppp disconnect

11 years agodoc: Trivial whitespace fixes
Mikel Astiz [Mon, 13 Aug 2012 08:06:26 +0000 (10:06 +0200)]
doc: Trivial whitespace fixes

Always use tabs instead of spaces for indentation in documentation
files.

11 years agotest: Fix printing of modem property strings
Marcel Holtmann [Thu, 9 Aug 2012 17:28:27 +0000 (10:28 -0700)]
test: Fix printing of modem property strings

11 years agotest: Remove test-voicecall script
Denis Kenzior [Tue, 7 Aug 2012 07:25:01 +0000 (02:25 -0500)]
test: Remove test-voicecall script

This is no longer useful as phonesim does not automatically transition
dialing calls to active state.

11 years agotest: Add support for CSSI/CSSU notifications
Denis Kenzior [Tue, 7 Aug 2012 06:30:51 +0000 (01:30 -0500)]
test: Add support for CSSI/CSSU notifications

11 years agotest: Fix weird formatting mis-matches
Denis Kenzior [Tue, 7 Aug 2012 06:29:47 +0000 (01:29 -0500)]
test: Fix weird formatting mis-matches

11 years agotest: Remove redundant code from monitor-ofono
Denis Kenzior [Tue, 7 Aug 2012 06:26:57 +0000 (01:26 -0500)]
test: Remove redundant code from monitor-ofono

11 years agoRelease 1.10 1.10
Marcel Holtmann [Tue, 7 Aug 2012 06:15:26 +0000 (23:15 -0700)]
Release 1.10

11 years agotest: Add hangup-call script for GCF testing
Guillaume Zajac [Mon, 6 Aug 2012 15:42:36 +0000 (17:42 +0200)]
test: Add hangup-call script for GCF testing

11 years agotest: Add release-and-swap script
Denis Kenzior [Mon, 6 Aug 2012 04:32:01 +0000 (23:32 -0500)]
test: Add release-and-swap script

11 years agovoicecall: Implement ReleaseAndSwap
Denis Kenzior [Mon, 6 Aug 2012 04:31:05 +0000 (23:31 -0500)]
voicecall: Implement ReleaseAndSwap

11 years agodoc: Add ReleaseAndSwap
Denis Kenzior [Mon, 6 Aug 2012 04:29:54 +0000 (23:29 -0500)]
doc: Add ReleaseAndSwap

11 years agotest: Add hangup-multiparty script for GCF testing
Guillaume Zajac [Fri, 3 Aug 2012 14:50:01 +0000 (16:50 +0200)]
test: Add hangup-multiparty script for GCF testing

11 years agobuild: add certification.txt
Denis Kenzior [Thu, 2 Aug 2012 21:00:01 +0000 (16:00 -0500)]
build: add certification.txt

11 years agodoc: Add certification.txt
Denis Kenzior [Thu, 2 Aug 2012 20:44:11 +0000 (15:44 -0500)]
doc: Add certification.txt

11 years agotest: Add hold-and-answer script for GCF testing
Guillaume Zajac [Thu, 2 Aug 2012 09:41:01 +0000 (11:41 +0200)]
test: Add hold-and-answer script for GCF testing

11 years agodoc: Another addendum to Interfaces docs
Denis Kenzior [Sat, 28 Jul 2012 10:16:22 +0000 (05:16 -0500)]
doc: Another addendum to Interfaces docs

11 years agodoc: Further explain the Interfaces property
Denis Kenzior [Sat, 28 Jul 2012 10:11:50 +0000 (05:11 -0500)]
doc: Further explain the Interfaces property

11 years agotest: Remove test-ussd as it is redundant
Philippe Nunes [Thu, 26 Jul 2012 15:57:54 +0000 (17:57 +0200)]
test: Remove test-ussd as it is redundant

11 years agotest: Add send-ussd script
Philippe Nunes [Thu, 26 Jul 2012 15:57:54 +0000 (17:57 +0200)]
test: Add send-ussd script

Simpler script that test-ussd that is still capable of replying to
network initiated USSD requests and USSD dialogs.

11 years agomonitor-ofono: Fix to print non-English characters
Philippe Nunes [Thu, 26 Jul 2012 15:57:53 +0000 (17:57 +0200)]
monitor-ofono: Fix to print non-English characters

The default encoding for a Python bytestring is ASCII. But the
SMS/USSD text is encoded in UTF-8.
This is why trying to convert non-English characters (Unicode
characters beyond 128) produces the error
"UnicodeEncodeError: 'ascii' codec can't encode character".

11 years agodoc: Add comments on valid phone number format
Denis Kenzior [Wed, 25 Jul 2012 14:16:59 +0000 (09:16 -0500)]
doc: Add comments on valid phone number format

11 years agodoc: Expand description of various Hangup cases
Denis Kenzior [Wed, 25 Jul 2012 14:00:52 +0000 (09:00 -0500)]
doc: Expand description of various Hangup cases

11 years agodoc: Update Features property description
Denis Kenzior [Wed, 25 Jul 2012 13:50:24 +0000 (08:50 -0500)]
doc: Update Features property description

11 years agoRelease 1.9 1.9
Marcel Holtmann [Thu, 19 Jul 2012 19:12:02 +0000 (21:12 +0200)]
Release 1.9

11 years agounit: Simplify previous commit
Denis Kenzior [Tue, 17 Jul 2012 19:28:31 +0000 (14:28 -0500)]
unit: Simplify previous commit

11 years agounit: Update test_invalid() unit test
Guillaume Zajac [Wed, 18 Jul 2012 15:18:12 +0000 (17:18 +0200)]
unit: Update test_invalid() unit test

11 years agoutil: Style issues
Denis Kenzior [Tue, 17 Jul 2012 03:51:43 +0000 (22:51 -0500)]
util: Style issues

11 years agoutil: update comment from previous commit
Denis Kenzior [Tue, 17 Jul 2012 03:50:55 +0000 (22:50 -0500)]
util: update comment from previous commit

Cite the specification verbatim

11 years agodoc: Remove duplicate error entry
Denis Kenzior [Tue, 17 Jul 2012 03:50:34 +0000 (22:50 -0500)]
doc: Remove duplicate error entry

11 years agoutil: Fix GSM to UTF8 conversion mechanism
Guillaume Zajac [Mon, 16 Jul 2012 14:34:38 +0000 (16:34 +0200)]
util: Fix GSM to UTF8 conversion mechanism

11 years agogprs: Call detach_shutdown when network is lost
Guillaume Zajac [Fri, 13 Jul 2012 13:44:28 +0000 (15:44 +0200)]
gprs: Call detach_shutdown when network is lost

11 years agogprs-context: Add new driver entry definition
Guillaume Zajac [Fri, 13 Jul 2012 13:44:27 +0000 (15:44 +0200)]
gprs-context: Add new driver entry definition

11 years agogprs-context: Add new driver entry
Guillaume Zajac [Fri, 13 Jul 2012 13:44:26 +0000 (15:44 +0200)]
gprs-context: Add new driver entry

11 years agoRevert "build: Use -Wshadow compiler option"
Marcel Holtmann [Mon, 16 Jul 2012 13:12:45 +0000 (10:12 -0300)]
Revert "build: Use -Wshadow compiler option"

11 years agobuild: Use -Wshadow compiler option
Marcel Holtmann [Sun, 15 Jul 2012 23:36:20 +0000 (20:36 -0300)]
build: Use -Wshadow compiler option

11 years agovoicecall: Avoid shadowing of number variable
Marcel Holtmann [Sun, 15 Jul 2012 23:35:42 +0000 (20:35 -0300)]
voicecall: Avoid shadowing of number variable

11 years agovoicecall: Remove shadowing modem variable
Marcel Holtmann [Sun, 15 Jul 2012 23:32:17 +0000 (20:32 -0300)]
voicecall: Remove shadowing modem variable

11 years agoctm: Remove shadowing reply variable
Marcel Holtmann [Sun, 15 Jul 2012 23:29:29 +0000 (20:29 -0300)]
ctm: Remove shadowing reply variable

11 years agoofono: Avoid shadowing other atom variables
Marcel Holtmann [Sun, 15 Jul 2012 23:28:30 +0000 (20:28 -0300)]
ofono: Avoid shadowing other atom variables

11 years agogprs: Avoid shadowing error variable
Marcel Holtmann [Sun, 15 Jul 2012 23:26:12 +0000 (20:26 -0300)]
gprs: Avoid shadowing error variable

11 years agonetwork: Avoid shadowing of strength variable
Marcel Holtmann [Sun, 15 Jul 2012 23:21:19 +0000 (20:21 -0300)]
network: Avoid shadowing of strength variable

11 years agonetwork: Avoid shadowing of mode parameter
Marcel Holtmann [Sun, 15 Jul 2012 23:20:39 +0000 (20:20 -0300)]
network: Avoid shadowing of mode parameter

11 years agobluetooth: Avoid shadowing of connection variable
Marcel Holtmann [Sun, 15 Jul 2012 23:19:47 +0000 (20:19 -0300)]
bluetooth: Avoid shadowing of connection variable

11 years agostemgr: Avoid shadowing of connection variable
Marcel Holtmann [Sun, 15 Jul 2012 23:19:28 +0000 (20:19 -0300)]
stemgr: Avoid shadowing of connection variable

11 years agoqmimodem: Avoid shadowing length parameter
Marcel Holtmann [Sun, 15 Jul 2012 23:16:59 +0000 (20:16 -0300)]
qmimodem: Avoid shadowing length parameter

11 years agounit: Avoid shadowing data variable
Marcel Holtmann [Sun, 15 Jul 2012 23:15:49 +0000 (20:15 -0300)]
unit: Avoid shadowing data variable

11 years agoisimodem: Avoid shadowing variables
Marcel Holtmann [Sun, 15 Jul 2012 23:12:51 +0000 (20:12 -0300)]
isimodem: Avoid shadowing variables

11 years agogatchat: Avoid shadowing global AT server variable
Marcel Holtmann [Sun, 15 Jul 2012 23:09:43 +0000 (20:09 -0300)]
gatchat: Avoid shadowing global AT server variable

11 years agogatchat: Avoid shadowing variables
Marcel Holtmann [Sun, 15 Jul 2012 23:06:43 +0000 (20:06 -0300)]
gatchat: Avoid shadowing variables

11 years agounit: Avoid shadowing hex_packed variable
Marcel Holtmann [Sun, 15 Jul 2012 23:03:25 +0000 (20:03 -0300)]
unit: Avoid shadowing hex_packed variable

11 years agoifx: Add CSSI and CSSU support
Denis Kenzior [Thu, 12 Jul 2012 19:12:55 +0000 (14:12 -0500)]
ifx: Add CSSI and CSSU support

11 years agomanager: Fix up introspection data
Denis Kenzior [Wed, 4 Jul 2012 13:14:24 +0000 (08:14 -0500)]
manager: Fix up introspection data

11 years agodoc: Mention support for Nvidia Icera modems
Marcel Holtmann [Tue, 3 Jul 2012 12:49:29 +0000 (14:49 +0200)]
doc: Mention support for Nvidia Icera modems

11 years agodoc: Update entry for Qualcomm Gobi support
Marcel Holtmann [Tue, 3 Jul 2012 12:47:21 +0000 (14:47 +0200)]
doc: Update entry for Qualcomm Gobi support

11 years agotools: watch for signals only on OFONO_SERVICE
Lucas De Marchi [Thu, 28 Jun 2012 13:59:21 +0000 (10:59 -0300)]
tools: watch for signals only on OFONO_SERVICE

11 years agostemgr: watch for signals only on MGR_SERVICE
Lucas De Marchi [Thu, 28 Jun 2012 13:59:20 +0000 (10:59 -0300)]
stemgr: watch for signals only on MGR_SERVICE

11 years agobluetooth: watch for signals only on BLUEZ_SERVICE
Lucas De Marchi [Thu, 28 Jun 2012 13:59:19 +0000 (10:59 -0300)]
bluetooth: watch for signals only on BLUEZ_SERVICE

11 years agoREADME: add information about mailing list and site
Lucas De Marchi [Thu, 28 Jun 2012 13:59:18 +0000 (10:59 -0300)]
README: add information about mailing list and site

11 years agoRelease 1.8 1.8
Marcel Holtmann [Mon, 2 Jul 2012 13:00:08 +0000 (15:00 +0200)]
Release 1.8

12 years agogdbus: Fix removal of filter after last filter_data
Lucas De Marchi [Mon, 25 Jun 2012 15:44:40 +0000 (12:44 -0300)]
gdbus: Fix removal of filter after last filter_data

If there's a signal watch that's also watching for name
(data->name_watch) currently we are trying to remove the message_filter
twice since we may have the following call chain:

filter_data_remove_callback()
  filter_data_free()
    g_dbus_remove_watch()
      filter_data_remove_callback()
filter_data_free()
        dbus_connection_remove_filter()
  dbus_connection_remove_filter()

Because of this we can't currently watch for signals passing the bus
name. After this patch we don't have this issue anymore.

We fix it by removing the filter before calling filter_data_free() if we
are the last filter_data and thus avoid calling
dbus_connection_remove_filter() twice.

12 years agoemulator: Test already done in g_at_server_resume()
Guillaume Zajac [Tue, 26 Jun 2012 08:12:58 +0000 (10:12 +0200)]
emulator: Test already done in g_at_server_resume()

12 years agogatserver: Add NULL check to avoid crash
Guillaume Zajac [Tue, 26 Jun 2012 08:12:59 +0000 (10:12 +0200)]
gatserver: Add NULL check to avoid crash

Dundee is not waiting to receive the NO CARRIER notification
to close the IO channel with oFono so that oFono is trying to
send a NO CARRIER although GAtServer is removed.

12 years agoqmi: fix whitespace
Denis Kenzior [Sat, 23 Jun 2012 05:31:04 +0000 (00:31 -0500)]
qmi: fix whitespace

12 years agomodem: Add skeleton for USSD support
Marcel Holtmann [Tue, 26 Jun 2012 03:24:33 +0000 (20:24 -0700)]
modem: Add skeleton for USSD support

12 years agogobi: Add support for USSD atom driver
Marcel Holtmann [Tue, 26 Jun 2012 03:14:29 +0000 (20:14 -0700)]
gobi: Add support for USSD atom driver

12 years agogobi: The location reporting is available even without SIM card present
Marcel Holtmann [Mon, 25 Jun 2012 19:28:08 +0000 (12:28 -0700)]
gobi: The location reporting is available even without SIM card present

12 years agogobi: Add support for voice call atom driver
Marcel Holtmann [Mon, 25 Jun 2012 19:11:45 +0000 (12:11 -0700)]
gobi: Add support for voice call atom driver

12 years agoqmimodem: Add skeleton for voice call support
Marcel Holtmann [Mon, 25 Jun 2012 19:11:08 +0000 (12:11 -0700)]
qmimodem: Add skeleton for voice call support

12 years agogobi: Cancel all requests and notifications on device shutdown
Marcel Holtmann [Mon, 25 Jun 2012 17:25:49 +0000 (10:25 -0700)]
gobi: Cancel all requests and notifications on device shutdown

12 years agoqmimodem: Make sure all service destroy functions are called
Marcel Holtmann [Mon, 25 Jun 2012 17:25:03 +0000 (10:25 -0700)]
qmimodem: Make sure all service destroy functions are called

12 years agoqmimodem: Add support for canceling all service requests
Marcel Holtmann [Mon, 25 Jun 2012 17:20:08 +0000 (10:20 -0700)]
qmimodem: Add support for canceling all service requests

12 years agoqmimodem: Use shared DMS service for device information and SIM handling
Marcel Holtmann [Mon, 25 Jun 2012 16:31:49 +0000 (09:31 -0700)]
qmimodem: Use shared DMS service for device information and SIM handling

12 years agogobi: Use shared DMS for power and online operations
Marcel Holtmann [Mon, 25 Jun 2012 16:31:02 +0000 (09:31 -0700)]
gobi: Use shared DMS for power and online operations

12 years agoqmimodem: Add support for shared services with same client id
Marcel Holtmann [Mon, 25 Jun 2012 16:30:31 +0000 (09:30 -0700)]
qmimodem: Add support for shared services with same client id

12 years agobluetooth: ignore error if driver returns -EALREADY
Luiz Augusto von Dentz [Mon, 25 Jun 2012 08:54:35 +0000 (11:54 +0300)]
bluetooth: ignore error if driver returns -EALREADY

12 years agoqmimodem: Use unsigned int for notify id to make GUINT_TO_POINTER happy
Marcel Holtmann [Mon, 25 Jun 2012 08:56:33 +0000 (01:56 -0700)]
qmimodem: Use unsigned int for notify id to make GUINT_TO_POINTER happy

12 years agoqmimodem: Use unsigned int for tid to make GUINT_TO_POINTER happy
Marcel Holtmann [Mon, 25 Jun 2012 08:23:14 +0000 (01:23 -0700)]
qmimodem: Use unsigned int for tid to make GUINT_TO_POINTER happy

12 years agoqmimodem: Use unsigned int for hash_id to make GUINT_TO_POINTER happy
Marcel Holtmann [Mon, 25 Jun 2012 08:18:48 +0000 (01:18 -0700)]
qmimodem: Use unsigned int for hash_id to make GUINT_TO_POINTER happy

12 years agotest: Fix missing UseDeliveryReports setting for SMS script
Marcel Holtmann [Mon, 25 Jun 2012 07:03:25 +0000 (00:03 -0700)]
test: Fix missing UseDeliveryReports setting for SMS script

12 years agoswmodem: Add extra informational AT+CGCONTRDP command
Marcel Holtmann [Mon, 25 Jun 2012 07:02:17 +0000 (00:02 -0700)]
swmodem: Add extra informational AT+CGCONTRDP command

12 years agosim: Add extra errors for EFmsisdn and EFad length mismatches
Marcel Holtmann [Mon, 25 Jun 2012 07:00:45 +0000 (00:00 -0700)]
sim: Add extra errors for EFmsisdn and EFad length mismatches