platform/upstream/ofono.git
14 years agoFix tolower undeclared warning
Denis Kenzior [Tue, 28 Jul 2009 20:14:39 +0000 (15:14 -0500)]
Fix tolower undeclared warning

14 years agoHandle phonebook text field with uppercase type
Yang Gu [Mon, 27 Jul 2009 06:06:34 +0000 (14:06 +0800)]
Handle phonebook text field with uppercase type

14 years agoFix phonebook comment to report CSCS
Yang Gu [Mon, 27 Jul 2009 05:56:22 +0000 (13:56 +0800)]
Fix phonebook comment to report CSCS

14 years agoFix phonebook problem when charset is in a list
Yang Gu [Mon, 27 Jul 2009 05:54:36 +0000 (13:54 +0800)]
Fix phonebook problem when charset is in a list

14 years agoAdd support for cyclic files
Denis Kenzior [Mon, 27 Jul 2009 21:56:05 +0000 (16:56 -0500)]
Add support for cyclic files

14 years agoRefactor SIM file access code
Denis Kenzior [Mon, 27 Jul 2009 21:53:03 +0000 (16:53 -0500)]
Refactor SIM file access code

SIM File Access conditions would be reported similarly between various
stacks, so it seems like the core logic of figuring out the access
conditions belongs up in the daemon.

This also fixes various problems, including:
  - access conditions read from bytes 10-12, instead of 9-11.
  - read/update, invalidate/rehabilitate and increase conditions
    read from the wrong bits (0-3 instead of 4-7 and vice versa)

14 years agoKill unused variable warn
Denis Kenzior [Tue, 21 Jul 2009 18:11:43 +0000 (13:11 -0500)]
Kill unused variable warn

14 years agoKill implicit declaration warn
Denis Kenzior [Tue, 21 Jul 2009 18:11:21 +0000 (13:11 -0500)]
Kill implicit declaration warn

14 years agoKill 'Suggest parantheses around truth value' warn
Denis Kenzior [Tue, 21 Jul 2009 18:10:13 +0000 (13:10 -0500)]
Kill 'Suggest parantheses around truth value' warn

14 years agoCache EF-PNN, EF-OPL sim files on disk.
Andrzej Zaborowski [Mon, 20 Jul 2009 16:12:02 +0000 (18:12 +0200)]
Cache EF-PNN, EF-OPL sim files on disk.

This uses plain files in /var/lib/ofono for storing contents of the
operator lists to avoid possibly numerous queries to the SIM on every
startup.  Files are indexed with IMSI.  I'm not 100% sure about the
autoconf magic.

Users need to rerun bootstrap-configure after applying this.

Depends on [PATCH] Return SIM file access conditions from read_file_info.

14 years agoReturn SIM file access conditions from read_file_info.
Andrzej Zaborowski [Mon, 20 Jul 2009 16:11:39 +0000 (18:11 +0200)]
Return SIM file access conditions from read_file_info.

14 years agoUse int for MoreMessagestoSend (mms)
Denis Kenzior [Fri, 24 Jul 2009 23:16:14 +0000 (18:16 -0500)]
Use int for MoreMessagestoSend (mms)

15 years agoFix a crash with unsolicited notifications
Denis Kenzior [Tue, 21 Jul 2009 19:38:29 +0000 (14:38 -0500)]
Fix a crash with unsolicited notifications

When a line comes in from the modem, we check against prefixes
in outstanding commands and unsolicited notifications.  If the
outstanding command has not yet been sent (cmd_bytes_written == 0),
we still check it resulting in access violation.

15 years agoRelease 0.2 0.2
Marcel Holtmann [Sat, 18 Jul 2009 10:09:06 +0000 (12:09 +0200)]
Release 0.2

15 years agoAdd test-simutil binary to ignore list
Marcel Holtmann [Sat, 18 Jul 2009 10:08:46 +0000 (12:08 +0200)]
Add test-simutil binary to ignore list

15 years agoTest EONS handling.
Andrzej Zaborowski [Sat, 18 Jul 2009 01:29:57 +0000 (03:29 +0200)]
Test EONS handling.

15 years agoUse registration status constants consistently.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:45:22 +0000 (01:45 +0200)]
Use registration status constants consistently.

15 years agoDon't dereference before the null check.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:44:54 +0000 (01:44 +0200)]
Don't dereference before the null check.

15 years agoClean-up in sim.c.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:42:54 +0000 (01:42 +0200)]
Clean-up in sim.c.

15 years agoMake PNN / OPL work.
Andrzej Zaborowski [Fri, 17 Jul 2009 23:42:31 +0000 (01:42 +0200)]
Make PNN / OPL work.

15 years agoFix typos in doc/overview.txt
Andres Salomon [Fri, 17 Jul 2009 18:35:35 +0000 (14:35 -0400)]
Fix typos in doc/overview.txt

15 years agoRefactor phonebook code
Denis Kenzior [Thu, 16 Jul 2009 22:17:54 +0000 (17:17 -0500)]
Refactor phonebook code

15 years agoDon't escape phonebooks
Denis Kenzior [Thu, 16 Jul 2009 21:57:19 +0000 (16:57 -0500)]
Don't escape phonebooks

15 years agoFix style issue
Denis Kenzior [Thu, 16 Jul 2009 19:31:45 +0000 (14:31 -0500)]
Fix style issue

15 years agoAdd character set support in phonebook
Yang Gu [Thu, 16 Jul 2009 07:05:33 +0000 (15:05 +0800)]
Add character set support in phonebook

15 years agoAdd experimental support for MT incoming sms store
Denis Kenzior [Thu, 16 Jul 2009 16:42:15 +0000 (11:42 -0500)]
Add experimental support for MT incoming sms store

Some Nokia modems only support "MT" as the incoming sms store.
Presumably the modem has some intelligence to pick the right store
depending on the SMS class.  This means that oFono must now track
what the current store is, and issue a CPMS, CMGR & CMGD when a
CMTI notification arrives.

15 years agoAdd CFUN=1 for the ti_calypso driver
Denis Kenzior [Thu, 16 Jul 2009 16:42:03 +0000 (11:42 -0500)]
Add CFUN=1 for the ti_calypso driver

15 years agoAdd extra_pdu_crlf quirk to ti_calypso driver
Denis Kenzior [Wed, 15 Jul 2009 20:44:48 +0000 (15:44 -0500)]
Add extra_pdu_crlf quirk to ti_calypso driver

15 years agoAdd extra_pdu_crlf quirk
Denis Kenzior [Wed, 15 Jul 2009 20:44:23 +0000 (15:44 -0500)]
Add extra_pdu_crlf quirk

15 years agoRemove from pending list if create fails
Denis Kenzior [Wed, 15 Jul 2009 20:42:20 +0000 (15:42 -0500)]
Remove from pending list if create fails

15 years agoFix printing binary version of the pdu
Denis Kenzior [Wed, 15 Jul 2009 18:48:28 +0000 (13:48 -0500)]
Fix printing binary version of the pdu

15 years agoAdd set / get flags for GAtChat
Denis Kenzior [Wed, 15 Jul 2009 18:47:46 +0000 (13:47 -0500)]
Add set / get flags for GAtChat

15 years agoFix uninitialized warning
Denis Kenzior [Wed, 15 Jul 2009 17:09:22 +0000 (12:09 -0500)]
Fix uninitialized warning

15 years agoAdd option to disable compiler optimization
Marcel Holtmann [Wed, 15 Jul 2009 17:03:03 +0000 (19:03 +0200)]
Add option to disable compiler optimization

15 years agoFix modem wakeup handling
Denis Kenzior [Wed, 15 Jul 2009 16:45:17 +0000 (11:45 -0500)]
Fix modem wakeup handling

15 years agoFix CNMI parsing, it uses ranges not just a list
Denis Kenzior [Wed, 15 Jul 2009 16:44:37 +0000 (11:44 -0500)]
Fix CNMI parsing, it uses ranges not just a list

15 years agoFix range handling
Denis Kenzior [Wed, 15 Jul 2009 16:43:29 +0000 (11:43 -0500)]
Fix range handling

15 years agoAdd some more debugging to SMS driver
Denis Kenzior [Wed, 15 Jul 2009 16:29:38 +0000 (11:29 -0500)]
Add some more debugging to SMS driver

15 years agoFix sms looking for text mode instead of pdu mode
Denis Kenzior [Wed, 15 Jul 2009 15:19:27 +0000 (10:19 -0500)]
Fix sms looking for text mode instead of pdu mode

15 years agoRemove unneeded function
Denis Kenzior [Tue, 14 Jul 2009 20:50:35 +0000 (15:50 -0500)]
Remove unneeded function

15 years agoFix warnings
Denis Kenzior [Tue, 14 Jul 2009 20:50:09 +0000 (15:50 -0500)]
Fix warnings

15 years agoFix uninitialized variable
Denis Kenzior [Tue, 14 Jul 2009 20:46:56 +0000 (15:46 -0500)]
Fix uninitialized variable

15 years agoMake CSSN use proper types
Denis Kenzior [Tue, 14 Jul 2009 20:43:48 +0000 (15:43 -0500)]
Make CSSN use proper types

15 years agoRefactor how EONS is used
Denis Kenzior [Tue, 14 Jul 2009 20:20:37 +0000 (15:20 -0500)]
Refactor how EONS is used

15 years agoThis function now uses on network_operator_data
Denis Kenzior [Tue, 14 Jul 2009 20:19:52 +0000 (15:19 -0500)]
This function now uses on network_operator_data

15 years agoRefactor EONS to have lac / non-lac versions
Denis Kenzior [Tue, 14 Jul 2009 18:47:22 +0000 (13:47 -0500)]
Refactor EONS to have lac / non-lac versions

PNN/OPL database has fields which provide global operator naming,
or specific to a cell range.  The cell range can only be obtained
if the operator is the current one.

15 years agoRefactor Network Registration for EONS capability
Denis Kenzior [Tue, 14 Jul 2009 18:10:12 +0000 (13:10 -0500)]
Refactor Network Registration for EONS capability

15 years agoMake sure record length is not zero
Denis Kenzior [Tue, 14 Jul 2009 18:09:00 +0000 (13:09 -0500)]
Make sure record length is not zero

Record length can be reported as 0 by the driver if it is for a
a binary (non-record based) file.  Set it to the file length in
this case

15 years agoGet rid of some div by zero errors
Denis Kenzior [Tue, 14 Jul 2009 17:49:12 +0000 (12:49 -0500)]
Get rid of some div by zero errors

15 years agoFix missing header
Denis Kenzior [Tue, 14 Jul 2009 17:41:44 +0000 (12:41 -0500)]
Fix missing header

15 years agoUse ofono_set_sim_ready
Denis Kenzior [Tue, 14 Jul 2009 17:41:16 +0000 (12:41 -0500)]
Use ofono_set_sim_ready

15 years agoReturn the entire EONS info, not just the longname
Denis Kenzior [Tue, 14 Jul 2009 15:58:52 +0000 (10:58 -0500)]
Return the entire EONS info, not just the longname

15 years agoRefactor OPL code
Denis Kenzior [Mon, 13 Jul 2009 23:30:17 +0000 (18:30 -0500)]
Refactor OPL code

15 years agoFix parsing of mcc_mnc code
Denis Kenzior [Mon, 13 Jul 2009 23:19:06 +0000 (18:19 -0500)]
Fix parsing of mcc_mnc code

The digits above 0-9 were not handled correctly

15 years agoFix CellId data type to be uint32 as intended
Denis Kenzior [Mon, 13 Jul 2009 23:01:56 +0000 (18:01 -0500)]
Fix CellId data type to be uint32 as intended

15 years agoMove SPDI to network.c
Denis Kenzior [Mon, 13 Jul 2009 21:12:22 +0000 (16:12 -0500)]
Move SPDI to network.c

15 years agoPreserve PNN order
Denis Kenzior [Mon, 13 Jul 2009 19:38:25 +0000 (14:38 -0500)]
Preserve PNN order

15 years agoMove SPN reading to network.c
Denis Kenzior [Mon, 13 Jul 2009 19:11:47 +0000 (14:11 -0500)]
Move SPN reading to network.c

15 years agoGet rid of unneeded
Denis Kenzior [Mon, 13 Jul 2009 18:07:30 +0000 (13:07 -0500)]
Get rid of unneeded

15 years agoMove PNN reading to network.c
Denis Kenzior [Mon, 13 Jul 2009 17:57:08 +0000 (12:57 -0500)]
Move PNN reading to network.c

15 years agoRefactor sim_pnn_operator_parse
Denis Kenzior [Mon, 13 Jul 2009 17:42:58 +0000 (12:42 -0500)]
Refactor sim_pnn_operator_parse

15 years agoMove PNN operator parsing to simutil
Denis Kenzior [Mon, 13 Jul 2009 17:31:23 +0000 (12:31 -0500)]
Move PNN operator parsing to simutil

15 years agoMove function to simutil.c
Denis Kenzior [Sat, 11 Jul 2009 00:07:23 +0000 (19:07 -0500)]
Move function to simutil.c

15 years agoMove enum to simutil.h
Denis Kenzior [Fri, 10 Jul 2009 23:59:37 +0000 (18:59 -0500)]
Move enum to simutil.h

15 years agoRemove unneeded function
Denis Kenzior [Fri, 10 Jul 2009 23:58:32 +0000 (18:58 -0500)]
Remove unneeded function

15 years agoRemove unneeded variables
Denis Kenzior [Fri, 10 Jul 2009 23:57:16 +0000 (18:57 -0500)]
Remove unneeded variables

15 years agoMove enum to simutil.h
Denis Kenzior [Fri, 10 Jul 2009 23:56:44 +0000 (18:56 -0500)]
Move enum to simutil.h

15 years agoRefactor MSISDN reading
Denis Kenzior [Fri, 10 Jul 2009 23:54:20 +0000 (18:54 -0500)]
Refactor MSISDN reading

15 years agoIf reading one fails, don't bother reading rest
Denis Kenzior [Fri, 10 Jul 2009 23:54:05 +0000 (18:54 -0500)]
If reading one fails, don't bother reading rest

15 years agoAdd TODO comment
Denis Kenzior [Fri, 10 Jul 2009 23:29:11 +0000 (18:29 -0500)]
Add TODO comment

15 years agoChange the way SIM is initialized
Denis Kenzior [Fri, 10 Jul 2009 23:28:53 +0000 (18:28 -0500)]
Change the way SIM is initialized

15 years agoAdd sim file reading / writing utilities
Denis Kenzior [Fri, 10 Jul 2009 19:34:24 +0000 (14:34 -0500)]
Add sim file reading / writing utilities

15 years agoStyle fixes
Denis Kenzior [Fri, 10 Jul 2009 18:10:14 +0000 (13:10 -0500)]
Style fixes

15 years agoMake oFono use proper record ids, don't use tricks
Denis Kenzior [Fri, 10 Jul 2009 18:08:24 +0000 (13:08 -0500)]
Make oFono use proper record ids, don't use tricks

15 years agoAdd IMSI getter method
Denis Kenzior [Thu, 9 Jul 2009 22:16:00 +0000 (17:16 -0500)]
Add IMSI getter method

15 years agoAdd get/set sim readiness functions
Denis Kenzior [Thu, 9 Jul 2009 22:06:59 +0000 (17:06 -0500)]
Add get/set sim readiness functions

15 years agoRemove some SPN stuff from SIM
Denis Kenzior [Thu, 9 Jul 2009 21:58:26 +0000 (16:58 -0500)]
Remove some SPN stuff from SIM

15 years agoAdd sim ready notify functions
Denis Kenzior [Thu, 9 Jul 2009 21:54:10 +0000 (16:54 -0500)]
Add sim ready notify functions

15 years agoRemove unnecessary value
Denis Kenzior [Thu, 9 Jul 2009 21:52:54 +0000 (16:52 -0500)]
Remove unnecessary value

15 years agoRemove unneeded functions
Denis Kenzior [Thu, 9 Jul 2009 21:48:59 +0000 (16:48 -0500)]
Remove unneeded functions

15 years agoMove utility to its own file
Denis Kenzior [Thu, 9 Jul 2009 21:40:58 +0000 (16:40 -0500)]
Move utility to its own file

15 years agoGet rid of override_name from operator
Denis Kenzior [Thu, 9 Jul 2009 21:30:32 +0000 (16:30 -0500)]
Get rid of override_name from operator

15 years agoCleanup network_name_parse
Denis Kenzior [Thu, 9 Jul 2009 16:42:04 +0000 (11:42 -0500)]
Cleanup network_name_parse

15 years agoRead EF-PNN, EF-OPL and override network names accordingly.
Andrzej Zaborowski [Sun, 5 Jul 2009 03:14:15 +0000 (05:14 +0200)]
Read EF-PNN, EF-OPL and override network names accordingly.

15 years agoFix stupid false positive warnings about uninitialized variables
Marcel Holtmann [Tue, 14 Jul 2009 04:06:46 +0000 (06:06 +0200)]
Fix stupid false positive warnings about uninitialized variables

The GCC check for uninitialized variables is so useful that dealing
with the false positives is just a minor inconvenience.

The following GCC trick helps to silence them:

#define uninitialized_var(x) x = x

This way no code obfuscation is needed to compile smoothly and the
code stays readable. And the author has to actually think about it.

15 years agoFix unused variable warning
Denis Kenzior [Tue, 14 Jul 2009 03:31:16 +0000 (22:31 -0500)]
Fix unused variable warning

15 years agoFix unused variable warnings
Denis Kenzior [Tue, 14 Jul 2009 03:29:54 +0000 (22:29 -0500)]
Fix unused variable warnings

15 years agoFix suggest parantheses warning
Denis Kenzior [Tue, 14 Jul 2009 03:29:11 +0000 (22:29 -0500)]
Fix suggest parantheses warning

15 years agoFix unused variable warning
Denis Kenzior [Tue, 14 Jul 2009 03:28:50 +0000 (22:28 -0500)]
Fix unused variable warning

15 years agoFix signedness warning
Denis Kenzior [Tue, 14 Jul 2009 03:28:24 +0000 (22:28 -0500)]
Fix signedness warning

15 years agoFix unused variable
Denis Kenzior [Tue, 14 Jul 2009 03:28:07 +0000 (22:28 -0500)]
Fix unused variable

15 years agoFix signedness warnings
Denis Kenzior [Tue, 14 Jul 2009 03:27:33 +0000 (22:27 -0500)]
Fix signedness warnings

15 years agoFix unused variables
Denis Kenzior [Tue, 14 Jul 2009 03:25:43 +0000 (22:25 -0500)]
Fix unused variables

15 years agoFix signedness warning
Denis Kenzior [Tue, 14 Jul 2009 03:25:11 +0000 (22:25 -0500)]
Fix signedness warning

15 years agoFix missing gprintf include
Denis Kenzior [Tue, 14 Jul 2009 03:22:56 +0000 (22:22 -0500)]
Fix missing gprintf include

15 years agoRemove uninitialized warning
Denis Kenzior [Tue, 14 Jul 2009 03:09:45 +0000 (22:09 -0500)]
Remove uninitialized warning

15 years agoFix printf compiler warning with size_t data type
Marcel Holtmann [Tue, 14 Jul 2009 03:03:39 +0000 (05:03 +0200)]
Fix printf compiler warning with size_t data type

15 years agoRelease 0.1 0.1
Marcel Holtmann [Fri, 10 Jul 2009 18:36:02 +0000 (11:36 -0700)]
Release 0.1

15 years agoAdd first draft of an overview document
Marcel Holtmann [Fri, 10 Jul 2009 18:24:39 +0000 (11:24 -0700)]
Add first draft of an overview document

15 years agoFix isimodem segfault on modem removal
Aki Niemi [Thu, 9 Jul 2009 13:13:46 +0000 (16:13 +0300)]
Fix isimodem segfault on modem removal

This fixes segfaults resulting either from destroying a NULL ISI
client, or when multiple ISI modems become available, and get removed
in the wrong order. To support multiple ISI modems concurrently, a
modem object needs to be exposed via the gisi API, and tracked by the
ISI driver. This is a TODO item to add.