platform/upstream/ofono.git
13 years agoifxmodem: Fix handling of radio access mode enum
Marcel Holtmann [Wed, 27 Oct 2010 09:06:05 +0000 (11:06 +0200)]
ifxmodem: Fix handling of radio access mode enum

13 years agohsomodem: Fix handling of radio access mode enum
Marcel Holtmann [Wed, 27 Oct 2010 09:05:59 +0000 (11:05 +0200)]
hsomodem: Fix handling of radio access mode enum

13 years agonwmodem: Fix handling of radio access mode enum
Marcel Holtmann [Wed, 27 Oct 2010 09:05:33 +0000 (11:05 +0200)]
nwmodem: Fix handling of radio access mode enum

13 years agombm: Handle TTY disconnect for PPP based GPRS context
Marcel Holtmann [Wed, 27 Oct 2010 00:02:41 +0000 (02:02 +0200)]
mbm: Handle TTY disconnect for PPP based GPRS context

The Ericsson MBM modems also hangup the TTY when disconnecting PPP and
in that case the TTY needs to be re-opened. In addition it seems that
the TTY is actually blocked until the context is fully brought down, so
also a delay is required.

13 years agombmmodem: Add some more GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:40:25 +0000 (01:40 +0200)]
mbmmodem: Add some more GPRS context debug statements

13 years agohuaweimodem: Fix some GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:34:02 +0000 (01:34 +0200)]
huaweimodem: Fix some GPRS context debug statements

13 years agoifxmodem: Add full set of GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:31:54 +0000 (01:31 +0200)]
ifxmodem: Add full set of GPRS context debug statements

13 years agoatmodem: Add some more GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:29:55 +0000 (01:29 +0200)]
atmodem: Add some more GPRS context debug statements

13 years agohuaweimodem: Add some more GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:27:17 +0000 (01:27 +0200)]
huaweimodem: Add some more GPRS context debug statements

13 years agoifxmodem: Add some more GPRS context debug statements
Marcel Holtmann [Tue, 26 Oct 2010 23:25:56 +0000 (01:25 +0200)]
ifxmodem: Add some more GPRS context debug statements

13 years agombm: Use the variant specific enum in a cleaner way
Marcel Holtmann [Tue, 26 Oct 2010 23:18:42 +0000 (01:18 +0200)]
mbm: Use the variant specific enum in a cleaner way

13 years agombm: Use data port for second PPP based GPRS context
Marcel Holtmann [Tue, 26 Oct 2010 23:17:10 +0000 (01:17 +0200)]
mbm: Use data port for second PPP based GPRS context

13 years agogprs: Load stored MMS Proxy and MMSC settings
Marcel Holtmann [Tue, 26 Oct 2010 22:51:51 +0000 (00:51 +0200)]
gprs: Load stored MMS Proxy and MMSC settings

13 years agogprs: Use better default name for context creation
Marcel Holtmann [Tue, 26 Oct 2010 21:19:54 +0000 (23:19 +0200)]
gprs: Use better default name for context creation

13 years agogprs: Add support for storing MMS Proxy and MMSC settings
Marcel Holtmann [Tue, 26 Oct 2010 21:14:58 +0000 (23:14 +0200)]
gprs: Add support for storing MMS Proxy and MMSC settings

13 years agoifxmodem: Add support GPRS contexts with username and password
Marcel Holtmann [Tue, 26 Oct 2010 20:50:00 +0000 (22:50 +0200)]
ifxmodem: Add support GPRS contexts with username and password

13 years agotest: Add script to change MMS Proxy and MMSC
Marcel Holtmann [Tue, 26 Oct 2010 20:35:43 +0000 (22:35 +0200)]
test: Add script to change MMS Proxy and MMSC

13 years agotest: Add scripts for creating Internet and MMS contexts
Marcel Holtmann [Tue, 26 Oct 2010 20:25:09 +0000 (22:25 +0200)]
test: Add scripts for creating Internet and MMS contexts

13 years agotest: Print interface name of static context configuration
Marcel Holtmann [Tue, 26 Oct 2010 15:20:47 +0000 (17:20 +0200)]
test: Print interface name of static context configuration

13 years agoifx: Add support for having three active GPRS contexts
Marcel Holtmann [Tue, 26 Oct 2010 15:05:23 +0000 (17:05 +0200)]
ifx: Add support for having three active GPRS contexts

The Infineon modem can at least support three active GPRS contexts in
M-RAW_IP mode. So use another DLC for the third context.

13 years agoifx: Use M-RAW_IP support only with internal multiplexer
Marcel Holtmann [Tue, 26 Oct 2010 15:00:52 +0000 (17:00 +0200)]
ifx: Use M-RAW_IP support only with internal multiplexer

The GPRS context can only be fully supported with the internal multiplexer
right now. So use M-RAW_IP support in that case. If using a kernel based
multiplexer, then no GPRS context is provided.

13 years agogatchat: A full support for TUN/TAP pipe and GAtRawIP
Marcel Holtmann [Tue, 26 Oct 2010 14:57:35 +0000 (16:57 +0200)]
gatchat: A full support for TUN/TAP pipe and GAtRawIP

13 years agogatchat: Remove unused write_watch variable of GAtHDLC
Marcel Holtmann [Tue, 26 Oct 2010 13:16:35 +0000 (15:16 +0200)]
gatchat: Remove unused write_watch variable of GAtHDLC

13 years agoifxmodem: Fix GPRS disconnect handling from network side
Marcel Holtmann [Tue, 26 Oct 2010 12:43:49 +0000 (14:43 +0200)]
ifxmodem: Fix GPRS disconnect handling from network side

13 years agogprs: Assign GPRS atom to GPRS context atom
Marcel Holtmann [Tue, 26 Oct 2010 12:03:47 +0000 (14:03 +0200)]
gprs: Assign GPRS atom to GPRS context atom

If the GPRS atom is not assigned to the GPRS context atom, then possible
network triggered activation crashes.

13 years agoTODO: Mark Play Tone task as done
Denis Kenzior [Mon, 25 Oct 2010 22:44:46 +0000 (17:44 -0500)]
TODO: Mark Play Tone task as done

13 years agostk: Default to general beep if no tone is provided
Denis Kenzior [Mon, 25 Oct 2010 22:42:41 +0000 (17:42 -0500)]
stk: Default to general beep if no tone is provided

According to section 6.6.5 of 102.223

13 years agostk: Handle the Play Tone proactive command.
Andrzej Zaborowski [Mon, 25 Oct 2010 05:51:27 +0000 (07:51 +0200)]
stk: Handle the Play Tone proactive command.

13 years agostk: Add duration_to_msecs to reduce duplication.
Andrzej Zaborowski [Mon, 25 Oct 2010 05:51:26 +0000 (07:51 +0200)]
stk: Add duration_to_msecs to reduce duplication.

13 years agovoicecall: Limit tone string length per request.
Andrzej Zaborowski [Mon, 25 Oct 2010 05:51:25 +0000 (07:51 +0200)]
voicecall: Limit tone string length per request.

Also change to avoid memcpying into a buffer.

13 years agogprs: Return busy if ops are potentially colliding
Denis Kenzior [Mon, 25 Oct 2010 21:31:46 +0000 (16:31 -0500)]
gprs: Return busy if ops are potentially colliding

13 years agotest: add deactivate-all
Denis Kenzior [Mon, 25 Oct 2010 20:48:55 +0000 (15:48 -0500)]
test: add deactivate-all

Uses ConnectionManager DeactivateAll

13 years agogprs: Implement DeactivateAll()
Denis Kenzior [Mon, 25 Oct 2010 20:39:41 +0000 (15:39 -0500)]
gprs: Implement DeactivateAll()

13 years agomanager: Don't show modems which are not registered
Denis Kenzior [Mon, 25 Oct 2010 20:38:15 +0000 (15:38 -0500)]
manager: Don't show modems which are not registered

13 years agomodem: Add ofono_modem_is_registered
Denis Kenzior [Mon, 25 Oct 2010 20:37:16 +0000 (15:37 -0500)]
modem: Add ofono_modem_is_registered

13 years agophonesim: Fix missing return from plugin init
Marcel Holtmann [Mon, 25 Oct 2010 21:14:05 +0000 (23:14 +0200)]
phonesim: Fix missing return from plugin init

13 years agohuaweimodem: Add bits and pieces for NDIS receive handling
Marcel Holtmann [Mon, 25 Oct 2010 21:10:31 +0000 (23:10 +0200)]
huaweimodem: Add bits and pieces for NDIS receive handling

13 years agoifxmodem: Fix handling of AT+XDNS with multiple contexts
Marcel Holtmann [Mon, 25 Oct 2010 20:51:09 +0000 (22:51 +0200)]
ifxmodem: Fix handling of AT+XDNS with multiple contexts

13 years agophonesim: Register modem driver before creating modems
Marcel Holtmann [Mon, 25 Oct 2010 20:33:18 +0000 (22:33 +0200)]
phonesim: Register modem driver before creating modems

13 years agophonesim: Support multiple contexts
Denis Kenzior [Mon, 25 Oct 2010 19:42:59 +0000 (14:42 -0500)]
phonesim: Support multiple contexts

13 years agogprs: Support multiple active contexts
Denis Kenzior [Mon, 25 Oct 2010 19:42:46 +0000 (14:42 -0500)]
gprs: Support multiple active contexts

13 years agophonesim: Enable dummy phonesim contexts
Denis Kenzior [Mon, 25 Oct 2010 18:59:58 +0000 (13:59 -0500)]
phonesim: Enable dummy phonesim contexts

13 years agobuild: Add example configuration for phonesim plugin
Marcel Holtmann [Mon, 25 Oct 2010 18:48:55 +0000 (20:48 +0200)]
build: Add example configuration for phonesim plugin

13 years agobuild: Remove modemconf plugin support
Marcel Holtmann [Mon, 25 Oct 2010 18:43:05 +0000 (20:43 +0200)]
build: Remove modemconf plugin support

13 years agobuild: Don't include phonesim plugin if disabled
Marcel Holtmann [Mon, 25 Oct 2010 18:32:04 +0000 (20:32 +0200)]
build: Don't include phonesim plugin if disabled

13 years agobuild: Add option to disable phonesim modem plugin
Marcel Holtmann [Mon, 25 Oct 2010 18:23:56 +0000 (20:23 +0200)]
build: Add option to disable phonesim modem plugin

13 years agophonesim: Don't use modem.conf for phonesim modems
Marcel Holtmann [Mon, 25 Oct 2010 18:12:32 +0000 (20:12 +0200)]
phonesim: Don't use modem.conf for phonesim modems

13 years agoTODO: Marking the Barred Dialing task as done
Jeevaka Badrappan [Mon, 25 Oct 2010 11:34:17 +0000 (04:34 -0700)]
TODO: Marking the Barred Dialing task as done

13 years agodoc: Add BarredDialing property
Jeevaka Badrappan [Mon, 25 Oct 2010 11:34:16 +0000 (04:34 -0700)]
doc: Add BarredDialing property

13 years agosim: Fix minor style issue
Denis Kenzior [Mon, 25 Oct 2010 15:37:22 +0000 (10:37 -0500)]
sim: Fix minor style issue

13 years agosim: add barred dialing support
Jeevaka Badrappan [Mon, 25 Oct 2010 11:34:15 +0000 (04:34 -0700)]
sim: add barred dialing support

13 years agosimutil: add Efbdn fileid to sim_fileid enum
Jeevaka Badrappan [Mon, 25 Oct 2010 11:34:14 +0000 (04:34 -0700)]
simutil: add Efbdn fileid to sim_fileid enum

13 years agoMention Mika's contributions
Marcel Holtmann [Mon, 25 Oct 2010 14:35:35 +0000 (16:35 +0200)]
Mention Mika's contributions

13 years agoradio settings: document FastDormancy property
Mika Liljeberg [Mon, 25 Oct 2010 13:28:06 +0000 (16:28 +0300)]
radio settings: document FastDormancy property

13 years agoatmodem: Enable time zone reporting for Option modems
Marcel Holtmann [Mon, 25 Oct 2010 00:03:00 +0000 (02:03 +0200)]
atmodem: Enable time zone reporting for Option modems

13 years agoatmodem: Enable time update reporting for MBM modems
Marcel Holtmann [Sun, 24 Oct 2010 19:48:56 +0000 (21:48 +0200)]
atmodem: Enable time update reporting for MBM modems

13 years agoifx: Detect when DLC shutdown happens
Marcel Holtmann [Sun, 24 Oct 2010 18:15:45 +0000 (20:15 +0200)]
ifx: Detect when DLC shutdown happens

In case one of the DLCs shuts down, the system has an undefined state
and thus just shutdown the whole device.

13 years agoifx: Detect modems stuck in multiplexer mode
Marcel Holtmann [Sun, 24 Oct 2010 18:00:32 +0000 (20:00 +0200)]
ifx: Detect modems stuck in multiplexer mode

When the initial AT commands on the master device don't respond, then
the modem is stuck in multiplexer mode. For now just report an error.

13 years agogprs: Handle failure of GPRS context atom drivers
Marcel Holtmann [Sun, 24 Oct 2010 15:14:16 +0000 (17:14 +0200)]
gprs: Handle failure of GPRS context atom drivers

The GRPS context atom drivers can return an error from their probe
callbacks. In that case gc->driver is NULL and will cause a crash
when trying to activate a context. So check that there is actually
a driver attached to that GPRS context.

13 years agosimfs: Fix issue with sim_fs_op_error
Jeevaka Badrappan [Sun, 24 Oct 2010 12:04:03 +0000 (05:04 -0700)]
simfs: Fix issue with sim_fs_op_error

13 years agohuaweimodem: Increase NDIS setup time to 20 seconds
Marcel Holtmann [Sun, 24 Oct 2010 13:35:45 +0000 (15:35 +0200)]
huaweimodem: Increase NDIS setup time to 20 seconds

13 years agombmmodem: Check IP address with AT+CGPADDR for older modems
Marcel Holtmann [Sun, 24 Oct 2010 12:55:50 +0000 (14:55 +0200)]
mbmmodem: Check IP address with AT+CGPADDR for older modems

13 years agoRelease 0.33 0.33
Marcel Holtmann [Sat, 23 Oct 2010 11:51:05 +0000 (13:51 +0200)]
Release 0.33

13 years agoifx: Use PPP based GPRS context if M-RAW_IP is not available
Marcel Holtmann [Sat, 23 Oct 2010 10:57:42 +0000 (12:57 +0200)]
ifx: Use PPP based GPRS context if M-RAW_IP is not available

13 years agoTODO: Mark html text task as done
Denis Kenzior [Sat, 23 Oct 2010 03:52:35 +0000 (22:52 -0500)]
TODO: Mark html text task as done

13 years agoTODO: Mark Send DTMF task as done
Denis Kenzior [Sat, 23 Oct 2010 03:50:48 +0000 (22:50 -0500)]
TODO: Mark Send DTMF task as done

13 years agostk: Nitpick some newline issues
Denis Kenzior [Sat, 23 Oct 2010 03:39:56 +0000 (22:39 -0500)]
stk: Nitpick some newline issues

13 years agostk: Apply STK text attributes as html
Andrzej Zaborowski [Thu, 21 Oct 2010 05:09:08 +0000 (07:09 +0200)]
stk: Apply STK text attributes as html

13 years agoatmodem: Delay return from send_dtmf
Andrzej Zaborowski [Thu, 21 Oct 2010 05:09:07 +0000 (07:09 +0200)]
atmodem: Delay return from send_dtmf

AT+VTS responds with an OK immediately, so add a wait in the driver
before returning so that core knows when the tone has finished.  Note
that some modems actually do wait against 27.007, and other modems
use a manufacturer specific AT command and the drivers will need to
handle accordingly.

13 years agostk: use null character instead of 0
Denis Kenzior [Sat, 23 Oct 2010 03:28:04 +0000 (22:28 -0500)]
stk: use null character instead of 0

Slightly better readability

13 years agostk: Remove reference to positive EINVAL
Denis Kenzior [Sat, 23 Oct 2010 03:25:20 +0000 (22:25 -0500)]
stk: Remove reference to positive EINVAL

Move it to the original call where it belongs

13 years agostk: Handle the Send DTMF proactive command
Andrzej Zaborowski [Thu, 21 Oct 2010 05:09:06 +0000 (07:09 +0200)]
stk: Handle the Send DTMF proactive command

The default_agent_notify and session_agent_notify changes below are
needed for respond_on_exit commands to be able to free up their
resources, reset alpha id, etc.  Commands other than Send DTMF that
use respond_on_exit are all associated with a agent method call and
get notified about agent exit in the callback.

13 years agovoicecall: __ofono_voicecall_tone_send internal api
Andrzej Zaborowski [Thu, 21 Oct 2010 05:09:05 +0000 (07:09 +0200)]
voicecall: __ofono_voicecall_tone_send internal api

This provides a way for other atoms to send DTMF tones during a call.
It is assumed that vc->driver->send_tone returns only after the tones
have finished being emitted.

In this version Dbus DTMF requests are in the same queue as STK
requests.

13 years agoTODO: Marking the FDN task as done
Denis Kenzior [Fri, 22 Oct 2010 17:14:49 +0000 (12:14 -0500)]
TODO: Marking the FDN task as done

13 years agosimfs: Fix issue with check_cached
Denis Kenzior [Fri, 22 Oct 2010 17:11:26 +0000 (12:11 -0500)]
simfs: Fix issue with check_cached

The only_info logic was inverted, causing us to always read from the
modem.

13 years agosim: Pass dbus types
Denis Kenzior [Fri, 22 Oct 2010 16:58:59 +0000 (11:58 -0500)]
sim: Pass dbus types

Can't really assume they're the same as glib types

13 years agosim: Get rid of unneeded empty line
Denis Kenzior [Fri, 22 Oct 2010 16:57:18 +0000 (11:57 -0500)]
sim: Get rid of unneeded empty line

13 years agosim: Break out common FDN property signaling
Denis Kenzior [Fri, 22 Oct 2010 16:56:35 +0000 (11:56 -0500)]
sim: Break out common FDN property signaling

13 years agosimfs: Use errno for simfs errors
Denis Kenzior [Fri, 22 Oct 2010 16:45:39 +0000 (11:45 -0500)]
simfs: Use errno for simfs errors

13 years agosimfs: No need to set these variables
Denis Kenzior [Fri, 22 Oct 2010 16:42:40 +0000 (11:42 -0500)]
simfs: No need to set these variables

13 years agosim: check existence of imsi-code
Petteri Tikander [Thu, 21 Oct 2010 14:58:13 +0000 (17:58 +0300)]
sim: check existence of imsi-code

For instance: when handling sim_get_properties
in PRE_SIM-state imsi is not received/stored.

13 years agosim: check if Fixed Dial is enabled in SIM-card
Petteri Tikander [Thu, 21 Oct 2010 14:58:11 +0000 (17:58 +0300)]
sim: check if Fixed Dial is enabled in SIM-card

If SIM-card is inserted, status is checked from EFsst
(is FDN activated) and EFadn (is ADN invalidated).
If USIM-card is inserted, status is checked from EFest
(is FDN activated).

If FD is enabled, halt SIM initialization procedure.
New property (FixedDialing) is added. If FD is enabled,
this has been signalled via DBUS.

13 years agosimfs: retrieve only EF-info without EF-contents
Petteri Tikander [Thu, 21 Oct 2010 14:58:09 +0000 (17:58 +0300)]
simfs: retrieve only EF-info without EF-contents

13 years agomodem: add debugs to monitor modem state changes
Petteri Tikander [Thu, 21 Oct 2010 14:58:12 +0000 (17:58 +0300)]
modem: add debugs to monitor modem state changes

13 years agoatmodem: Parse optional PLMN parameter of AT+COPS=? result
Marcel Holtmann [Thu, 21 Oct 2010 23:00:58 +0000 (01:00 +0200)]
atmodem: Parse optional PLMN parameter of AT+COPS=? result

The Infineon modem adds an optional <plmn_list> parameter after the
access technology parameter <AcT>. It is not always present, but when
present it makes the operator listing fail.

+COPS: (2,"T-Mobile D","TMO D","26201",0,0),(3,"E-Plus","E-Plus","26203",0,),(3,"Vodafone.de","Vodafone.de","26202",0,),(3,"o2 - de","o2 - de","26207",0,)

Not all networks have this parameter and maybe only the home network
has it anyway. And so far this feature seems to be Infineon specific,
but just in case, parse the parameter if present to make sure the
operator listing is available.

13 years agogisi: Use of DBG macro is not allowed
Marcel Holtmann [Thu, 21 Oct 2010 22:37:57 +0000 (00:37 +0200)]
gisi: Use of DBG macro is not allowed

13 years agoifxmodem: Use g_try_new0 when checking for the result
Marcel Holtmann [Thu, 21 Oct 2010 22:20:44 +0000 (00:20 +0200)]
ifxmodem: Use g_try_new0 when checking for the result

13 years agoTODO: add ipv6cp support task
Denis Kenzior [Thu, 21 Oct 2010 03:45:16 +0000 (22:45 -0500)]
TODO: add ipv6cp support task

13 years agoifxmodem: Fix compiler warnings in GPRS context driver
Marcel Holtmann [Thu, 21 Oct 2010 21:54:53 +0000 (23:54 +0200)]
ifxmodem: Fix compiler warnings in GPRS context driver

13 years agoifx: Add two GPRS contexts since the modem should support it
Marcel Holtmann [Thu, 21 Oct 2010 21:51:36 +0000 (23:51 +0200)]
ifx: Add two GPRS contexts since the modem should support it

13 years agoifx: Use Infineon specific GPRS context driver
Marcel Holtmann [Thu, 21 Oct 2010 19:54:04 +0000 (21:54 +0200)]
ifx: Use Infineon specific GPRS context driver

13 years agoifxmodem: Add support for Infineon GPRS context setup with M-RAW_IP
Marcel Holtmann [Thu, 21 Oct 2010 19:50:52 +0000 (21:50 +0200)]
ifxmodem: Add support for Infineon GPRS context setup with M-RAW_IP

This patch adds support for setting up a GPRS context and then switching
it into M-RAW_IP mode. The handling of the M-RAW_IP data stream is not
yet implemented.

13 years agotest: Add option to also enable other than the first context
Marcel Holtmann [Thu, 21 Oct 2010 19:44:51 +0000 (21:44 +0200)]
test: Add option to also enable other than the first context

13 years agonetreg: Allow strength notifys at all times
Aki Niemi [Thu, 21 Oct 2010 18:20:25 +0000 (21:20 +0300)]
netreg: Allow strength notifys at all times

13 years agoisimodem: Remove hack for notifying strength
Aki Niemi [Thu, 21 Oct 2010 18:18:56 +0000 (21:18 +0300)]
isimodem: Remove hack for notifying strength

13 years agoradio settings: Fix string to enum mapping
Aki Niemi [Thu, 21 Oct 2010 08:24:15 +0000 (11:24 +0300)]
radio settings: Fix string to enum mapping

13 years agogisi: Add method for verifying any resource
Mika Liljeberg [Wed, 6 Oct 2010 07:27:22 +0000 (10:27 +0300)]
gisi: Add method for verifying any resource

Add g_isi_verify_resource() function to GIsiClient for verifying
the reachability of an arbitrary resource.

13 years agogisi: store object handle for associated server
Mika Liljeberg [Tue, 5 Oct 2010 07:20:53 +0000 (10:20 +0300)]
gisi: store object handle for associated server

13 years agogisi: Allow subscribes towards any resources
Mika Liljeberg [Wed, 6 Oct 2010 11:28:29 +0000 (14:28 +0300)]
gisi: Allow subscribes towards any resources

Add methods to subscribe indications from an arbitrary resource.
Configured resource id is treated as the default. Also added separate
commit function for resource subscriptions in order to reduce the
number of subscription messages sent to the modem.

13 years agogisi: make timeout optional
Mika Liljeberg [Wed, 6 Oct 2010 08:17:56 +0000 (11:17 +0300)]
gisi: make timeout optional