platform/upstream/ofono.git
14 years agoFix: Use DISC on dlc 0 instead of CLD
Denis Kenzior [Thu, 8 Oct 2009 17:49:12 +0000 (12:49 -0500)]
Fix: Use DISC on dlc 0 instead of CLD

Some MUX implementations do not seem to support Multiplexer Closedown
(CLD) command.  The standard specifies that sending DISC on DLC 0 should
act exactly the same as CLD.

14 years agoFix: Make compile on some obscure platforms
Denis Kenzior [Thu, 8 Oct 2009 05:07:32 +0000 (00:07 -0500)]
Fix: Make compile on some obscure platforms

14 years agoCleanup: Remove more dead code
Denis Kenzior [Wed, 7 Oct 2009 16:06:31 +0000 (11:06 -0500)]
Cleanup: Remove more dead code

14 years agoCleanup: Get rid of unused member
Denis Kenzior [Tue, 6 Oct 2009 23:21:01 +0000 (18:21 -0500)]
Cleanup: Get rid of unused member

ctx->server is never set to anything but 0.  This was intended to handle
server side functionality of the GSM 07.10 multiplexer, but never fully
implemented.  Since GAtMux is only really meant for the client side, we
can safely remove this dead code.

14 years agoGet rid of from_tty variant, use gattty instead
Denis Kenzior [Tue, 6 Oct 2009 23:14:11 +0000 (18:14 -0500)]
Get rid of from_tty variant, use gattty instead

14 years agogisi: use const and restrict in iter
Pekka Pessi [Wed, 30 Sep 2009 20:12:17 +0000 (23:12 +0300)]
gisi: use const and restrict in iter

14 years agoHack for reading EFSPN on isimodem sim driver
Jukka Saunamaki [Fri, 18 Sep 2009 06:43:34 +0000 (09:43 +0300)]
Hack for reading EFSPN on isimodem sim driver

In the absence of low-level access to the SIM card, we're adding this
hack to expose the SPN using ISI's high-level access instead.

14 years agoFix: Don't crash when cached ef structure differs
Denis Kenzior [Mon, 5 Oct 2009 21:20:55 +0000 (16:20 -0500)]
Fix: Don't crash when cached ef structure differs

14 years agoRelease 0.7 0.7
Marcel Holtmann [Sun, 4 Oct 2009 11:11:14 +0000 (13:11 +0200)]
Release 0.7

14 years agoFix pointer size problem with GUINT_TO_POINTER and unsigned short
Marcel Holtmann [Sun, 4 Oct 2009 11:02:56 +0000 (13:02 +0200)]
Fix pointer size problem with GUINT_TO_POINTER and unsigned short

14 years agoFix: Handle empty SMSes
Denis Kenzior [Sat, 3 Oct 2009 00:26:11 +0000 (19:26 -0500)]
Fix: Handle empty SMSes

If an SMS is empty (e.g. nothing to unpack) then we should simply
continue on.

14 years agoFix: Quiet a warning
Denis Kenzior [Sat, 3 Oct 2009 00:25:58 +0000 (19:25 -0500)]
Fix: Quiet a warning

14 years agoFix: Make const correct
Denis Kenzior [Sat, 3 Oct 2009 00:25:44 +0000 (19:25 -0500)]
Fix: Make const correct

14 years agoFix: Make next_hexstring handle optional quotes
Denis Kenzior [Fri, 2 Oct 2009 23:22:44 +0000 (18:22 -0500)]
Fix: Make next_hexstring handle optional quotes

Ericsson MBM devices send CRSM information as hex strings, yet enclose
them in quotes which is not according to the standard.

14 years agoMake generic sim driver work with 3G SIMs
Denis Kenzior [Fri, 2 Oct 2009 22:59:08 +0000 (17:59 -0500)]
Make generic sim driver work with 3G SIMs

3G (UICC) based SIMs use a different response format than 2G sims.  In
theory this also allows us to determine whether SIM filesystem format is
3G or 2G

14 years agoFix: Add additional error checking
Denis Kenzior [Fri, 2 Oct 2009 22:57:24 +0000 (17:57 -0500)]
Fix: Add additional error checking

14 years agoUse small caps for 2G/3G functions
Denis Kenzior [Fri, 2 Oct 2009 22:49:31 +0000 (17:49 -0500)]
Use small caps for 2G/3G functions

14 years agoAdd unit test for 3G STATUS response data
Denis Kenzior [Fri, 2 Oct 2009 22:48:04 +0000 (17:48 -0500)]
Add unit test for 3G STATUS response data

14 years agoAdd utility to parse 3G get response data
Denis Kenzior [Fri, 2 Oct 2009 22:47:44 +0000 (17:47 -0500)]
Add utility to parse 3G get response data

Based on ETSI 102.221

14 years agoAdd utility to parse 2G GET_RESPONSE data
Denis Kenzior [Fri, 2 Oct 2009 19:52:52 +0000 (14:52 -0500)]
Add utility to parse 2G GET_RESPONSE data

This format is described in 51.011 and the older 11.11.  It is not
supported by newer 3G UICC based devices & sim card combinations

14 years agoAdd unit test for EF database
Denis Kenzior [Fri, 2 Oct 2009 19:52:10 +0000 (14:52 -0500)]
Add unit test for EF database

14 years agoAdd utility to lookup files in EF db
Denis Kenzior [Fri, 2 Oct 2009 19:51:47 +0000 (14:51 -0500)]
Add utility to lookup files in EF db

14 years agoRefactor: Move elementary file type checking
Denis Kenzior [Fri, 2 Oct 2009 19:02:28 +0000 (14:02 -0500)]
Refactor: Move elementary file type checking

Every single EF read callback checks the file type reported out of the
SIM is what it expects.  Instead this should be done in one place and
the errors reported accordingly

14 years agoAdd basic elementary file database
Denis Kenzior [Fri, 2 Oct 2009 18:08:30 +0000 (13:08 -0500)]
Add basic elementary file database

14 years agoEnable a few extra atoms in the Huawei plugin
Marcel Holtmann [Fri, 2 Oct 2009 11:23:26 +0000 (13:23 +0200)]
Enable a few extra atoms in the Huawei plugin

14 years agoEnable more atoms in the MBM plugin
Marcel Holtmann [Fri, 2 Oct 2009 11:22:09 +0000 (13:22 +0200)]
Enable more atoms in the MBM plugin

14 years agoAdd support for switching to a different GAtSyntax at runtime
Marcel Holtmann [Fri, 2 Oct 2009 10:29:02 +0000 (12:29 +0200)]
Add support for switching to a different GAtSyntax at runtime

14 years agoRemove unused variables causing a compiler warning
Marcel Holtmann [Fri, 2 Oct 2009 01:26:35 +0000 (03:26 +0200)]
Remove unused variables causing a compiler warning

14 years agoFix missing include for close() function call
Marcel Holtmann [Fri, 2 Oct 2009 01:25:35 +0000 (03:25 +0200)]
Fix missing include for close() function call

14 years agoUpdate plugins to the new g_at_tty_open API
Denis Kenzior [Thu, 1 Oct 2009 22:01:15 +0000 (17:01 -0500)]
Update plugins to the new g_at_tty_open API

14 years agoReplace g_at_chat_new_from_tty with g_at_tty_open
Denis Kenzior [Thu, 1 Oct 2009 21:37:30 +0000 (16:37 -0500)]
Replace g_at_chat_new_from_tty with g_at_tty_open

14 years agoG1: move chat handling into enable callback
Andres Salomon [Wed, 30 Sep 2009 03:53:59 +0000 (23:53 -0400)]
G1: move chat handling into enable callback

This updates the g1 code to create the GAtChat object in the enable() callback,
and to unref it in the disable() callback.  This is more in line with what
the other plugins do, and as a bonus fixes a segfault when powering down
the G1 modem..

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
14 years agoFix: different signedness comparison
Denis Kenzior [Tue, 29 Sep 2009 19:49:59 +0000 (14:49 -0500)]
Fix: different signedness comparison

14 years agoAdd call volume atom to calypso plugin
Denis Kenzior [Tue, 29 Sep 2009 19:47:49 +0000 (14:47 -0500)]
Add call volume atom to calypso plugin

14 years agoAdd test script for controlling speaker volume
Denis Kenzior [Tue, 29 Sep 2009 19:30:15 +0000 (14:30 -0500)]
Add test script for controlling speaker volume

14 years agoAdd call volume to phonesim plugin
Denis Kenzior [Tue, 29 Sep 2009 19:30:00 +0000 (14:30 -0500)]
Add call volume to phonesim plugin

14 years agoAdd at modem call volume driver
Denis Kenzior [Tue, 29 Sep 2009 19:29:45 +0000 (14:29 -0500)]
Add at modem call volume driver

14 years agoFix: Don't try to set a value if already set
Denis Kenzior [Tue, 29 Sep 2009 19:28:40 +0000 (14:28 -0500)]
Fix: Don't try to set a value if already set

14 years agoBe more numerically stable
Denis Kenzior [Tue, 29 Sep 2009 18:01:26 +0000 (13:01 -0500)]
Be more numerically stable

14 years agoUse none_prefix in cssn
Denis Kenzior [Tue, 29 Sep 2009 16:15:11 +0000 (11:15 -0500)]
Use none_prefix in cssn

14 years agoAdd Muted property to CallVolume atom
Denis Kenzior [Tue, 29 Sep 2009 15:55:01 +0000 (10:55 -0500)]
Add Muted property to CallVolume atom

14 years agoRefactor: Call Volume set_property handling
Denis Kenzior [Mon, 28 Sep 2009 23:50:19 +0000 (18:50 -0500)]
Refactor: Call Volume set_property handling

14 years agoGet rid of unused define
Denis Kenzior [Mon, 28 Sep 2009 23:50:02 +0000 (18:50 -0500)]
Get rid of unused define

14 years agoGet rid of unused variables
Denis Kenzior [Mon, 28 Sep 2009 23:28:43 +0000 (18:28 -0500)]
Get rid of unused variables

14 years agoRefactor: Assume driver will set call volume
Denis Kenzior [Mon, 28 Sep 2009 23:27:01 +0000 (18:27 -0500)]
Refactor: Assume driver will set call volume

Driver should use the ofono_call_volume_set_microphone_volume and
ofono_call_volume_set_speaker_volume functions.

14 years agoDon't use ofono_ prefix for static functions
Denis Kenzior [Mon, 28 Sep 2009 23:25:39 +0000 (18:25 -0500)]
Don't use ofono_ prefix for static functions

14 years agoRefactor: Break up call volume notify
Denis Kenzior [Mon, 28 Sep 2009 23:23:21 +0000 (18:23 -0500)]
Refactor: Break up call volume notify

14 years agoCleanup: Do not expose DBus details to drivers
Denis Kenzior [Mon, 28 Sep 2009 18:36:28 +0000 (13:36 -0500)]
Cleanup: Do not expose DBus details to drivers

14 years agoAdd call volume interface to adjust speaker and mic volume
Zhenhua Zhang [Sat, 26 Sep 2009 15:27:25 +0000 (23:27 +0800)]
Add call volume interface to adjust speaker and mic volume

14 years agoFix: F3607gw not being recognized properly
Denis Kenzior [Mon, 28 Sep 2009 17:50:39 +0000 (12:50 -0500)]
Fix: F3607gw not being recognized properly

Reports <foo> Broadband <foo> instead of <foo> Broadband Minicard <foo>

F3607gw Mobile Broadband Data Modem
F3607gw Mobile Broadband Modem
F3607gw Mobile Broadband GPS Port
F3607gw Mobile Broadband Network Adapter
F3607gw Mobile Broadband Device Management
F3607gw Mobile Broadband USIM Port

14 years agoFix: Report registered modems properly
Denis Kenzior [Sat, 26 Sep 2009 00:52:14 +0000 (19:52 -0500)]
Fix: Report registered modems properly

14 years agoFix efli being removed prematurely
Denis Kenzior [Sat, 26 Sep 2009 00:40:45 +0000 (19:40 -0500)]
Fix efli being removed prematurely

14 years agoRelease 0.6 0.6
Marcel Holtmann [Fri, 25 Sep 2009 21:31:02 +0000 (14:31 -0700)]
Release 0.6

14 years agoAdd ignore line generated udev rules file
Marcel Holtmann [Fri, 25 Sep 2009 21:14:28 +0000 (14:14 -0700)]
Add ignore line generated udev rules file

14 years agoFix build issue with example history plugin
Marcel Holtmann [Fri, 25 Sep 2009 21:12:59 +0000 (14:12 -0700)]
Fix build issue with example history plugin

14 years agoFix segmentation fault from SIM reading on Calypso modem
Marcel Holtmann [Fri, 25 Sep 2009 21:07:33 +0000 (14:07 -0700)]
Fix segmentation fault from SIM reading on Calypso modem

14 years agoConvert some more strings list for easier reading
Marcel Holtmann [Fri, 25 Sep 2009 21:05:32 +0000 (14:05 -0700)]
Convert some more strings list for easier reading

14 years agoAdd some more test scripts for SMS and voice call testing
Marcel Holtmann [Fri, 25 Sep 2009 21:04:43 +0000 (14:04 -0700)]
Add some more test scripts for SMS and voice call testing

14 years agoAdd gsmdial application to ignore list
Marcel Holtmann [Fri, 25 Sep 2009 00:43:57 +0000 (17:43 -0700)]
Add gsmdial application to ignore list

14 years agoAdd skeleton for gsmdial test application
Marcel Holtmann [Fri, 25 Sep 2009 00:39:09 +0000 (17:39 -0700)]
Add skeleton for gsmdial test application

14 years agoRelease 0.5 0.5
Marcel Holtmann [Fri, 25 Sep 2009 00:07:05 +0000 (17:07 -0700)]
Release 0.5

14 years agoAdd oFono whitepaper to distribution
Marcel Holtmann [Thu, 24 Sep 2009 23:55:43 +0000 (16:55 -0700)]
Add oFono whitepaper to distribution

14 years agoFix whitespace
Denis Kenzior [Thu, 24 Sep 2009 15:22:57 +0000 (10:22 -0500)]
Fix whitespace

14 years agoAdd first draft of the ofono whitepaper
Denis Kenzior [Thu, 24 Sep 2009 15:14:22 +0000 (10:14 -0500)]
Add first draft of the ofono whitepaper

14 years agoUpdate the sim-api with LockedPins property
Denis Kenzior [Thu, 24 Sep 2009 15:13:19 +0000 (10:13 -0500)]
Update the sim-api with LockedPins property

14 years agoAdd initial support for LockedPins property
Denis Kenzior [Thu, 24 Sep 2009 15:10:38 +0000 (10:10 -0500)]
Add initial support for LockedPins property

14 years agogdbus: handle introspection generally in generic_message.
RISKÓ Gergely [Wed, 16 Sep 2009 12:03:12 +0000 (15:03 +0300)]
gdbus: handle introspection generally in generic_message.

Previously it was a specific case, now introspection is just another
interface, which is always implemented.  It is registered/unregistered
when an object path is referenced first/last.

14 years agoUnref GIOChannel in g_at_chat_new_from_tty
Zhenhua Zhang [Wed, 23 Sep 2009 10:57:17 +0000 (18:57 +0800)]
Unref GIOChannel in g_at_chat_new_from_tty

14 years agoIgnore EFli if the first entry is empty
Denis Kenzior [Wed, 23 Sep 2009 22:28:15 +0000 (17:28 -0500)]
Ignore EFli if the first entry is empty

14 years agoAdd plugin interface for getting PIN lock state.
Andrzej Zaborowski [Wed, 23 Sep 2009 22:33:28 +0000 (00:33 +0200)]
Add plugin interface for getting PIN lock state.

It may be useful to have the information of whether card is currently
locked and emit events when this changes but if we want to have it as a
property, we would need properties for all types of locks and it wouldn't
be all that useful.

14 years agoRemove unused struct field.
Andrzej Zaborowski [Wed, 23 Sep 2009 22:35:15 +0000 (00:35 +0200)]
Remove unused struct field.

14 years agoRename eflp_format to efli_format, semantically opposite.
Andrzej Zaborowski [Wed, 23 Sep 2009 21:23:43 +0000 (23:23 +0200)]
Rename eflp_format to efli_format, semantically opposite.

14 years agoUpdate sim-api.txt: ChangePin no longer disables pin.
Andrzej Zaborowski [Wed, 23 Sep 2009 21:17:06 +0000 (23:17 +0200)]
Update sim-api.txt: ChangePin no longer disables pin.

14 years agoSimplify: Use dbus_message_iter_get_args
Denis Kenzior [Tue, 22 Sep 2009 15:59:17 +0000 (10:59 -0500)]
Simplify: Use dbus_message_iter_get_args

14 years agoRemove unused structure
Denis Kenzior [Tue, 22 Sep 2009 15:49:03 +0000 (10:49 -0500)]
Remove unused structure

14 years agoFix unused variable issue from last commits
Marcel Holtmann [Wed, 23 Sep 2009 17:47:29 +0000 (10:47 -0700)]
Fix unused variable issue from last commits

14 years agoFix: Comparison should be against negative errno
Denis Kenzior [Tue, 22 Sep 2009 14:36:55 +0000 (09:36 -0500)]
Fix: Comparison should be against negative errno

14 years agoUpdate sim-api with LockPin and UnlockPin
Denis Kenzior [Tue, 22 Sep 2009 05:12:05 +0000 (00:12 -0500)]
Update sim-api with LockPin and UnlockPin

14 years agoDon't try to Lock or Unlock SIM PIN2
Denis Kenzior [Tue, 22 Sep 2009 05:05:29 +0000 (00:05 -0500)]
Don't try to Lock or Unlock SIM PIN2

14 years agoMake sure we try to lock/unlock/change only PINs
Denis Kenzior [Tue, 22 Sep 2009 04:20:25 +0000 (23:20 -0500)]
Make sure we try to lock/unlock/change only PINs

14 years agoRefactor: Do not use int instead of enum
Denis Kenzior [Tue, 22 Sep 2009 04:04:53 +0000 (23:04 -0500)]
Refactor: Do not use int instead of enum

27.007 does not define an enumeration for SIM PIN/PUK values.  This
should be handled by ofono enum instead

14 years agoDon't treat READY CPIN result differently
Denis Kenzior [Mon, 21 Sep 2009 15:11:07 +0000 (10:11 -0500)]
Don't treat READY CPIN result differently

14 years agoAdd LockPin and UnlockPin functions
Denis Kenzior [Mon, 21 Sep 2009 14:37:56 +0000 (09:37 -0500)]
Add LockPin and UnlockPin functions

14 years agoMove SSN unsolicited notification activation
Denis Kenzior [Mon, 21 Sep 2009 14:32:46 +0000 (09:32 -0500)]
Move SSN unsolicited notification activation

14 years agoRearrange sim password enum
Denis Kenzior [Mon, 21 Sep 2009 13:03:56 +0000 (08:03 -0500)]
Rearrange sim password enum

14 years agoFix: Make sure pin isn't empty
Denis Kenzior [Mon, 21 Sep 2009 13:00:42 +0000 (08:00 -0500)]
Fix: Make sure pin isn't empty

14 years agoGet rid of 1 line function
Denis Kenzior [Mon, 21 Sep 2009 12:54:21 +0000 (07:54 -0500)]
Get rid of 1 line function

14 years agoMove some stuff around
Denis Kenzior [Mon, 21 Sep 2009 12:51:23 +0000 (07:51 -0500)]
Move some stuff around

14 years agoDo PIN authentication
Andrzej Zaborowski [Thu, 17 Sep 2009 20:43:22 +0000 (22:43 +0200)]
Do PIN authentication

This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.

14 years agoAssume sms is registered only when sim ready
Denis Kenzior [Fri, 18 Sep 2009 18:47:34 +0000 (13:47 -0500)]
Assume sms is registered only when sim ready

14 years agoAssume cbs is registered after sim ready
Denis Kenzior [Fri, 18 Sep 2009 18:41:29 +0000 (13:41 -0500)]
Assume cbs is registered after sim ready

14 years agoAssume netreg is registered when sim ready
Denis Kenzior [Fri, 18 Sep 2009 18:38:50 +0000 (13:38 -0500)]
Assume netreg is registered when sim ready

14 years agoFix trailing whitespace
Marcel Holtmann [Fri, 18 Sep 2009 20:56:03 +0000 (13:56 -0700)]
Fix trailing whitespace

14 years agoAdd disconnection function
Denis Kenzior [Fri, 18 Sep 2009 18:33:41 +0000 (13:33 -0500)]
Add disconnection function

14 years agoSimplify cleanup logic
Denis Kenzior [Fri, 18 Sep 2009 18:33:22 +0000 (13:33 -0500)]
Simplify cleanup logic

14 years agoRefactor language preference parsing
Denis Kenzior [Thu, 17 Sep 2009 18:41:52 +0000 (13:41 -0500)]
Refactor language preference parsing

- Make sure to handle capital / lower case ISO639 strings
- Properly handle the case where files are empty / unused
- Don't emit the signal unless the preferences are useable
- Simplify the logic and be a bit more readable

14 years agoSimplify function logic
Denis Kenzior [Thu, 17 Sep 2009 17:18:48 +0000 (12:18 -0500)]
Simplify function logic

14 years agoUse g_ascii_isdigit
Denis Kenzior [Thu, 17 Sep 2009 17:17:42 +0000 (12:17 -0500)]
Use g_ascii_isdigit

14 years agoFix potential memory leak
Denis Kenzior [Thu, 17 Sep 2009 17:04:56 +0000 (12:04 -0500)]
Fix potential memory leak

14 years agoRename function to be more clear
Denis Kenzior [Thu, 17 Sep 2009 17:04:45 +0000 (12:04 -0500)]
Rename function to be more clear