platform/upstream/ofono.git
14 years agoAdd implementation of netreg driver
Aki Niemi [Sat, 12 Sep 2009 15:42:42 +0000 (18:42 +0300)]
Add implementation of netreg driver

14 years agoClean up macros for success/failure callbacks
Aki Niemi [Sat, 12 Sep 2009 12:47:00 +0000 (15:47 +0300)]
Clean up macros for success/failure callbacks

14 years agoFix compilation error with missing return value
Marcel Holtmann [Sat, 12 Sep 2009 07:01:05 +0000 (09:01 +0200)]
Fix compilation error with missing return value

14 years agoUpdate the network registration API
Denis Kenzior [Sat, 12 Sep 2009 02:38:55 +0000 (21:38 -0500)]
Update the network registration API

14 years agoSupport base station name cell broadcasts
Denis Kenzior [Sat, 12 Sep 2009 02:38:08 +0000 (21:38 -0500)]
Support base station name cell broadcasts

If we receive an immediate cell-specific cell broadcast, report it as
the base station id up to netreg atom

14 years agoAdd utility for setting the netreg base station
Denis Kenzior [Sat, 12 Sep 2009 02:35:31 +0000 (21:35 -0500)]
Add utility for setting the netreg base station

14 years agoEnable registration / location updates for CBS
Denis Kenzior [Fri, 11 Sep 2009 21:25:30 +0000 (16:25 -0500)]
Enable registration / location updates for CBS

- This tracks the current Location Area Code / Cell ID and PLMN.  If any
  of these change, the assembly is notified.  This is required to
  implement proper CBS message duplicate detection according to 23.041

14 years agoAdd network registration status watch capability
Denis Kenzior [Fri, 11 Sep 2009 21:25:15 +0000 (16:25 -0500)]
Add network registration status watch capability

14 years agoRemove extra free of cbs assembly
Denis Kenzior [Fri, 11 Sep 2009 20:18:27 +0000 (15:18 -0500)]
Remove extra free of cbs assembly

14 years agoCreate watchlists during register
Denis Kenzior [Fri, 11 Sep 2009 19:06:18 +0000 (14:06 -0500)]
Create watchlists during register

14 years agoPort sim ready watch to __ofono_watchlist
Denis Kenzior [Fri, 11 Sep 2009 19:05:39 +0000 (14:05 -0500)]
Port sim ready watch to __ofono_watchlist

14 years agoRework DECLARE_FAILURE to be a bit nicer
Denis Kenzior [Fri, 11 Sep 2009 17:36:35 +0000 (12:36 -0500)]
Rework DECLARE_FAILURE to be a bit nicer

14 years agoRefactor various watch functions
Denis Kenzior [Fri, 11 Sep 2009 04:01:59 +0000 (23:01 -0500)]
Refactor various watch functions

Use a common core kernel for all the watcher registrations /
notifications.  This is now done in watch.c

14 years agoAdd netreg getter functions
Denis Kenzior [Thu, 10 Sep 2009 23:19:48 +0000 (18:19 -0500)]
Add netreg getter functions

- Get Location, CellID
- Current Operator
- Registration Status
- Technology

14 years agoFix cut-paste error
Denis Kenzior [Thu, 10 Sep 2009 23:13:11 +0000 (18:13 -0500)]
Fix cut-paste error

14 years agoEnsure CBS is in a known state at startup
Denis Kenzior [Thu, 10 Sep 2009 22:44:36 +0000 (17:44 -0500)]
Ensure CBS is in a known state at startup

14 years agoAdd ability to expire PLMN wide messages
Denis Kenzior [Thu, 10 Sep 2009 22:40:16 +0000 (17:40 -0500)]
Add ability to expire PLMN wide messages

14 years agoFix double free issue
Denis Kenzior [Thu, 10 Sep 2009 22:20:00 +0000 (17:20 -0500)]
Fix double free issue

14 years agoFix unused variable
Denis Kenzior [Thu, 10 Sep 2009 21:29:05 +0000 (16:29 -0500)]
Fix unused variable

14 years agoKeep modem->powered_pending up to date after set_powered.
Andrzej Zaborowski [Thu, 10 Sep 2009 16:57:11 +0000 (18:57 +0200)]
Keep modem->powered_pending up to date after set_powered.

Without this once a request to power up the modem fails, modem.c won't
retry even when asked.

14 years agoFix generation of Message Waiting PropertyChanged signals.
Andrzej Zaborowski [Thu, 10 Sep 2009 16:39:07 +0000 (18:39 +0200)]
Fix generation of Message Waiting PropertyChanged signals.

14 years agoFix parsing of Enhanced Voicemail notifications.
Andrzej Zaborowski [Thu, 10 Sep 2009 16:37:40 +0000 (18:37 +0200)]
Fix parsing of Enhanced Voicemail notifications.

14 years agoEnable cell broadcast for phonesim plugin
Denis Kenzior [Thu, 10 Sep 2009 21:11:24 +0000 (16:11 -0500)]
Enable cell broadcast for phonesim plugin

14 years agoAdd atmodem cell broadcast driver
Denis Kenzior [Thu, 10 Sep 2009 21:11:08 +0000 (16:11 -0500)]
Add atmodem cell broadcast driver

14 years agoAdd initial Cell Broadcast atom implementation
Denis Kenzior [Thu, 10 Sep 2009 21:10:14 +0000 (16:10 -0500)]
Add initial Cell Broadcast atom implementation

14 years agoHandle empty topic range lists
Denis Kenzior [Thu, 10 Sep 2009 02:25:03 +0000 (21:25 -0500)]
Handle empty topic range lists

14 years agoMake cbs_topic_ranges_to_string work with all ids
Denis Kenzior [Thu, 10 Sep 2009 02:24:39 +0000 (21:24 -0500)]
Make cbs_topic_ranges_to_string work with all ids

14 years agoFix memory leak
Denis Kenzior [Thu, 10 Sep 2009 02:24:13 +0000 (21:24 -0500)]
Fix memory leak

14 years agoAdd unit test for CBS topic range functions
Denis Kenzior [Wed, 9 Sep 2009 19:29:00 +0000 (14:29 -0500)]
Add unit test for CBS topic range functions

14 years agoAdd CBS topic range functions
Denis Kenzior [Wed, 9 Sep 2009 19:28:20 +0000 (14:28 -0500)]
Add CBS topic range functions

14 years agogisi: cannot do ioctl() with Netlink sockets, use local instead
Rémi Denis-Courmont [Thu, 10 Sep 2009 14:20:02 +0000 (17:20 +0300)]
gisi: cannot do ioctl() with Netlink sockets, use local instead

14 years agogisi: Fix embarrassing typo
Rémi Denis-Courmont [Thu, 10 Sep 2009 14:18:17 +0000 (17:18 +0300)]
gisi: Fix embarrassing typo

14 years agogisi: bring Phonet interface up before telling upper layers about it
Rémi Denis-Courmont [Thu, 10 Sep 2009 11:49:30 +0000 (14:49 +0300)]
gisi: bring Phonet interface up before telling upper layers about it

This should get kernel-assisted Phonet autoconfiguration to work (and it
shouldn't hurt in other cases). Otherwise, the upper layers will try to
send packets, which will fail. Then they will probably just time out.

14 years agogisi: disable logging by default
Rémi Denis-Courmont [Wed, 9 Sep 2009 13:35:44 +0000 (16:35 +0300)]
gisi: disable logging by default

The debug_func was not initialized.

14 years agoFix make distcheck
Denis Kenzior [Tue, 8 Sep 2009 21:52:12 +0000 (16:52 -0500)]
Fix make distcheck

14 years agoAdd unit test for sms assembly serialization
Denis Kenzior [Tue, 8 Sep 2009 21:43:53 +0000 (16:43 -0500)]
Add unit test for sms assembly serialization

14 years agoRework SMS fragment backup storage
Denis Kenzior [Tue, 8 Sep 2009 21:40:56 +0000 (16:40 -0500)]
Rework SMS fragment backup storage

The SMS address can actually contain other characters than 0-9, +, *, #,
particularly when the alphanumeric address type is used.  This is
commonly used by services such as Google or carrier specific SMS
services.

Rework the SMS address storage to simply re-use the SMS address pdu
format, which consists of up to 12 hex-encoded bytes.

14 years agoFix style issue
Denis Kenzior [Tue, 8 Sep 2009 21:40:38 +0000 (16:40 -0500)]
Fix style issue

14 years agoFix off by one error in assembly serialize
Denis Kenzior [Tue, 8 Sep 2009 21:39:16 +0000 (16:39 -0500)]
Fix off by one error in assembly serialize

The proper PDU was not being written out fully

14 years agoFixup unit test data
Denis Kenzior [Tue, 8 Sep 2009 21:24:31 +0000 (16:24 -0500)]
Fixup unit test data

50 in first octet of deliver isn't valid

14 years agoWrite state of SMS assembly to disk and restore on startup.
Andrzej Zaborowski [Sat, 5 Sep 2009 01:16:02 +0000 (03:16 +0200)]
Write state of SMS assembly to disk and restore on startup.

This way we can continue receiving segmented messages over a reset or
crash.

14 years agoFix style issue
Denis Kenzior [Tue, 8 Sep 2009 19:15:40 +0000 (14:15 -0500)]
Fix style issue

14 years agoMove create_dirs to storage.c, add file read/write utilities
Andrzej Zaborowski [Sat, 5 Sep 2009 01:12:19 +0000 (03:12 +0200)]
Move create_dirs to storage.c, add file read/write utilities

14 years agoRead messages left over in ME storage on startup.
Andrzej Zaborowski [Fri, 4 Sep 2009 14:48:03 +0000 (16:48 +0200)]
Read messages left over in ME storage on startup.

On modems that don't support +CMT (or for class 2 SMSes) the messages are
stored in the modem and then read and deleted from there in two separate
steps with no warranty that deletion succeeds or (more likely) power is
cut before the deletion happens.  Over time the memory may become full
and if we don't want to deal with this condition we need to check on
startup if there are messages we haven't deleted.

We can't differentiate between those messages and those the user already
had on the SIM / modem before installing ofono or switching phones, so we
might want to deliver messages with REC READ status with some kind of
indication that these are potentially old so the UI doesn't emit spurious
alerts.  We don't do this now and just deliver as usual.

14 years agoDo supported dialect detection in sms.c
Denis Kenzior [Tue, 8 Sep 2009 17:45:04 +0000 (12:45 -0500)]
Do supported dialect detection in sms.c

14 years agoRefactor SMS language dialect encoding / decoding
Denis Kenzior [Tue, 8 Sep 2009 17:42:52 +0000 (12:42 -0500)]
Refactor SMS language dialect encoding / decoding

- Introduce new enum gsm_dialect instead of unsigned char arguments
- Use ISO639 3 letter codes for conversion tables
- Use a single lookup table instead of 4 different ones

14 years agoFix style issues
Denis Kenzior [Tue, 8 Sep 2009 14:42:29 +0000 (09:42 -0500)]
Fix style issues

14 years agoUse SMS national language identifier when decoding
Aki Niemi [Fri, 4 Sep 2009 14:36:54 +0000 (17:36 +0300)]
Use SMS national language identifier when decoding

Adds support for decoding SMSs encoded using national language single
shift and locking shift tables.

14 years agoAdd unit test for Turkish variant
Aki Niemi [Fri, 4 Sep 2009 14:35:43 +0000 (17:35 +0300)]
Add unit test for Turkish variant

Also fixes an error in the default table unit test.

14 years agoAdd support for national language variants
Aki Niemi [Mon, 7 Sep 2009 11:50:03 +0000 (14:50 +0300)]
Add support for national language variants

Add API for supporting character conversion using national language
variants. Also, add conversion tables for Turkish, Spanish and
Portuguese, and fix the default table. The lookup algorithms were
tweaked to support multiple tables.

14 years agoAdd option to phonesim to run with or without multiplexer
Marcel Holtmann [Tue, 8 Sep 2009 07:24:52 +0000 (09:24 +0200)]
Add option to phonesim to run with or without multiplexer

14 years agoAdd modem properties for booleans
Marcel Holtmann [Tue, 8 Sep 2009 07:12:19 +0000 (09:12 +0200)]
Add modem properties for booleans

14 years agoUpdate test program for GAtMux API
Marcel Holtmann [Tue, 8 Sep 2009 07:05:56 +0000 (09:05 +0200)]
Update test program for GAtMux API

14 years agoHook up GAtMux with GSM 07.10 implementation
Marcel Holtmann [Tue, 8 Sep 2009 07:04:11 +0000 (09:04 +0200)]
Hook up GAtMux with GSM 07.10 implementation

14 years agoRemove AT command and re-init support from GSM 07.10
Marcel Holtmann [Tue, 8 Sep 2009 06:51:46 +0000 (08:51 +0200)]
Remove AT command and re-init support from GSM 07.10

14 years agoUse NULL for init of function callbacks
Marcel Holtmann [Tue, 8 Sep 2009 06:39:51 +0000 (08:39 +0200)]
Use NULL for init of function callbacks

14 years agoExport the GSM 07.10 status flags
Marcel Holtmann [Tue, 8 Sep 2009 06:26:48 +0000 (08:26 +0200)]
Export the GSM 07.10 status flags

14 years agoFix g_at_chat_unref from command callback
Denis Kenzior [Tue, 8 Sep 2009 04:20:29 +0000 (23:20 -0500)]
Fix g_at_chat_unref from command callback

The resources were being used after being freed in this case

14 years agoAdd a few more comments to the calypso plugin
Denis Kenzior [Tue, 8 Sep 2009 01:15:49 +0000 (20:15 -0500)]
Add a few more comments to the calypso plugin

14 years agoAdd more calypso specific quirks when using phonesim
Marcel Holtmann [Tue, 8 Sep 2009 01:14:46 +0000 (03:14 +0200)]
Add more calypso specific quirks when using phonesim

14 years agoMark some properties as integer so they get printed properly
Marcel Holtmann [Tue, 8 Sep 2009 01:04:51 +0000 (03:04 +0200)]
Mark some properties as integer so they get printed properly

14 years agoAdd support for using phonesim and calypso for testing
Marcel Holtmann [Tue, 8 Sep 2009 01:01:52 +0000 (03:01 +0200)]
Add support for using phonesim and calypso for testing

14 years agoUpdate GSM 07.10 unit testing
Marcel Holtmann [Sun, 6 Sep 2009 06:35:34 +0000 (08:35 +0200)]
Update GSM 07.10 unit testing

14 years agoUpdate test script with more property tweaks
Marcel Holtmann [Sun, 6 Sep 2009 05:35:11 +0000 (07:35 +0200)]
Update test script with more property tweaks

14 years agoAdd functions for disconnect and debug handling
Marcel Holtmann [Sat, 5 Sep 2009 22:31:26 +0000 (00:31 +0200)]
Add functions for disconnect and debug handling

14 years agoIntegrate the multiplexer into the AT chat library
Marcel Holtmann [Sat, 5 Sep 2009 22:25:16 +0000 (00:25 +0200)]
Integrate the multiplexer into the AT chat library

14 years agoUse NULL instead of 0 for pointer arguments
Marcel Holtmann [Sat, 5 Sep 2009 22:14:21 +0000 (00:14 +0200)]
Use NULL instead of 0 for pointer arguments

14 years agoFirst round of coding style updates for GSM 07.10 implementation
Marcel Holtmann [Sat, 5 Sep 2009 22:08:53 +0000 (00:08 +0200)]
First round of coding style updates for GSM 07.10 implementation

14 years agoAdd skeleton for AT multiplexer API
Marcel Holtmann [Sat, 5 Sep 2009 09:52:31 +0000 (11:52 +0200)]
Add skeleton for AT multiplexer API

14 years agoAdd unit testing tool for GSM 07.10 multiplexer
Marcel Holtmann [Sat, 5 Sep 2009 05:46:50 +0000 (07:46 +0200)]
Add unit testing tool for GSM 07.10 multiplexer

14 years agoAdd missing HAVE_CONFIG_H checks
Marcel Holtmann [Sat, 5 Sep 2009 05:36:38 +0000 (07:36 +0200)]
Add missing HAVE_CONFIG_H checks

14 years agoUpdate copyright and license details for GSM 07.10 implementation
Marcel Holtmann [Sat, 5 Sep 2009 05:30:18 +0000 (07:30 +0200)]
Update copyright and license details for GSM 07.10 implementation

14 years agoEnable compilation of GSM 07.10 code
Marcel Holtmann [Sat, 5 Sep 2009 05:25:31 +0000 (07:25 +0200)]
Enable compilation of GSM 07.10 code

14 years agoFix previous casting removal fix
Marcel Holtmann [Sat, 5 Sep 2009 05:22:59 +0000 (07:22 +0200)]
Fix previous casting removal fix

14 years agoRemove another unneeded cast
Marcel Holtmann [Sat, 5 Sep 2009 05:21:45 +0000 (07:21 +0200)]
Remove another unneeded cast

14 years agoUse unsigned char array for buffer and remove char casting
Marcel Holtmann [Sat, 5 Sep 2009 05:18:12 +0000 (07:18 +0200)]
Use unsigned char array for buffer and remove char casting

14 years agoMake gsm0710_compute_crc and gsm0710_send_frame private functions
Marcel Holtmann [Sat, 5 Sep 2009 05:09:46 +0000 (07:09 +0200)]
Make gsm0710_compute_crc and gsm0710_send_frame private functions

14 years agoFix weird casting for callback execution
Marcel Holtmann [Sat, 5 Sep 2009 05:02:56 +0000 (07:02 +0200)]
Fix weird casting for callback execution

14 years agoFix mixed declarations and code
Marcel Holtmann [Sat, 5 Sep 2009 04:59:36 +0000 (06:59 +0200)]
Fix mixed declarations and code

14 years agoImport GSM 07.10 implementation from Qtopia
Marcel Holtmann [Sat, 5 Sep 2009 04:57:11 +0000 (06:57 +0200)]
Import GSM 07.10 implementation from Qtopia

14 years agoUpdate modem configuration parameter parsing for generic AT plugin
Marcel Holtmann [Sat, 5 Sep 2009 02:48:08 +0000 (04:48 +0200)]
Update modem configuration parameter parsing for generic AT plugin

14 years agoFix unused variable warning
Denis Kenzior [Sat, 5 Sep 2009 01:19:50 +0000 (20:19 -0500)]
Fix unused variable warning

14 years agoUpdate calypso modem driver
Denis Kenzior [Sat, 5 Sep 2009 01:17:38 +0000 (20:17 -0500)]
Update calypso modem driver

Use calypso voicecalls driver

14 years agoAdd calypso voicecalls driver
Denis Kenzior [Sat, 5 Sep 2009 01:17:29 +0000 (20:17 -0500)]
Add calypso voicecalls driver

14 years agoSome modems don't return from ATD until connected
Denis Kenzior [Sat, 5 Sep 2009 01:16:30 +0000 (20:16 -0500)]
Some modems don't return from ATD until connected

Yet they send progress indications all the way up to connected, which
breaks the current logic.

14 years agoDon't emit disconnect reason if unknown
Denis Kenzior [Sat, 5 Sep 2009 01:16:06 +0000 (20:16 -0500)]
Don't emit disconnect reason if unknown

14 years agoFor incoming call case, send hangup
Denis Kenzior [Sat, 5 Sep 2009 01:15:18 +0000 (20:15 -0500)]
For incoming call case, send hangup

CHLD=1X doesn't work for incoming calls on some devices.  This is
more portable

14 years agoFix distcheck
Denis Kenzior [Fri, 4 Sep 2009 20:57:44 +0000 (15:57 -0500)]
Fix distcheck

14 years agoRename at.h to atmodem.h
Denis Kenzior [Fri, 4 Sep 2009 19:05:15 +0000 (14:05 -0500)]
Rename at.h to atmodem.h

14 years agoBreak common at utilities to atutils.c/.h
Denis Kenzior [Fri, 4 Sep 2009 19:01:32 +0000 (14:01 -0500)]
Break common at utilities to atutils.c/.h

14 years agoRemove unused declaration
Denis Kenzior [Fri, 4 Sep 2009 18:50:33 +0000 (13:50 -0500)]
Remove unused declaration

14 years agoRemove unused structure
Denis Kenzior [Fri, 4 Sep 2009 18:49:44 +0000 (13:49 -0500)]
Remove unused structure

14 years agoMake calypso plugin use the permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:27:37 +0000 (13:27 -0500)]
Make calypso plugin use the permissive parser

14 years agoMake G1 driver use the permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:26:12 +0000 (13:26 -0500)]
Make G1 driver use the permissive parser

14 years agoAdd GSM Permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:25:30 +0000 (13:25 -0500)]
Add GSM Permissive parser

14 years agoAdd plugin for generic AT testing modem driver
Marcel Holtmann [Sat, 5 Sep 2009 01:01:02 +0000 (03:01 +0200)]
Add plugin for generic AT testing modem driver

14 years agoAdd example modem configuration for TI Calypso based devices
Marcel Holtmann [Fri, 4 Sep 2009 17:08:41 +0000 (19:08 +0200)]
Add example modem configuration for TI Calypso based devices

14 years agoFix style issues
Denis Kenzior [Fri, 4 Sep 2009 16:57:41 +0000 (11:57 -0500)]
Fix style issues

14 years agoMake sure modemconf handles calypso driver
Denis Kenzior [Fri, 4 Sep 2009 04:06:43 +0000 (23:06 -0500)]
Make sure modemconf handles calypso driver

14 years agoAdd calypso plugin
Denis Kenzior [Fri, 4 Sep 2009 04:06:12 +0000 (23:06 -0500)]
Add calypso plugin