platform/upstream/ofono.git
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

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

14 years agoAdd utilities to parse CREG/CGREG
Denis Kenzior [Wed, 9 Dec 2009 18:49:43 +0000 (12:49 -0600)]
Add utilities to parse CREG/CGREG

These are nearly identical and can be shared between gprs/netreg

14 years agoStyle: Fix some remaining style issues in atmodem
Denis Kenzior [Wed, 9 Dec 2009 08:46:33 +0000 (02:46 -0600)]
Style: Fix some remaining style issues in atmodem

14 years agoStyle: Fix style issues in hfpmodem
Denis Kenzior [Wed, 9 Dec 2009 08:41:16 +0000 (02:41 -0600)]
Style: Fix style issues in hfpmodem

14 years agoNew modem desc for f3607g modem in Samos platform
Martin Xu [Wed, 9 Dec 2009 07:18:48 +0000 (15:18 +0800)]
New modem desc for f3607g modem in Samos platform

14 years agoAdd clip_timeout for notify incoming call
Zhenhua Zhang [Wed, 9 Dec 2009 05:07:35 +0000 (13:07 +0800)]
Add clip_timeout for notify incoming call

Schedule a clip_timeout in the ring notify. If CLIP comes right
after RING, we cancel the timer. If doesn't, we notify the call
without phone number.

14 years agoAdd poll_clcc if we are in multiparty call
Zhenhua Zhang [Wed, 9 Dec 2009 00:59:13 +0000 (08:59 +0800)]
Add poll_clcc if we are in multiparty call

If we are in multiparty call, remote AG won't update indicator
if any call in multiparty call is released by CHLD=1x. So we
have to poll it periodically.

14 years agoAdd multiparty call support for hfpmodem
Zhenhua Zhang [Wed, 9 Dec 2009 02:16:53 +0000 (10:16 +0800)]
Add multiparty call support for hfpmodem

Add CHLD=3, 2x and 4 to create multiparty call, private chat and
call transfer.

14 years agoAdd hfp_release_specific to release specific call
Zhenhua Zhang [Wed, 9 Dec 2009 00:55:55 +0000 (08:55 +0800)]
Add hfp_release_specific to release specific call

Use AT+CHLD=1x to release a specific call if AG supports that.

14 years agoStyle: Remove empty line
Denis Kenzior [Wed, 9 Dec 2009 04:17:51 +0000 (22:17 -0600)]
Style: Remove empty line

14 years agoFix: Reset active contexts if gprs is detached
Denis Kenzior [Tue, 8 Dec 2009 23:19:40 +0000 (17:19 -0600)]
Fix: Reset active contexts if gprs is detached

When we lose network registration or are forcefully detached from the
network we must reset all active contexts to inactive.

14 years agoReset context settings when context is deactivated
Denis Kenzior [Tue, 8 Dec 2009 23:19:23 +0000 (17:19 -0600)]
Reset context settings when context is deactivated

14 years agoStyle: Remove extra blank line
Denis Kenzior [Tue, 8 Dec 2009 23:11:35 +0000 (17:11 -0600)]
Style: Remove extra blank line

14 years agoFix update hfp_hangup to release active call
Zhenhua Zhang [Tue, 8 Dec 2009 10:13:09 +0000 (18:13 +0800)]
Fix update hfp_hangup to release active call

In HFP, AT+CHUP is intended to release the current active call.

14 years agoFix: Change the order of register & set_powered
Denis Kenzior [Tue, 8 Dec 2009 10:26:24 +0000 (04:26 -0600)]
Fix: Change the order of register & set_powered

14 years agoFix: Be more paranoid even during shutdown
Denis Kenzior [Tue, 8 Dec 2009 10:25:43 +0000 (04:25 -0600)]
Fix: Be more paranoid even during shutdown

14 years agoFix: Print a warning in set_powered
Denis Kenzior [Tue, 8 Dec 2009 10:24:38 +0000 (04:24 -0600)]
Fix: Print a warning in set_powered

If ofono_modem_set_powered is used with no driver set, print a warning

14 years agoFix remove all atoms in ofono_modem_set_powered
Zhenhua Zhang [Tue, 8 Dec 2009 10:13:08 +0000 (18:13 +0800)]
Fix remove all atoms in ofono_modem_set_powered

We should remove all atoms when we disable the modem. In function
set_powered, we remove all atoms if modem is powered down by dbus
call.

14 years agoRemove: Unused code related to modem powered prefs
Denis Kenzior [Tue, 8 Dec 2009 10:03:30 +0000 (04:03 -0600)]
Remove: Unused code related to modem powered prefs

14 years agoRevert: Previous powered patch
Denis Kenzior [Tue, 8 Dec 2009 09:44:55 +0000 (03:44 -0600)]
Revert: Previous powered patch

14 years agoHarden the CGREG parsing function
Denis Kenzior [Tue, 8 Dec 2009 09:43:54 +0000 (03:43 -0600)]
Harden the CGREG parsing function

Sometimes the CGREG query and CGREG unsolicited notification get
intermixed.  Since they have the same prefix, GAtChat clumps them
together.  Make sure the parser skips the unsolicited notification.

14 years agoFix a crash during isimodem initialization
Alexander Kanavin [Tue, 8 Dec 2009 12:36:45 +0000 (14:36 +0200)]
Fix a crash during isimodem initialization

14 years agoRegister to MBM ERINFO notification
Denis Kenzior [Tue, 8 Dec 2009 00:35:56 +0000 (18:35 -0600)]
Register to MBM ERINFO notification

This is purely for information gathering purposes

14 years agoAdd experimental Option tech parsing
Denis Kenzior [Mon, 7 Dec 2009 23:14:57 +0000 (17:14 -0600)]
Add experimental Option tech parsing

Option seems to implement their own commands for network technology
reporting.  This is a first attempt to implement this for data gathering
purposes.

14 years agoAdd HSO quirk to hso modem driver
Denis Kenzior [Mon, 7 Dec 2009 21:10:03 +0000 (15:10 -0600)]
Add HSO quirk to hso modem driver

14 years agoAdd support for HSO signal quality reporting
Denis Kenzior [Mon, 7 Dec 2009 21:09:25 +0000 (15:09 -0600)]
Add support for HSO signal quality reporting

14 years agoAdd Option HSO quirk
Denis Kenzior [Mon, 7 Dec 2009 21:09:52 +0000 (15:09 -0600)]
Add Option HSO quirk

14 years agoFix: Sometimes Option modems don't return info
Denis Kenzior [Mon, 7 Dec 2009 20:53:18 +0000 (14:53 -0600)]
Fix: Sometimes Option modems don't return info

When querying CGMI the Option modems sometimes just return OK, with no
manufacturer information given.

14 years agoRefactor: Calypso unsolicited signal strength
Denis Kenzior [Mon, 7 Dec 2009 18:27:36 +0000 (12:27 -0600)]
Refactor: Calypso unsolicited signal strength

14 years agoRelease 0.13 0.13
Marcel Holtmann [Sun, 6 Dec 2009 22:06:10 +0000 (23:06 +0100)]
Release 0.13

14 years agoRequire udev-143 or later
Marcel Holtmann [Sat, 5 Dec 2009 04:49:47 +0000 (05:49 +0100)]
Require udev-143 or later

14 years agoCheck that signalfd() is supported
Marcel Holtmann [Sat, 5 Dec 2009 04:38:37 +0000 (05:38 +0100)]
Check that signalfd() is supported

14 years agoDon't generate multiple g_sources, 1 is enough
Denis Kenzior [Sat, 5 Dec 2009 02:51:19 +0000 (20:51 -0600)]
Don't generate multiple g_sources, 1 is enough

14 years agoUse signalfd for signal handling
Denis Kenzior [Sat, 5 Dec 2009 02:44:04 +0000 (20:44 -0600)]
Use signalfd for signal handling

14 years agoMake sure to list calls in HFP voicecall driver
Denis Kenzior [Fri, 4 Dec 2009 22:51:53 +0000 (16:51 -0600)]
Make sure to list calls in HFP voicecall driver

14 years agoFix release clcc_source when voicecall is removed
Zhenhua Zhang [Fri, 4 Dec 2009 03:22:15 +0000 (11:22 +0800)]
Fix release clcc_source when voicecall is removed

Release the timer to avoid invoking the callback function after
voicecall driver is removed.

14 years agoAdd hfp_send_dtmf to send tones for hfpmodem
Zhenhua Zhang [Fri, 4 Dec 2009 03:22:14 +0000 (11:22 +0800)]
Add hfp_send_dtmf to send tones for hfpmodem

14 years agoOptimize: call list signal emission
Denis Kenzior [Fri, 4 Dec 2009 22:34:01 +0000 (16:34 -0600)]
Optimize: call list signal emission

14 years agoRefactor: Run CLCC when initializing
Denis Kenzior [Fri, 4 Dec 2009 22:28:08 +0000 (16:28 -0600)]
Refactor: Run CLCC when initializing

When voicecall atom is initialized, we should run a CLCC query to
populate our call list.  This also notifies the core of the new calls

14 years agoUpdate atmodem voicecall driver to new world order
Denis Kenzior [Fri, 4 Dec 2009 22:27:50 +0000 (16:27 -0600)]
Update atmodem voicecall driver to new world order

14 years agoFix: Style
Denis Kenzior [Fri, 4 Dec 2009 22:27:14 +0000 (16:27 -0600)]
Fix: Style

14 years agoUpdate HFP voicecall driver to new world order
Denis Kenzior [Fri, 4 Dec 2009 22:26:42 +0000 (16:26 -0600)]
Update HFP voicecall driver to new world order

14 years agoRemove: at_util callid APIs are no longer necessary
Denis Kenzior [Fri, 4 Dec 2009 22:26:01 +0000 (16:26 -0600)]
Remove: at_util callid APIs are no longer necessary

14 years agoUpdate voicecall atom to use new callid api
Denis Kenzior [Fri, 4 Dec 2009 22:25:41 +0000 (16:25 -0600)]
Update voicecall atom to use new callid api

14 years agoGet rid of list_calls in hfp driver
Denis Kenzior [Fri, 4 Dec 2009 22:23:40 +0000 (16:23 -0600)]
Get rid of list_calls in hfp driver

14 years agoGet rid of list_calls in calypso driver
Denis Kenzior [Fri, 4 Dec 2009 22:23:10 +0000 (16:23 -0600)]
Get rid of list_calls in calypso driver

14 years agoGet rid of list_calls in isi driver
Denis Kenzior [Fri, 4 Dec 2009 22:22:27 +0000 (16:22 -0600)]
Get rid of list_calls in isi driver

14 years agoAdd utility to get the next free call id
Denis Kenzior [Fri, 4 Dec 2009 22:21:02 +0000 (16:21 -0600)]
Add utility to get the next free call id

14 years agoRefactor: call id allocation / release
Denis Kenzior [Fri, 4 Dec 2009 22:20:40 +0000 (16:20 -0600)]
Refactor: call id allocation / release

14 years agoRefactor: Remove list_calls from voicecall driver
Denis Kenzior [Fri, 4 Dec 2009 22:19:41 +0000 (16:19 -0600)]
Refactor: Remove list_calls from voicecall driver

14 years agoMention Martin's contributions
Marcel Holtmann [Thu, 3 Dec 2009 21:13:27 +0000 (22:13 +0100)]
Mention Martin's contributions

14 years agoAllow builds to install the test scripts for debugging
Martin Xu [Thu, 3 Dec 2009 09:05:41 +0000 (17:05 +0800)]
Allow builds to install the test scripts for debugging

14 years agoFix: Exit right away
Denis Kenzior [Thu, 3 Dec 2009 06:42:59 +0000 (00:42 -0600)]
Fix: Exit right away

If no plugin needs to run the eventloop to shutdown cleanly, exit right
away.

14 years agoAdd unit test for max message size encoding
Denis Kenzior [Thu, 3 Dec 2009 06:26:20 +0000 (00:26 -0600)]
Add unit test for max message size encoding

14 years agoFix: Be a bit more signal-handler safe
Denis Kenzior [Thu, 3 Dec 2009 02:10:18 +0000 (20:10 -0600)]
Fix: Be a bit more signal-handler safe

14 years agoFix: Paste error
Denis Kenzior [Thu, 3 Dec 2009 01:24:37 +0000 (19:24 -0600)]
Fix: Paste error

14 years agoWhen SIGTERM is received, run the event loop
Denis Kenzior [Thu, 3 Dec 2009 01:08:31 +0000 (19:08 -0600)]
When SIGTERM is received, run the event loop

This feature will continue running the event loop for another 10 seconds
or so or until all the modems have been shut down.  This will allow the
modem drivers to properly shutdown their respective devices.

14 years agoFix: Convert PalmPre plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:56:28 +0000 (17:56 -0600)]
Fix: Convert PalmPre plugin to new world order

14 years agoFix: Convert Novatel plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:56:14 +0000 (17:56 -0600)]
Fix: Convert Novatel plugin to new world order

14 years agoFix: Convert MBM plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:56:05 +0000 (17:56 -0600)]
Fix: Convert MBM plugin to new world order

14 years agoFix: Convert Huawei plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:55:53 +0000 (17:55 -0600)]
Fix: Convert Huawei plugin to new world order

14 years agoFix: Convert HSO plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:55:40 +0000 (17:55 -0600)]
Fix: Convert HSO plugin to new world order

14 years agoFix: Convert G1 plugin to new world order
Denis Kenzior [Wed, 2 Dec 2009 23:55:18 +0000 (17:55 -0600)]
Fix: Convert G1 plugin to new world order

14 years agoRefactor: Set powered to false if disable timedout
Denis Kenzior [Wed, 2 Dec 2009 23:30:26 +0000 (17:30 -0600)]
Refactor: Set powered to false if disable timedout

14 years agoAdd g_at_chat_unregister_all function
Denis Kenzior [Wed, 2 Dec 2009 23:27:58 +0000 (17:27 -0600)]
Add g_at_chat_unregister_all function

14 years agoFix: unregister modem when unregistering driver
Denis Kenzior [Wed, 2 Dec 2009 21:43:08 +0000 (15:43 -0600)]
Fix: unregister modem when unregistering driver

14 years agoRefactor: modem de-registration
Denis Kenzior [Wed, 2 Dec 2009 21:40:45 +0000 (15:40 -0600)]
Refactor: modem de-registration

14 years agoFix: Remove all atoms when attempting to power off
Denis Kenzior [Wed, 2 Dec 2009 21:33:25 +0000 (15:33 -0600)]
Fix: Remove all atoms when attempting to power off

The current behavior is to remove atoms when the modem has powered off
successfully.  The modem driver must now take special precautions to
cancel all pending actions of the atom drivers, since they would have
been destroyed.

14 years agoAdd: g_at_chat_cancel_all function
Denis Kenzior [Wed, 2 Dec 2009 21:28:44 +0000 (15:28 -0600)]
Add: g_at_chat_cancel_all function

This will cancel all commands currently queued.

14 years agoFix: Sometimes it is possible to cancel first cmd
Denis Kenzior [Wed, 2 Dec 2009 21:27:26 +0000 (15:27 -0600)]
Fix: Sometimes it is possible to cancel first cmd

Commands on the head of the queue can be canceled if none of its bytes
have actually been written to the modem.  This is tracked by
cmd_bytes_written variable.

14 years agoFix: Don't allow cancelation of command id 0
Denis Kenzior [Wed, 2 Dec 2009 21:26:56 +0000 (15:26 -0600)]
Fix: Don't allow cancelation of command id 0

14 years agoRelease 0.12 0.12
Marcel Holtmann [Wed, 2 Dec 2009 17:58:50 +0000 (18:58 +0100)]
Release 0.12

14 years agoFix: Store refs as 16 bits, not 8
Denis Kenzior [Wed, 2 Dec 2009 15:55:57 +0000 (09:55 -0600)]
Fix: Store refs as 16 bits, not 8

Refs are handled as 16 bits properly everywhere, yet are stored as 8
bits in the assembly.

14 years agoFix: Don't forget to cleanup the atom watch
Denis Kenzior [Wed, 2 Dec 2009 04:53:45 +0000 (22:53 -0600)]
Fix: Don't forget to cleanup the atom watch

14 years agoFix: Make sure to never overflow DNS variable
Denis Kenzior [Wed, 2 Dec 2009 02:38:26 +0000 (20:38 -0600)]
Fix: Make sure to never overflow DNS variable

14 years agoFix: Poll ENAP on older mbm hardware
Denis Kenzior [Wed, 2 Dec 2009 01:38:44 +0000 (19:38 -0600)]
Fix: Poll ENAP on older mbm hardware

14 years agoStyle: Fix whitespace
Denis Kenzior [Tue, 1 Dec 2009 23:36:48 +0000 (17:36 -0600)]
Style: Fix whitespace

14 years agoFix: Fix parsing in MBM
Denis Kenzior [Tue, 1 Dec 2009 23:35:30 +0000 (17:35 -0600)]
Fix: Fix parsing in MBM

14 years agoAdd experimental support for E2IPCFG
Denis Kenzior [Tue, 1 Dec 2009 23:25:20 +0000 (17:25 -0600)]
Add experimental support for E2IPCFG

14 years agoFix: Don't decode error unnecessarily
Denis Kenzior [Tue, 1 Dec 2009 23:24:50 +0000 (17:24 -0600)]
Fix: Don't decode error unnecessarily

14 years agoFix: Add username/password support to mbm context
Denis Kenzior [Tue, 1 Dec 2009 22:08:12 +0000 (16:08 -0600)]
Fix: Add username/password support to mbm context

14 years agoFix: Make sure we don't overflow the buffer
Denis Kenzior [Tue, 1 Dec 2009 22:05:20 +0000 (16:05 -0600)]
Fix: Make sure we don't overflow the buffer

14 years agoFix: Force calypso to return to command mode ASAP
Denis Kenzior [Tue, 1 Dec 2009 18:38:14 +0000 (12:38 -0600)]
Fix: Force calypso to return to command mode ASAP

Calypso firmware is just bizarre.  It seems that if anything is sent
before CPI=3 to the DLC handling voice commands, the ATD will not return
to command mode immediately, but instead wait until connected / failed
condition occurs.

If CPI=3 is sent first, then calypso will go to command mode immediately
after ATD is issued and report CPI indications as usual.

14 years agoFix: Remove duplicate atoms from calypso plugin
Denis Kenzior [Tue, 1 Dec 2009 18:18:32 +0000 (12:18 -0600)]
Fix: Remove duplicate atoms from calypso plugin

14 years agoFix: Simplify logic to use g_memdup
Denis Kenzior [Tue, 1 Dec 2009 18:18:06 +0000 (12:18 -0600)]
Fix: Simplify logic to use g_memdup

14 years agoFix: Disable echo on all calypso DLCs
Denis Kenzior [Tue, 1 Dec 2009 18:17:38 +0000 (12:17 -0600)]
Fix: Disable echo on all calypso DLCs

14 years agoFix: Be more signed/unsigned correct
Denis Kenzior [Tue, 1 Dec 2009 18:17:09 +0000 (12:17 -0600)]
Fix: Be more signed/unsigned correct

14 years agoStyle: Use unsigned int instead of unsigned
Denis Kenzior [Tue, 1 Dec 2009 18:04:14 +0000 (12:04 -0600)]
Style: Use unsigned int instead of unsigned

14 years agoFix: Reset call_ids when modem is powered off
Zhenhua Zhang [Fri, 27 Nov 2009 09:11:56 +0000 (17:11 +0800)]
Fix: Reset call_ids when modem is powered off

14 years agoUpdate calypso plugin to the new wakeup handling
Denis Kenzior [Thu, 26 Nov 2009 13:40:38 +0000 (07:40 -0600)]
Update calypso plugin to the new wakeup handling

14 years agoFix: Retry the wakeup command until the modem OKs
Denis Kenzior [Thu, 26 Nov 2009 13:38:51 +0000 (07:38 -0600)]
Fix: Retry the wakeup command until the modem OKs

The calypso is weird where it doesn't actually wakeup on the first try,
we need to bang its head a few times until it responds

14 years agoFix: Make Calypso handling a bit better
Denis Kenzior [Thu, 26 Nov 2009 13:37:50 +0000 (07:37 -0600)]
Fix: Make Calypso handling a bit better

14 years agoFix: None of this seems necessary for the Calypso
Denis Kenzior [Thu, 26 Nov 2009 13:37:08 +0000 (07:37 -0600)]
Fix: None of this seems necessary for the Calypso

14 years agoAdd udev rules for Option GI0201 and GTM382 modems
Marko Saukko [Wed, 25 Nov 2009 07:38:25 +0000 (09:38 +0200)]
Add udev rules for Option GI0201 and GTM382 modems

14 years agoFix: Move CHLD from voicecall driver to plugin
Zhenhua Zhang [Wed, 25 Nov 2009 05:48:43 +0000 (13:48 +0800)]
Fix: Move CHLD from voicecall driver to plugin

According HFP v1.5 spec, AT+CHLD=? should be a part of SLC
connection. So we should not do it after SLC connection is
created.

14 years agoFix: Order of CMER and CIND in SLC connection
Zhenhua Zhang [Wed, 25 Nov 2009 05:47:16 +0000 (13:47 +0800)]
Fix: Order of CMER and CIND in SLC connection

According to the HFP 1.5 specification the order of commands is actually
important.  The required sequence is to use CIND=?, CIND? and then CMER.
Currently oFono issues commands in the order of CIND=?, CMER, CIND?

14 years agoFix: Add check for register_auto method
Zhenhua Zhang [Wed, 25 Nov 2009 05:43:27 +0000 (13:43 +0800)]
Fix: Add check for register_auto method

Add check for register_auto method to avoid crash. HFP backend
does not provide implementation for register_auto.

14 years agoFix: handle weird Dell 5530 mbm card network name
Martin Xu [Wed, 4 Nov 2009 05:33:40 +0000 (13:33 +0800)]
Fix: handle weird Dell 5530 mbm card network name

14 years agoFix: Send all SMS segments
Zhigang Li [Tue, 24 Nov 2009 20:48:44 +0000 (14:48 -0600)]
Fix: Send all SMS segments