platform/upstream/ofono.git
13 years agoatmodem: Add support for handling GPRS context vendor quirks
Marcel Holtmann [Fri, 5 Aug 2011 09:17:55 +0000 (11:17 +0200)]
atmodem: Add support for handling GPRS context vendor quirks

13 years agoudev: Add rule for 4G Systems P14 dongle
Marcel Holtmann [Fri, 5 Aug 2011 08:06:07 +0000 (10:06 +0200)]
udev: Add rule for 4G Systems P14 dongle

13 years agozte: Use AT+ZOPRT for online/offline mode changes
Marcel Holtmann [Fri, 5 Aug 2011 00:15:38 +0000 (02:15 +0200)]
zte: Use AT+ZOPRT for online/offline mode changes

The ZTE modems work a lot more reliable when using AT+ZOPRT for switching
between online and offline mode.

In addition transition to offline mode also for enabling modem and switch
device into offline first before switching it off.

13 years agozte: Set options for TTY port configuration
Marcel Holtmann [Fri, 5 Aug 2011 00:14:08 +0000 (02:14 +0200)]
zte: Set options for TTY port configuration

Seems like the ZTE modems are a bit more picky than others, so set
proper default options here. At least of the ZTE modems work a lot
more reliable this way.

13 years agodoc: fix Forwarded signal name in VoiceCallManager
Alexander Kanavin [Fri, 5 Aug 2011 11:53:58 +0000 (14:53 +0300)]
doc: fix Forwarded signal name in VoiceCallManager

13 years agogatchat: Fix minor whitespace mistake
Marcel Holtmann [Thu, 4 Aug 2011 21:54:33 +0000 (23:54 +0200)]
gatchat: Fix minor whitespace mistake

13 years agoudev: add support for Olive HSDPA modem, which seems to be a SpeedUP.
Bertrand Aygon [Thu, 4 Aug 2011 13:06:04 +0000 (15:06 +0200)]
udev: add support for Olive HSDPA modem, which seems to be a SpeedUP.

13 years agospeedup: Add support for retrieving PIN retry counters
Marcel Holtmann [Thu, 4 Aug 2011 15:00:05 +0000 (17:00 +0200)]
speedup: Add support for retrieving PIN retry counters

13 years agoudev: Switch control and modem channel for 4G Systems W14 device
Marcel Holtmann [Thu, 4 Aug 2011 14:01:45 +0000 (16:01 +0200)]
udev: Switch control and modem channel for 4G Systems W14 device

This device is rather funny with some commands and insists on sending
the response to the other channel, but not the one it got executed on.

Aux: > AT+CPNNUM\r
Modem: < \r\nPIN1=3; PUK1=10; PIN2=3; PUK2=10\r\r\nOK\r\n

13 years agospeedup: Use own vendor quirk for SIM atom
Marcel Holtmann [Thu, 4 Aug 2011 13:54:57 +0000 (15:54 +0200)]
speedup: Use own vendor quirk for SIM atom

13 years agoatmodem: Add Speedup vendor quirk to SIM file reading
Marcel Holtmann [Thu, 4 Aug 2011 13:54:26 +0000 (15:54 +0200)]
atmodem: Add Speedup vendor quirk to SIM file reading

13 years agodoc: Add missing PreferredLanguages property to SimManager
Alexander Kanavin [Thu, 4 Aug 2011 13:30:09 +0000 (16:30 +0300)]
doc: Add missing PreferredLanguages property to SimManager

13 years agohuawei: Check for AT^RFSWITCH support to determine offline command
Marcel Holtmann [Thu, 4 Aug 2011 12:01:03 +0000 (14:01 +0200)]
huawei: Check for AT^RFSWITCH support to determine offline command

Using AT+CFUN=7 (if supported) to switch into offline mode has a problem
with older modems. Sending AT+CFUN=7 with a data connection active has
the problem that it never terminates with OK or ERROR.

Devices that support AT^RFSWITCH are known to handle this properly. So
only when that command is supported, use AT+CFUN=7 for offline mode. If
it is not supported, then keep using AT+CFUN=5 to switch the device into
offline mode.

13 years agohuawei: Add TOO MANY PARAMETERS terminator
Marcel Holtmann [Thu, 4 Aug 2011 11:27:29 +0000 (13:27 +0200)]
huawei: Add TOO MANY PARAMETERS terminator

13 years agozte: Switch to offline mode first before disabling modem
Marcel Holtmann [Thu, 4 Aug 2011 00:43:06 +0000 (02:43 +0200)]
zte: Switch to offline mode first before disabling modem

13 years agozte: Blacklist the NO CARRIER terminator for control channel
Marcel Holtmann [Thu, 4 Aug 2011 00:15:56 +0000 (02:15 +0200)]
zte: Blacklist the NO CARRIER terminator for control channel

The ZTE cards will send NO CARRIER to all channels. This confuses
setting device into offline mode while still having a data connection.

13 years agoudev: For ZTE modems with 5 interfaces, use 4th one for PPP
Marcel Holtmann [Thu, 4 Aug 2011 00:14:46 +0000 (02:14 +0200)]
udev: For ZTE modems with 5 interfaces, use 4th one for PPP

13 years agoatmodem: Add support for ZTE technology reporting
Marcel Holtmann [Wed, 3 Aug 2011 22:39:29 +0000 (00:39 +0200)]
atmodem: Add support for ZTE technology reporting

13 years agozte: Request PCB information when modem gets enabled
Marcel Holtmann [Wed, 3 Aug 2011 22:07:03 +0000 (00:07 +0200)]
zte: Request PCB information when modem gets enabled

13 years agozte: Set ZTE vendor quirk for SIM atom
Marcel Holtmann [Wed, 3 Aug 2011 21:55:06 +0000 (23:55 +0200)]
zte: Set ZTE vendor quirk for SIM atom

13 years agoatmodem: Enable support for PIN retry counters of ZTE modems
Marcel Holtmann [Wed, 3 Aug 2011 21:54:39 +0000 (23:54 +0200)]
atmodem: Enable support for PIN retry counters of ZTE modems

13 years agoatmodem: Enable timezone reporting for ZTE modems
Marcel Holtmann [Wed, 3 Aug 2011 21:26:53 +0000 (23:26 +0200)]
atmodem: Enable timezone reporting for ZTE modems

13 years agoatmodem: The ZTE dongles send LAC and CI as unquoted strings
Marcel Holtmann [Wed, 3 Aug 2011 21:13:11 +0000 (23:13 +0200)]
atmodem: The ZTE dongles send LAC and CI as unquoted strings

13 years agozte: Use vendor quirk for GPRS atom
Marcel Holtmann [Wed, 3 Aug 2011 21:12:55 +0000 (23:12 +0200)]
zte: Use vendor quirk for GPRS atom

13 years agospeedup: Use vendor quirk for network registration and GPRS atoms
Marcel Holtmann [Wed, 3 Aug 2011 20:39:11 +0000 (22:39 +0200)]
speedup: Use vendor quirk for network registration and GPRS atoms

13 years agoatmodem: The Speedup dongles send LAC and CI as unquoted strings
Marcel Holtmann [Wed, 3 Aug 2011 20:37:16 +0000 (22:37 +0200)]
atmodem: The Speedup dongles send LAC and CI as unquoted strings

13 years agodunmodem: Add stub for gprs.
Mario Tokarz [Wed, 3 Aug 2011 13:04:20 +0000 (15:04 +0200)]
dunmodem: Add stub for gprs.

13 years agodevinfo: Use correct prefix for cdma
Guillaume Zajac [Wed, 3 Aug 2011 13:44:31 +0000 (15:44 +0200)]
devinfo: Use correct prefix for cdma

13 years agocdmamodem: remove an unneeded buffer and sprintf.
Bertrand Aygon [Wed, 3 Aug 2011 16:33:48 +0000 (18:33 +0200)]
cdmamodem: remove an unneeded buffer and sprintf.

13 years agodbus: Add CDMA netreg atom interface name
Bertrand Aygon [Tue, 2 Aug 2011 12:45:17 +0000 (14:45 +0200)]
dbus: Add CDMA netreg atom interface name

13 years agoudev: Add rule for 4G Systems W14 dongle
Marcel Holtmann [Wed, 3 Aug 2011 16:54:27 +0000 (18:54 +0200)]
udev: Add rule for 4G Systems W14 dongle

13 years agobluetooth: Add UUID for DUN.
Mario Tokarz [Wed, 3 Aug 2011 11:48:29 +0000 (13:48 +0200)]
bluetooth: Add UUID for DUN.

13 years agombm: Don't bother with NULL checking for SIM state query free
Marcel Holtmann [Wed, 3 Aug 2011 12:31:56 +0000 (14:31 +0200)]
mbm: Don't bother with NULL checking for SIM state query free

13 years agozte: Fix race condition with SIM state polling and removal
Marcel Holtmann [Wed, 3 Aug 2011 12:30:41 +0000 (14:30 +0200)]
zte: Fix race condition with SIM state polling and removal

13 years agospeedup: Fix race condition with SIM state polling and removal
Marcel Holtmann [Wed, 3 Aug 2011 12:29:32 +0000 (14:29 +0200)]
speedup: Fix race condition with SIM state polling and removal

13 years agoatutil: Handle empty SIM state polling request gracefully
Marcel Holtmann [Wed, 3 Aug 2011 12:27:17 +0000 (14:27 +0200)]
atutil: Handle empty SIM state polling request gracefully

13 years agohuawei: Fix race condition with enable polling
Marcel Holtmann [Wed, 3 Aug 2011 12:26:23 +0000 (14:26 +0200)]
huawei: Fix race condition with enable polling

13 years agohuawei: Fix race condition with online enable polling
Marcel Holtmann [Wed, 3 Aug 2011 12:23:21 +0000 (14:23 +0200)]
huawei: Fix race condition with online enable polling

13 years agoudev: switch ttys for SpeedUp 8000.
Bertrand Aygon [Mon, 1 Aug 2011 12:25:55 +0000 (14:25 +0200)]
udev: switch ttys for SpeedUp 8000.

On SpeedUp 8000, notifications are received only on ttyUSB1.
So we must use this tty for aux, and use ttyUSB3 for modem.

13 years agombmmodem: Set baud rate to 115200 for GPS interface
Marcel Holtmann [Fri, 29 Jul 2011 18:50:37 +0000 (20:50 +0200)]
mbmmodem: Set baud rate to 115200 for GPS interface

13 years agonovatel: Enable support for SIM phonebook
Marcel Holtmann [Fri, 29 Jul 2011 15:36:08 +0000 (17:36 +0200)]
novatel: Enable support for SIM phonebook

13 years agoatmodem: Handle SIM busy condition gracefully for phonebooks
Marcel Holtmann [Fri, 29 Jul 2011 15:33:22 +0000 (17:33 +0200)]
atmodem: Handle SIM busy condition gracefully for phonebooks

Before the phonebook is ready, the SIM card needs certain amount of
time. Something between 20-30 seconds in general. So if the modem
returns an error indicating the SIM is busy, then try again in
regular intervals.

13 years agoconnman: Fix crash due to uninitialized path
Guillaume Zajac [Fri, 29 Jul 2011 13:49:09 +0000 (15:49 +0200)]
connman: Fix crash due to uninitialized path

13 years agoconnman: Fix crash in request_reply
Guillaume Zajac [Fri, 29 Jul 2011 12:49:56 +0000 (14:49 +0200)]
connman: Fix crash in request_reply

13 years agoconnman: Fix crash in parse_reply
Guillaume Zajac [Fri, 29 Jul 2011 12:49:56 +0000 (14:49 +0200)]
connman: Fix crash in parse_reply

13 years agozte: delay the sending of &C0 after SIM is ready.
Bertrand Aygon [Fri, 29 Jul 2011 13:58:11 +0000 (15:58 +0200)]
zte: delay the sending of &C0 after SIM is ready.

13 years agoudev: add support for Olive V-ME101 HSIA modem
Bertrand Aygon [Fri, 29 Jul 2011 13:14:46 +0000 (15:14 +0200)]
udev: add support for Olive V-ME101 HSIA modem

13 years agoudev: add support for Vodafone K3570-Z modem
Bertrand Aygon [Fri, 29 Jul 2011 12:59:31 +0000 (14:59 +0200)]
udev: add support for Vodafone K3570-Z modem

13 years agohuaweicdma: Fix stale PCUI channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:26:13 +0000 (15:26 +0200)]
huaweicdma: Fix stale PCUI channel after hot-unplug

13 years agospeedupcdma: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:25:24 +0000 (15:25 +0200)]
speedupcdma: Fix stale control channel after hot-unplug

13 years agogobi: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:24:33 +0000 (15:24 +0200)]
gobi: Fix stale control channel after hot-unplug

13 years agonokia: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:22:51 +0000 (15:22 +0200)]
nokia: Fix stale control channel after hot-unplug

13 years agonovatel: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:19:53 +0000 (15:19 +0200)]
novatel: Fix stale control channel after hot-unplug

13 years agospeedup: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:17:06 +0000 (15:17 +0200)]
speedup: Fix stale control channel after hot-unplug

13 years agozte: Fix stale control channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:16:00 +0000 (15:16 +0200)]
zte: Fix stale control channel after hot-unplug

13 years agohuawei: Fix stale PCUI channel after hot-unplug
Marcel Holtmann [Fri, 29 Jul 2011 13:12:59 +0000 (15:12 +0200)]
huawei: Fix stale PCUI channel after hot-unplug

13 years agohuawei: Style cleanup for comments
Marcel Holtmann [Fri, 29 Jul 2011 13:14:30 +0000 (15:14 +0200)]
huawei: Style cleanup for comments

13 years agohuawei: Shutdown the modem within disable callback
Marcel Holtmann [Fri, 29 Jul 2011 12:56:41 +0000 (14:56 +0200)]
huawei: Shutdown the modem within disable callback

13 years agoudev: Add extra debug statements for device actions
Marcel Holtmann [Fri, 29 Jul 2011 12:55:56 +0000 (14:55 +0200)]
udev: Add extra debug statements for device actions

13 years agomodem: Add some more debug outputs
Marcel Holtmann [Fri, 29 Jul 2011 12:30:58 +0000 (14:30 +0200)]
modem: Add some more debug outputs

13 years agomain: Print message when starting to shutdown
Marcel Holtmann [Fri, 29 Jul 2011 12:12:18 +0000 (14:12 +0200)]
main: Print message when starting to shutdown

13 years agoudev: Report problems with the udev monitor channel
Marcel Holtmann [Fri, 29 Jul 2011 12:08:28 +0000 (14:08 +0200)]
udev: Report problems with the udev monitor channel

13 years agoatmodem: Add Huawei specific technology reporting
Marcel Holtmann [Fri, 29 Jul 2011 11:11:44 +0000 (13:11 +0200)]
atmodem: Add Huawei specific technology reporting

13 years agoatmodem: Add Huawei specific GPRS bearer notifications
Marcel Holtmann [Fri, 29 Jul 2011 11:11:17 +0000 (13:11 +0200)]
atmodem: Add Huawei specific GPRS bearer notifications

13 years agoRelease 0.53 0.53
Marcel Holtmann [Thu, 28 Jul 2011 22:32:15 +0000 (00:32 +0200)]
Release 0.53

13 years agoudev: Assign 12d1:140b to Huawei CDMA modem driver
Denis Kenzior [Thu, 28 Jul 2011 20:56:55 +0000 (22:56 +0200)]
udev: Assign 12d1:140b to Huawei CDMA modem driver

A simple Google search revealed that 12d1:140b is only used by CDMA
devices from Huawei. Mainly the EC1260 and EC126 and so just assign
the CDMA driver to it.

13 years agospeedup: delay &C0.
Bertrand Aygon [Thu, 28 Jul 2011 14:16:10 +0000 (16:16 +0200)]
speedup: delay &C0.

13 years agospeedup: remove online/offline mechanism.
Bertrand Aygon [Thu, 28 Jul 2011 14:16:09 +0000 (16:16 +0200)]
speedup: remove online/offline mechanism.

13 years agohuawei: Complete rewrite to better support state transitions
Marcel Holtmann [Thu, 28 Jul 2011 20:06:29 +0000 (22:06 +0200)]
huawei: Complete rewrite to better support state transitions

When switching from offline into online mode, the SIM card access
gets temporarily disabled by the modem firmware. To work around
this limitation poll the SIM card state.

13 years agoudev: Add support for SpeedUp 7300 EVDO modem.
Bertrand Aygon [Thu, 28 Jul 2011 12:43:34 +0000 (14:43 +0200)]
udev: Add support for SpeedUp 7300 EVDO modem.

13 years agogobi: Add support for simplified dialup mode
Marcel Holtmann [Wed, 27 Jul 2011 22:03:46 +0000 (00:03 +0200)]
gobi: Add support for simplified dialup mode

13 years agodunmodem: Add support for dialup network registration
Marcel Holtmann [Wed, 27 Jul 2011 22:02:11 +0000 (00:02 +0200)]
dunmodem: Add support for dialup network registration

13 years agonetwork: Force auto-only mode if manual registration is not supported
Marcel Holtmann [Wed, 27 Jul 2011 21:54:37 +0000 (23:54 +0200)]
network: Force auto-only mode if manual registration is not supported

If the network registration driver decides to not provide a manual
registration method, then force the mode to auto-only.

13 years agodunmodem: Add skeleton for dialup modem driver
Marcel Holtmann [Wed, 27 Jul 2011 20:13:27 +0000 (22:13 +0200)]
dunmodem: Add skeleton for dialup modem driver

13 years agospeedup: Send CFUN=4 when enabling the modem
Marcel Holtmann [Wed, 27 Jul 2011 18:45:03 +0000 (20:45 +0200)]
speedup: Send CFUN=4 when enabling the modem

13 years agozte: Use at_util's cpin polling implementation.
Bertrand Aygon [Wed, 27 Jul 2011 18:07:30 +0000 (20:07 +0200)]
zte: Use at_util's cpin polling implementation.

13 years agospeedup: Use at_util's cpin polling implementation.
Bertrand Aygon [Wed, 27 Jul 2011 16:54:09 +0000 (18:54 +0200)]
speedup: Use at_util's cpin polling implementation.

13 years agozte: Delay sending of AT&C0 to disable data carrier detect
Marcel Holtmann [Wed, 27 Jul 2011 16:02:04 +0000 (18:02 +0200)]
zte: Delay sending of AT&C0 to disable data carrier detect

The &C0 can not be send as part of the initial modem init string
since then it return with an error. Also sending it right after seems
to end up in a race condition with the modem init.

So send AT&C0 on both channel after AT+CFUN completed.

13 years agotest: add script to set credentials for cdma connection
Guillaume Zajac [Wed, 27 Jul 2011 14:19:29 +0000 (16:19 +0200)]
test: add script to set credentials for cdma connection

13 years agogobi: Add timeout for modem enabling handling
Marcel Holtmann [Wed, 27 Jul 2011 14:29:52 +0000 (16:29 +0200)]
gobi: Add timeout for modem enabling handling

Some GOBI cards stop responding to AT commands when RFKILL has been
enabled. In that case just timeout after 5 seconds.

13 years agoatmodem: Add vendor entry for SpeedUp modems
Philippe Nunes [Fri, 22 Jul 2011 16:15:26 +0000 (18:15 +0200)]
atmodem: Add vendor entry for SpeedUp modems

13 years agogobi: Fix error handling with device enabling and disabling
Marcel Holtmann [Wed, 27 Jul 2011 14:09:11 +0000 (16:09 +0200)]
gobi: Fix error handling with device enabling and disabling

13 years agohuawei: add a debug info to help debugging.
Bertrand Aygon [Wed, 27 Jul 2011 12:02:19 +0000 (14:02 +0200)]
huawei: add a debug info to help debugging.

13 years agohuaweicdma: open 2 ttys, to use a dedicated one for PPP.
Bertrand Aygon [Wed, 27 Jul 2011 08:07:38 +0000 (10:07 +0200)]
huaweicdma: open 2 ttys, to use a dedicated one for PPP.

13 years agospeedupcdma: open 2 ttys, to use a dedicated one for PPP.
Bertrand Aygon [Wed, 27 Jul 2011 08:06:57 +0000 (10:06 +0200)]
speedupcdma: open 2 ttys, to use a dedicated one for PPP.

13 years agonovatel: Fix missing error handling for CFUN failure
Marcel Holtmann [Wed, 27 Jul 2011 13:46:30 +0000 (15:46 +0200)]
novatel: Fix missing error handling for CFUN failure

13 years agosierra: Fix disable and enable error handling
Marcel Holtmann [Wed, 27 Jul 2011 13:41:37 +0000 (15:41 +0200)]
sierra: Fix disable and enable error handling

13 years agonokia: Remove some unneeded NULL pointer checks
Marcel Holtmann [Wed, 27 Jul 2011 13:37:21 +0000 (15:37 +0200)]
nokia: Remove some unneeded NULL pointer checks

13 years agohfpmodem: fix network status
Frédéric Danis [Tue, 26 Jul 2011 14:56:53 +0000 (16:56 +0200)]
hfpmodem: fix network status

When receiving roaming indicator update to 0 (no roaming) network
registration status should be updated with latest value of service
indicator.

13 years agohfpmodem: fix callheld indicator
Frédéric Danis [Mon, 25 Jul 2011 14:42:19 +0000 (16:42 +0200)]
hfpmodem: fix callheld indicator

Callheld move from 1 (active and held calls) to 2 (all calls on hold) may
result of:
- active call has been dropped by remote,
- an intermediate state during a call swap which will be followed by a
  move back to 1.
So, wait a little before checking calls state.

13 years agostk: Fix missing break statement
Denis Kenzior [Tue, 26 Jul 2011 03:59:06 +0000 (22:59 -0500)]
stk: Fix missing break statement

13 years agovoicecall: Be more paranoid and null terminate
Denis Kenzior [Tue, 26 Jul 2011 03:57:08 +0000 (22:57 -0500)]
voicecall: Be more paranoid and null terminate

13 years agovoicecall: Use defined constants
Denis Kenzior [Tue, 26 Jul 2011 03:55:01 +0000 (22:55 -0500)]
voicecall: Use defined constants

13 years agostk: Make sure to set cancel_cmd
Denis Kenzior [Tue, 26 Jul 2011 03:45:55 +0000 (22:45 -0500)]
stk: Make sure to set cancel_cmd

For handled commands, in case the terminal response is not reported by
the modem, we must set the cancel_cmd variable so the command is
canceled properly.

This patch also modifies the behavior so that pending_cmd is freed,
since stk_proactive_command_cancel expects cancel_cmd to be set if
pending_cmd is not NULL.

13 years agostk: Remove code that does nothing
Denis Kenzior [Tue, 26 Jul 2011 03:25:05 +0000 (22:25 -0500)]
stk: Remove code that does nothing

13 years agostk: Fix possible crash
Denis Kenzior [Tue, 26 Jul 2011 03:20:43 +0000 (22:20 -0500)]
stk: Fix possible crash

We can't call stk_command_free on a NULL object

13 years agostk: Handle set up call in handled_notify
Jeevaka Badrappan [Mon, 25 Jul 2011 18:15:27 +0000 (11:15 -0700)]
stk: Handle set up call in handled_notify

13 years agovoicecall: api for set/clear alpha and icon id
Jeevaka Badrappan [Mon, 25 Jul 2011 18:15:26 +0000 (11:15 -0700)]
voicecall: api for set/clear alpha and icon id

13 years agogatchat: Fix port settings and debugging for QCDM test tool
Marcel Holtmann [Tue, 26 Jul 2011 14:00:15 +0000 (16:00 +0200)]
gatchat: Fix port settings and debugging for QCDM test tool

13 years agogatchat: Add helper for opening QCDM ports
Marcel Holtmann [Tue, 26 Jul 2011 13:59:47 +0000 (15:59 +0200)]
gatchat: Add helper for opening QCDM ports