platform/upstream/ofono.git
13 years agombmmodem: Remove useless NULL checks before g_free
Marcel Holtmann [Mon, 16 Aug 2010 20:09:09 +0000 (22:09 +0200)]
mbmmodem: Remove useless NULL checks before g_free

13 years agohsomodem: Remove useless NULL checks before g_free
Marcel Holtmann [Mon, 16 Aug 2010 20:08:08 +0000 (22:08 +0200)]
hsomodem: Remove useless NULL checks before g_free

13 years agohfpmodem: Remove useless NULL checks before g_free
Marcel Holtmann [Mon, 16 Aug 2010 20:06:00 +0000 (22:06 +0200)]
hfpmodem: Remove useless NULL checks before g_free

13 years agoussd: Use cb_data instead of custom structure
Denis Kenzior [Mon, 16 Aug 2010 19:57:00 +0000 (14:57 -0500)]
ussd: Use cb_data instead of custom structure

13 years agoatmodem: Remove useless NULL checks before g_free
Marcel Holtmann [Mon, 16 Aug 2010 20:02:01 +0000 (22:02 +0200)]
atmodem: Remove useless NULL checks before g_free

13 years agogatchat: Skip string contents in extract_line
Denis Kenzior [Mon, 16 Aug 2010 18:11:44 +0000 (13:11 -0500)]
gatchat: Skip string contents in extract_line

13 years agogatchat: Handle embedded \r and \n in responses
Denis Kenzior [Mon, 16 Aug 2010 17:44:20 +0000 (12:44 -0500)]
gatchat: Handle embedded \r and \n in responses

13 years agoAdd another test script for USSD transactions
Marcel Holtmann [Mon, 16 Aug 2010 17:09:30 +0000 (19:09 +0200)]
Add another test script for USSD transactions

13 years agogatutil: Handle non-printable characters
Denis Kenzior [Mon, 16 Aug 2010 16:25:19 +0000 (11:25 -0500)]
gatutil: Handle non-printable characters

Signed arithmetic and shifts do not work well...

13 years agoussd: Be extra pedantic trying to Cancel
Denis Kenzior [Mon, 16 Aug 2010 16:02:05 +0000 (11:02 -0500)]
ussd: Be extra pedantic trying to Cancel

If we initiated a Respond() transaction, but have not returned from the
callback.  Or if we already called Cancel and it hasn't returned yet.

13 years agodoc: update USSD api for possible errors
Denis Kenzior [Mon, 16 Aug 2010 15:41:13 +0000 (10:41 -0500)]
doc: update USSD api for possible errors

13 years agoussd: Properly handle cancellations
Denis Kenzior [Mon, 16 Aug 2010 15:39:39 +0000 (10:39 -0500)]
ussd: Properly handle cancellations

13 years agodbus: Add Canceled error
Denis Kenzior [Mon, 16 Aug 2010 15:30:03 +0000 (10:30 -0500)]
dbus: Add Canceled error

13 years agoAdd simple test script to cancel USSD transactions
Marcel Holtmann [Mon, 16 Aug 2010 15:07:28 +0000 (17:07 +0200)]
Add simple test script to cancel USSD transactions

13 years agozte: Add support for sms, cbs, ussd and phonebook atoms
Marcel Holtmann [Mon, 16 Aug 2010 13:28:31 +0000 (15:28 +0200)]
zte: Add support for sms, cbs, ussd and phonebook atoms

13 years agozte: Add initial support for devinfo, sim and netreg atoms
Marcel Holtmann [Mon, 16 Aug 2010 13:16:01 +0000 (15:16 +0200)]
zte: Add initial support for devinfo, sim and netreg atoms

13 years agonetreg: Add quirk for ZTE modem without CIND support
Marcel Holtmann [Mon, 16 Aug 2010 13:14:17 +0000 (15:14 +0200)]
netreg: Add quirk for ZTE modem without CIND support

13 years agoFix typo in Huawei port detection
Marcel Holtmann [Mon, 16 Aug 2010 12:49:54 +0000 (14:49 +0200)]
Fix typo in Huawei port detection

13 years agoAdd udev detection support for ZTE modems
Marcel Holtmann [Mon, 16 Aug 2010 12:49:04 +0000 (14:49 +0200)]
Add udev detection support for ZTE modems

13 years agoAdd skeleton for ZTE modem support
Marcel Holtmann [Mon, 16 Aug 2010 12:48:41 +0000 (14:48 +0200)]
Add skeleton for ZTE modem support

13 years agoatutil: Don't try parsing lac/ci when unregistered
Denis Kenzior [Fri, 13 Aug 2010 23:29:42 +0000 (18:29 -0500)]
atutil: Don't try parsing lac/ci when unregistered

13 years agogprs: Fix up some attach/detach logic issues
Denis Kenzior [Fri, 13 Aug 2010 23:17:04 +0000 (18:17 -0500)]
gprs: Fix up some attach/detach logic issues

Parts of it are related to Meego bug 5193, namely that we don't properly
signal the Attached status when powering down.

Another part of the fix is that we automatically detach in case our
conditions are not fulfilled if the modem attaches automatically (e.g.
Auto-Attach is enabled)

13 years agonwemodem: Fix up radio-settings driver
Denis Kenzior [Fri, 13 Aug 2010 18:57:18 +0000 (13:57 -0500)]
nwemodem: Fix up radio-settings driver

13 years agohsomodem: Fix up radio-settings driver
Denis Kenzior [Fri, 13 Aug 2010 18:53:25 +0000 (13:53 -0500)]
hsomodem: Fix up radio-settings driver

13 years agostemodem: Copy if_caif.h from 2.6.36 RC
Sjur Brændeland [Fri, 13 Aug 2010 10:53:10 +0000 (12:53 +0200)]
stemodem: Copy if_caif.h from 2.6.36 RC

13 years agobuild: Make distcheck pass
Sjur Brændeland [Fri, 13 Aug 2010 10:53:09 +0000 (12:53 +0200)]
build: Make distcheck pass

distcheck fails due to rename of dataconnectionmanager-api.txt

13 years agovoicecall: Make hangup_all work for 911 calls
Denis Kenzior [Fri, 13 Aug 2010 15:57:20 +0000 (10:57 -0500)]
voicecall: Make hangup_all work for 911 calls

13 years agoTODO: Mention the proposed Lockdown property name
Marcel Holtmann [Fri, 13 Aug 2010 15:56:51 +0000 (17:56 +0200)]
TODO: Mention the proposed Lockdown property name

13 years agoTODO: Add GPS power atom task
Denis Kenzior [Fri, 13 Aug 2010 15:36:40 +0000 (10:36 -0500)]
TODO: Add GPS power atom task

13 years agoTODO: Add ofono_sim_ready_notify task
Denis Kenzior [Fri, 13 Aug 2010 15:33:53 +0000 (10:33 -0500)]
TODO: Add ofono_sim_ready_notify task

13 years agoTODO: update with hardware dependencies
Denis Kenzior [Fri, 13 Aug 2010 15:21:03 +0000 (10:21 -0500)]
TODO: update with hardware dependencies

13 years agostemodem: register should not be called from probe
Denis Kenzior [Fri, 13 Aug 2010 04:46:02 +0000 (23:46 -0500)]
stemodem: register should not be called from probe

13 years agostemodem: Use g_at_chat_clone
Denis Kenzior [Fri, 13 Aug 2010 04:44:07 +0000 (23:44 -0500)]
stemodem: Use g_at_chat_clone

13 years agostemodem: Fix minor whitespace issue
Denis Kenzior [Fri, 13 Aug 2010 04:41:19 +0000 (23:41 -0500)]
stemodem: Fix minor whitespace issue

13 years agonwemodem: Use g_at_chat_clone
Denis Kenzior [Fri, 13 Aug 2010 04:40:47 +0000 (23:40 -0500)]
nwemodem: Use g_at_chat_clone

13 years agombmmodem: Use g_at_chat_clone
Denis Kenzior [Fri, 13 Aug 2010 04:40:00 +0000 (23:40 -0500)]
mbmmodem: Use g_at_chat_clone

13 years agohsomodem: Use g_at_chat_clone
Denis Kenzior [Fri, 13 Aug 2010 04:37:52 +0000 (23:37 -0500)]
hsomodem: Use g_at_chat_clone

13 years agocalypso: Use g_at_chat_clone
Denis Kenzior [Fri, 13 Aug 2010 04:34:44 +0000 (23:34 -0500)]
calypso: Use g_at_chat_clone

13 years agoatmodem: Use g_at_chat_clone
Denis Kenzior [Thu, 12 Aug 2010 21:40:40 +0000 (16:40 -0500)]
atmodem: Use g_at_chat_clone

13 years agogatchat: Add g_at_chat_clone
Denis Kenzior [Thu, 12 Aug 2010 15:14:53 +0000 (10:14 -0500)]
gatchat: Add g_at_chat_clone

This function will clone a chat object, but will create a new group
internally.

13 years agogatchat: Make GAtChat a facade for struct at_chat
Denis Kenzior [Thu, 12 Aug 2010 15:05:01 +0000 (10:05 -0500)]
gatchat: Make GAtChat a facade for struct at_chat

Each GAtChat object is now simply a representation of a set of
outstanding commands and registered unsolicited notification handlers.
This makes it easy to cancel entire groups, e.g. by canceling the
GAtChat object itself rather than forcing the user into tracking all
relevant g_at_chat_register and g_at_chat_send ids.

13 years agophonesim: Support set_online/post_online
Denis Kenzior [Thu, 12 Aug 2010 19:56:18 +0000 (14:56 -0500)]
phonesim: Support set_online/post_online

13 years agomodem: Be consistent when naming callback typedefs
Denis Kenzior [Thu, 12 Aug 2010 19:52:37 +0000 (14:52 -0500)]
modem: Be consistent when naming callback typedefs

13 years agodoc: Describe EmergencyNumbers property
Denis Kenzior [Thu, 12 Aug 2010 18:22:50 +0000 (13:22 -0500)]
doc: Describe EmergencyNumbers property

13 years agovoicecall: Relax restriction for hangup_active
Denis Kenzior [Thu, 12 Aug 2010 18:14:05 +0000 (13:14 -0500)]
voicecall: Relax restriction for hangup_active

If hangup_active is present, then a single active call in a 3-way
situation is hung up using hangup_active.

13 years agovoicecall: Move some stuff around
Denis Kenzior [Thu, 12 Aug 2010 18:13:53 +0000 (13:13 -0500)]
voicecall: Move some stuff around

13 years agostedriver: Copy caif_socket.h from 2.6.36 RC
Sjur Brændeland [Mon, 9 Aug 2010 21:29:39 +0000 (23:29 +0200)]
stedriver: Copy caif_socket.h from 2.6.36 RC

Copied include/linux/caif/caif_socket.h and
added AF_CAIF, PF_CAIF and SOL_CAIF definitions
found in linux/include/socket.h.

13 years agostedriver: remove unsupported CAIF socket ioctls
Sjur Brændeland [Mon, 9 Aug 2010 21:29:38 +0000 (23:29 +0200)]
stedriver: remove unsupported CAIF socket ioctls

13 years agovoicecall: Don't hangup waiting calls
Denis Kenzior [Wed, 11 Aug 2010 22:55:16 +0000 (17:55 -0500)]
voicecall: Don't hangup waiting calls

During hangup_all operation.  For multiparty hangups, waiting calls are
not part of the mpty call.

13 years agovoicecall: Make logic bit cleaner
Denis Kenzior [Wed, 11 Aug 2010 22:45:39 +0000 (17:45 -0500)]
voicecall: Make logic bit cleaner

13 years agovoicecall: Minor style issues
Denis Kenzior [Wed, 11 Aug 2010 22:44:03 +0000 (17:44 -0500)]
voicecall: Minor style issues

13 years agovoicecall: Reflow the logic of voicecall_hangup
Denis Kenzior [Wed, 11 Aug 2010 22:37:45 +0000 (17:37 -0500)]
voicecall: Reflow the logic of voicecall_hangup

13 years agovoicecall: Add support for function hangup_all
Sjur Brændeland [Mon, 9 Aug 2010 21:18:38 +0000 (23:18 +0200)]
voicecall: Add support for function hangup_all

This patch fixes problem for modems that cannot terminate
DIALING/ALERTING calls with CHUP=1X. The main change is that
voicecall driver's hangup function is split into the functions
hangup_all and hangup_active.

Changes:
- In cases where hangup previously was used, hangup_all is used
  if implemented otherwise hangup_active is used.
- Call in state DIALING/ALERTING is released with hangup_active if
  implemented.
- manager_hangup_all will simply call hangup_all if implemented.
- manager_hangup_all will release calls in state
  ALERTING/DIALING/INCOMING using hangup_active otherwise
  release_specific.

13 years agovoicecall: Rename hangup to hangup_active
Sjur Brændeland [Mon, 9 Aug 2010 21:18:37 +0000 (23:18 +0200)]
voicecall: Rename hangup to hangup_active

13 years agodoc: Update connection manager API (GPRS context)
Marcel Holtmann [Wed, 11 Aug 2010 18:39:47 +0000 (14:39 -0400)]
doc: Update connection manager API (GPRS context)

13 years agodoc: Rename message manager API documentation
Marcel Holtmann [Wed, 11 Aug 2010 18:33:33 +0000 (14:33 -0400)]
doc: Rename message manager API documentation

13 years agodoc: Update network registration and operator API
Marcel Holtmann [Wed, 11 Aug 2010 18:31:43 +0000 (14:31 -0400)]
doc: Update network registration and operator API

Change the network registration API to reflect simplification in the
operator selection and scanning handling for applications.

13 years agodoc: update voice call API documentation
Marcel Holtmann [Wed, 11 Aug 2010 18:26:14 +0000 (14:26 -0400)]
doc: update voice call API documentation

Reflect required changes to simplify the voice call API usage.

13 years agoAdd extra debug statements to MBM STK atom driver
Marcel Holtmann [Wed, 11 Aug 2010 18:18:44 +0000 (14:18 -0400)]
Add extra debug statements to MBM STK atom driver

13 years agoAdd a few debug statements to STK core
Marcel Holtmann [Wed, 11 Aug 2010 18:18:13 +0000 (14:18 -0400)]
Add a few debug statements to STK core

13 years agoUse permissive parser for MBM since otherwise STK causes problems
Marcel Holtmann [Wed, 11 Aug 2010 01:42:00 +0000 (21:42 -0400)]
Use permissive parser for MBM since otherwise STK causes problems

13 years agoAdd SimToolkitAgent interface to D-Bus configuration
Marcel Holtmann [Wed, 11 Aug 2010 01:38:16 +0000 (21:38 -0400)]
Add SimToolkitAgent interface to D-Bus configuration

13 years agoBuild CAIF plugin only when AT modem support is enabled
Marcel Holtmann [Tue, 10 Aug 2010 20:34:13 +0000 (16:34 -0400)]
Build CAIF plugin only when AT modem support is enabled

13 years agoAlways built and include the modemconf plugin
Marcel Holtmann [Tue, 10 Aug 2010 20:28:00 +0000 (16:28 -0400)]
Always built and include the modemconf plugin

13 years agoFix context processing test script when no gateway is provided
Marcel Holtmann [Tue, 10 Aug 2010 20:18:18 +0000 (16:18 -0400)]
Fix context processing test script when no gateway is provided

13 years agoFix GPRS context IP configuration issue with ISI modems
Marcel Holtmann [Tue, 10 Aug 2010 20:09:38 +0000 (16:09 -0400)]
Fix GPRS context IP configuration issue with ISI modems

13 years agoFix isimodem call forwarding.
Pekka Pessi [Mon, 9 Aug 2010 18:32:17 +0000 (21:32 +0300)]
Fix isimodem call forwarding.

13 years agoAdd test scripts to to lock and unlock pin
Kalle Valo [Mon, 9 Aug 2010 14:22:31 +0000 (17:22 +0300)]
Add test scripts to to lock and unlock pin

13 years agogprs: Fix release cid in gprs_deactive_for_remove
Zhenhua Zhang [Mon, 9 Aug 2010 09:28:11 +0000 (17:28 +0800)]
gprs: Fix release cid in gprs_deactive_for_remove

Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.

13 years agocalypso: Couple of minor style issues
Denis Kenzior [Fri, 6 Aug 2010 17:11:22 +0000 (12:11 -0500)]
calypso: Couple of minor style issues

13 years agocalypso: Remove un-needed includes
Denis Kenzior [Fri, 6 Aug 2010 17:09:25 +0000 (12:09 -0500)]
calypso: Remove un-needed includes

13 years agocalypso: Create STK atom and reorder initialisation
Andrzej Zaborowski [Thu, 5 Aug 2010 17:31:58 +0000 (19:31 +0200)]
calypso: Create STK atom and reorder initialisation

See comment in the code.  The Sim Toolkit apps seem to work rather
reliably with this, tested on both PIN-enabled and unprotected cards.

13 years agoatutil: Parse CMS and CME error codes
Andrzej Zaborowski [Thu, 5 Aug 2010 17:30:55 +0000 (19:30 +0200)]
atutil: Parse CMS and CME error codes

13 years agocalypso: Enable AT extended error codes
Andrzej Zaborowski [Thu, 5 Aug 2010 17:30:55 +0000 (19:30 +0200)]
calypso: Enable AT extended error codes

The STK driver tries to interpret the codes.

13 years agocalypso: Add a Calypso STK driver
Andrzej Zaborowski [Thu, 5 Aug 2010 17:30:54 +0000 (19:30 +0200)]
calypso: Add a Calypso STK driver

13 years agocalypso: Check if SIM is present on modem startup
Andrzej Zaborowski [Thu, 5 Aug 2010 17:30:53 +0000 (19:30 +0200)]
calypso: Check if SIM is present on modem startup

Like in case of MBM modem, the SIM slot is not easily accessible
while the device is running so we assume there's no need to check
for SIM presence after startup.

13 years agophonesim: Don't use VENDOR_PHONESIM for calypso
Andrzej Zaborowski [Thu, 5 Aug 2010 17:30:52 +0000 (19:30 +0200)]
phonesim: Don't use VENDOR_PHONESIM for calypso

Also move the STK initialisation to post-sim because it is more logical
there (even if it makes no difference under phonesim).

13 years agohuawei: Fix SIM state logic
João Paulo Rechi Vita [Thu, 5 Aug 2010 19:13:08 +0000 (16:13 -0300)]
huawei: Fix SIM state logic

Add support for voice-only SIM cards and enable phonebook atom for
non-voice modems.

13 years agodoc: Update coding-style.txt for enums
Denis Kenzior [Thu, 5 Aug 2010 19:04:24 +0000 (14:04 -0500)]
doc: Update coding-style.txt for enums

13 years agosms: struct tx_queue_entry: add a destructor
Inaky Perez-Gonzalez [Tue, 3 Aug 2010 23:50:55 +0000 (16:50 -0700)]
sms: struct tx_queue_entry: add a destructor

Introduce a destructor function to encapsulate all the release steps
for this data type, as more are to be added later.

13 years agostorage: make write_file transaction-safe
Inaky Perez-Gonzalez [Tue, 3 Aug 2010 23:50:50 +0000 (16:50 -0700)]
storage: make write_file transaction-safe

write_file(), as written wasn't transaction-safe; a crash bewtween a
file being open and the buffer being written before a safe close would
leave the file with a set of undetermined contents.

Modified to the file is written to a temporary file name; once
completed, it is renamed to the final name. This way, a crash in the
middle doesn't leave half-baked files.

13 years agodoc: Fixup some long line / space at eol issues
Denis Kenzior [Thu, 5 Aug 2010 16:21:25 +0000 (11:21 -0500)]
doc: Fixup some long line / space at eol issues

13 years agobluetooth: define DBUS_TIMEOUT macro
Gustavo F. Padovan [Wed, 4 Aug 2010 10:22:10 +0000 (07:22 -0300)]
bluetooth: define DBUS_TIMEOUT macro

13 years agosim: Use less space for locked_pins
Denis Kenzior [Thu, 5 Aug 2010 15:19:04 +0000 (10:19 -0500)]
sim: Use less space for locked_pins

Use only as required, since we only track PINs in this one, not PUKs

13 years agosim: Fix LockedPins in case SIM wants a PUK first
Denis Kenzior [Thu, 5 Aug 2010 15:00:57 +0000 (10:00 -0500)]
sim: Fix LockedPins in case SIM wants a PUK first

In the case that oFono is started with the SIM asking for a PUK, we
don't report LockedPins properly.

13 years agotest: Update simple-agent with new capabilities
Denis Kenzior [Wed, 4 Aug 2010 20:14:41 +0000 (15:14 -0500)]
test: Update simple-agent with new capabilities

13 years agostkagent: No need to split these on two lines
Denis Kenzior [Wed, 4 Aug 2010 19:49:42 +0000 (14:49 -0500)]
stkagent: No need to split these on two lines

13 years agostk: Rip out the HELP stuff for now
Denis Kenzior [Wed, 4 Aug 2010 19:46:47 +0000 (14:46 -0500)]
stk: Rip out the HELP stuff for now

We're not supporting it in the current API and doing so is actually
very painful.

13 years agostkagent: Introduce CALLBACK_END macro
Denis Kenzior [Wed, 4 Aug 2010 19:40:08 +0000 (14:40 -0500)]
stkagent: Introduce CALLBACK_END macro

13 years agostk: Handle the Get Input proactive command
Andrzej Zaborowski [Wed, 4 Aug 2010 04:55:04 +0000 (06:55 +0200)]
stk: Handle the Get Input proactive command

13 years agostkagent: Implement RequestInput/RequestDigits
Andrzej Zaborowski [Wed, 4 Aug 2010 04:55:03 +0000 (06:55 +0200)]
stkagent: Implement RequestInput/RequestDigits

13 years agostk: Handle the Get Inkey proactive command
Andrzej Zaborowski [Wed, 4 Aug 2010 04:55:02 +0000 (06:55 +0200)]
stk: Handle the Get Inkey proactive command

13 years agostkagent: Implement RequestConfirmation/Key/Digit
Andrzej Zaborowski [Wed, 4 Aug 2010 04:55:01 +0000 (06:55 +0200)]
stkagent: Implement RequestConfirmation/Key/Digit

13 years agodoc: Update standards.txt
Denis Kenzior [Tue, 3 Aug 2010 15:55:07 +0000 (10:55 -0500)]
doc: Update standards.txt

13 years agoRelease 0.26 0.26
Marcel Holtmann [Mon, 2 Aug 2010 20:11:43 +0000 (13:11 -0700)]
Release 0.26

13 years agohuawei: fix double include of GPRS header
João Paulo Rechi Vita [Mon, 2 Aug 2010 18:44:41 +0000 (15:44 -0300)]
huawei: fix double include of GPRS header

13 years agoFix busylooped in ppp_disconnect for huawei modem
Zhenhua Zhang [Wed, 28 Jul 2010 00:25:26 +0000 (08:25 +0800)]
Fix busylooped in ppp_disconnect for huawei modem

Huawei modem closes the modem port after PPP disconnect. So the channel
of gatchat is NULL in ppp_disconnect. In such case, we resume the chat
and it causes huawei_disconnect() get called and the gprs context is
removed later.

Before removing this gprs context, we should reply the pending DBus
message to the client.

13 years agostkagent: Remove stk_agent_busy
Denis Kenzior [Fri, 30 Jul 2010 23:59:44 +0000 (18:59 -0500)]
stkagent: Remove stk_agent_busy

13 years agostk: Remove unneeded check
Denis Kenzior [Fri, 30 Jul 2010 23:50:38 +0000 (18:50 -0500)]
stk: Remove unneeded check

The agent_remove_source will be canceled as part of the session agent
destruction notify.

13 years agostk: Fix typo in comment
Denis Kenzior [Fri, 30 Jul 2010 23:34:49 +0000 (18:34 -0500)]
stk: Fix typo in comment