platform/upstream/ofono.git
14 years agosms: sms_assembly_encode_address export and rename
Inaky Perez-Gonzalez [Fri, 23 Jul 2010 20:59:54 +0000 (13:59 -0700)]
sms: sms_assembly_encode_address export and rename

The new name better reflects the function's purpose.

We need to export it, as for generating unique message naming (for
persistence and D-Bus object naming), we'll be using the
address.

14 years agointroduce DECLARE_SMS_ADDR_STR()
Inaky Perez-Gonzalez [Fri, 23 Jul 2010 20:59:53 +0000 (13:59 -0700)]
introduce DECLARE_SMS_ADDR_STR()

Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of
the right size for passing to sms_assembly_decode_address(). This way
we detach each client having to have the knowledge of what the right
size is, leaving that decission to the infrastructure
provider. Updated couple of sites in smsutil.c to use it vs a raw
declaration.

14 years agomanpage: explain debugging options to -d
Inaky Perez-Gonzalez [Fri, 23 Jul 2010 20:59:51 +0000 (13:59 -0700)]
manpage: explain debugging options to -d

Modified HACKING and man page to have more formation on what are the
debugging options and how to enable them.

14 years agoTODO: Major updates to STK related tasks
Denis Kenzior [Fri, 23 Jul 2010 04:31:27 +0000 (23:31 -0500)]
TODO: Major updates to STK related tasks

14 years agodoc: Add PropertyChanged signal to stk-api
Denis Kenzior [Wed, 21 Jul 2010 23:59:19 +0000 (18:59 -0500)]
doc: Add PropertyChanged signal to stk-api

14 years agodoc: cleanup voicecall api formatting
Denis Kenzior [Wed, 21 Jul 2010 23:59:04 +0000 (18:59 -0500)]
doc: cleanup voicecall api formatting

14 years agodoc: stk-api update
Denis Kenzior [Wed, 21 Jul 2010 23:26:47 +0000 (18:26 -0500)]
doc: stk-api update

Mark experimental and update wording based on Andrew's comments

14 years agodoc: stk-api update based on latest feedback
Denis Kenzior [Wed, 21 Jul 2010 22:23:43 +0000 (17:23 -0500)]
doc: stk-api update based on latest feedback

14 years agodoc: stk-api proposal
Denis Kenzior [Mon, 19 Jul 2010 22:09:18 +0000 (17:09 -0500)]
doc: stk-api proposal

14 years agoFix: Free modem name in ofono_modem_remove
Zhenhua Zhang [Wed, 21 Jul 2010 06:41:14 +0000 (14:41 +0800)]
Fix: Free modem name in ofono_modem_remove

Avoid the memory leak of modem name.

14 years agogprs: Minor style fixes
Denis Kenzior [Mon, 19 Jul 2010 18:51:00 +0000 (13:51 -0500)]
gprs: Minor style fixes

14 years agogprs: Add Protocol property with IPv6/IPv4
Denis Kenzior [Mon, 19 Jul 2010 18:50:37 +0000 (13:50 -0500)]
gprs: Add Protocol property with IPv6/IPv4

14 years agogprs: Update gprs context struct with IPv6 support
Denis Kenzior [Mon, 19 Jul 2010 18:49:35 +0000 (13:49 -0500)]
gprs: Update gprs context struct with IPv6 support

14 years agodoc: Update gprs api with IPv6 support
Denis Kenzior [Mon, 19 Jul 2010 18:49:12 +0000 (13:49 -0500)]
doc: Update gprs api with IPv6 support

14 years agodoc: reword some parts
Denis Kenzior [Mon, 19 Jul 2010 17:44:53 +0000 (12:44 -0500)]
doc: reword some parts

14 years agodoc: Rename to be more consistent
Denis Kenzior [Mon, 19 Jul 2010 17:39:30 +0000 (12:39 -0500)]
doc: Rename to be more consistent

14 years agoAdd coding style document
Yang Gu [Mon, 19 Jul 2010 06:19:26 +0000 (14:19 +0800)]
Add coding style document

14 years agoRelease 0.25 0.25
Marcel Holtmann [Sat, 17 Jul 2010 22:00:34 +0000 (15:00 -0700)]
Release 0.25

14 years agoAdd feature identifier for SIM Toolkit
Marcel Holtmann [Sat, 17 Jul 2010 21:53:07 +0000 (14:53 -0700)]
Add feature identifier for SIM Toolkit

14 years agoFix Huawei product ID matching in udev rules
Marcel Holtmann [Sat, 17 Jul 2010 21:46:37 +0000 (14:46 -0700)]
Fix Huawei product ID matching in udev rules

14 years agoAdd a little bit debug to udev modem detection
Marcel Holtmann [Sat, 17 Jul 2010 21:43:29 +0000 (14:43 -0700)]
Add a little bit debug to udev modem detection

14 years agostk: Remove an unneeded check.
Andrzej Zaborowski [Tue, 13 Jul 2010 14:23:35 +0000 (16:23 +0200)]
stk: Remove an unneeded check.

14 years agocalypsomodem: dtmf chars do not need quotes
Denis Kenzior [Thu, 15 Jul 2010 14:41:04 +0000 (09:41 -0500)]
calypsomodem: dtmf chars do not need quotes

14 years agombm: poll SIM status when initializing
Pekka Pessi [Thu, 15 Jul 2010 14:05:02 +0000 (17:05 +0300)]
mbm: poll SIM status when initializing

14 years agoTODO: Add GPRS IPv6 support task
Denis Kenzior [Wed, 14 Jul 2010 16:04:22 +0000 (11:04 -0500)]
TODO: Add GPRS IPv6 support task

14 years agoTODO: Merge two duplicate items
Denis Kenzior [Wed, 14 Jul 2010 16:03:30 +0000 (11:03 -0500)]
TODO: Merge two duplicate items

14 years agostkutil: Set black fore/back ground color
Denis Kenzior [Tue, 13 Jul 2010 20:36:00 +0000 (15:36 -0500)]
stkutil: Set black fore/back ground color

14 years agotest-stkutil: add html attribute tests for setup idle mode tests
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:55 +0000 (05:40 -0700)]
test-stkutil: add html attribute tests for setup idle mode tests

14 years agotest-stkutil: add html attribute test for select_item_test
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:54 +0000 (05:40 -0700)]
test-stkutil: add html attribute test for select_item_test

14 years agotest-stkutil: add html attribute test for setup_menu_test
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:53 +0000 (05:40 -0700)]
test-stkutil: add html attribute test for setup_menu_test

14 years agotest-stkutil: add html attribute tests for play_tone_test
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:52 +0000 (05:40 -0700)]
test-stkutil: add html attribute tests for play_tone_test

14 years agotest-stkutil: add html attribute tests for get_input_test
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:51 +0000 (05:40 -0700)]
test-stkutil: add html attribute tests for get_input_test

14 years agotest-stkutil: add html attribute tests for get_inkey_test
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:50 +0000 (05:40 -0700)]
test-stkutil: add html attribute tests for get_inkey_test

14 years agotest-stkutil: add html attribute test for Display Text tests
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:49 +0000 (05:40 -0700)]
test-stkutil: add html attribute test for Display Text tests

14 years agotest-stkutil: add unit test for html text attributes
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:48 +0000 (05:40 -0700)]
test-stkutil: add unit test for html text attributes

14 years agostkutil: display text attributes as html
Kristen Carlson Accardi [Tue, 13 Jul 2010 12:40:47 +0000 (05:40 -0700)]
stkutil: display text attributes as html

14 years agoUse specific vendor for phonesim stk
Yang Gu [Tue, 13 Jul 2010 10:30:01 +0000 (18:30 +0800)]
Use specific vendor for phonesim stk

14 years agoatmodem: phonesim proactive command notification
Yang Gu [Tue, 13 Jul 2010 10:30:00 +0000 (18:30 +0800)]
atmodem: phonesim proactive command notification

14 years agoatmodem: Make fetch command function as external
Yang Gu [Tue, 13 Jul 2010 10:29:59 +0000 (18:29 +0800)]
atmodem: Make fetch command function as external

14 years agotest-sms: Update with a real EMS test
Denis Kenzior [Tue, 13 Jul 2010 14:51:02 +0000 (09:51 -0500)]
test-sms: Update with a real EMS test

14 years agoInterpret "" Alpha Id as empty data object
Yang Gu [Fri, 9 Jul 2010 14:52:08 +0000 (22:52 +0800)]
Interpret "" Alpha Id as empty data object

There needs to be a way to distinguish between no alphaid and "empty
data object" because on some occasions they have different meanings.  In
the Call Control envelope, no Alpha Identifier means the terminal can
inform the user about the call being modified by SIM while empty data
object means no hint should be given.

14 years agoppp: Add MAX_IPCP_FAILURE to avoid timeout quickly
Zhenhua Zhang [Fri, 9 Jul 2010 08:53:51 +0000 (16:53 +0800)]
ppp: Add MAX_IPCP_FAILURE to avoid timeout quickly

We use IPCP NAK response to stall the progress of acquiring the client
IP address from DHCP server. So we need to increase the max failure of
NAKs in IPCP handshaking.

14 years agostk: Simplify poll interval logic
Denis Kenzior [Thu, 8 Jul 2010 19:27:01 +0000 (14:27 -0500)]
stk: Simplify poll interval logic

14 years agostk: Be more paranoid of enums from stk
Denis Kenzior [Thu, 8 Jul 2010 19:26:34 +0000 (14:26 -0500)]
stk: Be more paranoid of enums from stk

14 years agostk: Handle the Poll Interval proactive command
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:09 +0000 (00:39 +0200)]
stk: Handle the Poll Interval proactive command

14 years agostyle: Use more understandable syntax
Denis Kenzior [Thu, 8 Jul 2010 19:06:01 +0000 (14:06 -0500)]
style: Use more understandable syntax

14 years agostyle: No initialization needed here
Denis Kenzior [Thu, 8 Jul 2010 19:02:56 +0000 (14:02 -0500)]
style: No initialization needed here

14 years agostk: Get rid of gratuitous goto abuse
Denis Kenzior [Thu, 8 Jul 2010 18:55:30 +0000 (13:55 -0500)]
stk: Get rid of gratuitous goto abuse

14 years agostyle: Prefer initialized variables on top
Denis Kenzior [Thu, 8 Jul 2010 18:53:50 +0000 (13:53 -0500)]
style: Prefer initialized variables on top

14 years agosms: Refactor ofono_sms_submit introduced by stk
Denis Kenzior [Thu, 8 Jul 2010 18:38:48 +0000 (13:38 -0500)]
sms: Refactor ofono_sms_submit introduced by stk

Simplify the logic and get rid of duplicated code

14 years agosms: Tweak the logic to be more readable
Denis Kenzior [Thu, 8 Jul 2010 14:36:10 +0000 (09:36 -0500)]
sms: Tweak the logic to be more readable

14 years agostk: Don't submit all pending envelopes at once
Denis Kenzior [Wed, 7 Jul 2010 20:12:16 +0000 (15:12 -0500)]
stk: Don't submit all pending envelopes at once

14 years agostk: Fix copy / paste error
Denis Kenzior [Wed, 7 Jul 2010 19:34:38 +0000 (14:34 -0500)]
stk: Fix copy / paste error

14 years agostk: Get rid of bin to hex converter
Denis Kenzior [Wed, 7 Jul 2010 19:33:32 +0000 (14:33 -0500)]
stk: Get rid of bin to hex converter

That much code for a debug message is pretty silly.  Perhaps an
ofono_debug_hexdump function is in order.

14 years agostk: cancelled variable is not used
Denis Kenzior [Wed, 7 Jul 2010 19:28:11 +0000 (14:28 -0500)]
stk: cancelled variable is not used

14 years agostk: Handle the Timer Management proactive command
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:08 +0000 (00:39 +0200)]
stk: Handle the Timer Management proactive command

14 years agostk: Handle the Set Up Idle Text proactive command
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:05 +0000 (00:39 +0200)]
stk: Handle the Set Up Idle Text proactive command

This adds a SimToolkit dbus interface with just one property
(IdleModeText).

14 years agostk: Handle the Send SMS proactive command.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:03 +0000 (00:39 +0200)]
stk: Handle the Send SMS proactive command.

14 years agoAdd __ofono_sms_submit for other atoms to submit SMs.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:02 +0000 (00:39 +0200)]
Add __ofono_sms_submit for other atoms to submit SMs.

14 years agostkutil: Timer Value is conditional, not optional.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:07 +0000 (00:39 +0200)]
stkutil: Timer Value is conditional, not optional.

Make the parser check that the value is present when necessary,
so that stk.c doesn't have to check this.

14 years agosktutil: Use the Mandatory flag in parse_dataobj.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:06 +0000 (00:39 +0200)]
sktutil: Use the Mandatory flag in parse_dataobj.

We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs.  The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.

14 years agoAdd Dbus interface names for STK.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:04 +0000 (00:39 +0200)]
Add Dbus interface names for STK.

14 years agostk: Handle ENVELOPEs in a queue, retry on sim busy.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:01 +0000 (00:39 +0200)]
stk: Handle ENVELOPEs in a queue, retry on sim busy.

Some envelope types need to be retried when sim reports busy status.
Then envelopes such as Event Download need to be returned in the
order of the event occurences, so need to be handled in a queue.

14 years agoatmodem: Make sim operations return sim error codes.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:39:00 +0000 (00:39 +0200)]
atmodem: Make sim operations return sim error codes.

14 years agoAdd OFONO_ERROR_TYPE_SIM for negative SIM statuses
Andrzej Zaborowski [Tue, 6 Jul 2010 22:38:59 +0000 (00:38 +0200)]
Add OFONO_ERROR_TYPE_SIM for negative SIM statuses

Expected value of the .error field is status word 1 and status word 2
in bits 8:15 and 0:7 of the field.

14 years agostk: Handle MoreTime command as a no-op
Andrzej Zaborowski [Tue, 6 Jul 2010 22:38:58 +0000 (00:38 +0200)]
stk: Handle MoreTime command as a no-op

14 years agombmmodem: End session on *STKEND.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:38:57 +0000 (00:38 +0200)]
mbmmodem: End session on *STKEND.

14 years agostk: Utilities for proactive command/envelope handling.
Andrzej Zaborowski [Tue, 6 Jul 2010 22:38:56 +0000 (00:38 +0200)]
stk: Utilities for proactive command/envelope handling.

14 years agosmsutil: Fix valgrind complaint
Denis Kenzior [Thu, 8 Jul 2010 18:36:42 +0000 (13:36 -0500)]
smsutil: Fix valgrind complaint

SMS cannot be split over GSM extension chars, however on the last
segment this code was causing us to overflow the buffer and resulted in
valgrind complaining.

14 years agotest-sms: Fix a memory leak
Denis Kenzior [Thu, 8 Jul 2010 18:36:26 +0000 (13:36 -0500)]
test-sms: Fix a memory leak

14 years agoTODO: Add CDIP support task
Denis Kenzior [Thu, 8 Jul 2010 16:19:13 +0000 (11:19 -0500)]
TODO: Add CDIP support task

14 years agoRelease 0.24 0.24
Marcel Holtmann [Wed, 7 Jul 2010 20:41:05 +0000 (17:41 -0300)]
Release 0.24

14 years agoTODO: Voicecall gaps
Pekka Pessi [Tue, 6 Jul 2010 17:17:51 +0000 (20:17 +0300)]
TODO: Voicecall gaps

14 years agodoc: clarify VoiceCallManager SendTones method
Pekka Pessi [Tue, 6 Jul 2010 17:17:52 +0000 (20:17 +0300)]
doc: clarify VoiceCallManager SendTones method

14 years agogatppp: Unset disconnect function when unref PPP
Zhenhua Zhang [Wed, 7 Jul 2010 01:46:32 +0000 (09:46 +0800)]
gatppp: Unset disconnect function when unref PPP

Unset IO disconnect function when we try to destroy GAtPPP instance.
After freeing the instance, the IO disconnect function should not be
invoked.

14 years agogatserver: Restore GAtServer disconnect handling
Zhenhua Zhang [Wed, 7 Jul 2010 01:46:31 +0000 (09:46 +0800)]
gatserver: Restore GAtServer disconnect handling

Restore GAtServer disconnect handling when resuming a server session

14 years agotest-server: Refactor set_raw_mode
Zhenhua Zhang [Wed, 7 Jul 2010 00:42:23 +0000 (08:42 +0800)]
test-server: Refactor set_raw_mode

Rename variable 'options' to 'ti' and use sizeof(ti).

14 years agogatserver: Don't free twice after user disconnect
Zhenhua Zhang [Mon, 5 Jul 2010 02:59:12 +0000 (10:59 +0800)]
gatserver: Don't free twice after user disconnect

It's possible to free gatserver in user disconnect function. So we
should not free it again.

14 years agotest-server: Use cfmakeraw to set TTY raw mode
Zhenhua Zhang [Tue, 6 Jul 2010 06:23:06 +0000 (14:23 +0800)]
test-server: Use cfmakeraw to set TTY raw mode

Use cfmakeraw to disable echoing and special characters processing. If
we don't turn off ICRNL, TTY layer translates \r\n to \n\n.

14 years agogatppp: Check ppp instance before unref it
Zhenhua Zhang [Tue, 6 Jul 2010 09:57:37 +0000 (17:57 +0800)]
gatppp: Check ppp instance before unref it

14 years agoAlso add another rule for Pekka to .mailmap
Marcel Holtmann [Mon, 5 Jul 2010 13:25:33 +0000 (10:25 -0300)]
Also add another rule for Pekka to .mailmap

14 years agoUpdate .mailmap rules
Marcel Holtmann [Mon, 5 Jul 2010 13:23:52 +0000 (10:23 -0300)]
Update .mailmap rules

14 years agoAdd .mailmap file to fix Luiz's name spelling in git shortlog
Marcel Holtmann [Mon, 5 Jul 2010 13:18:25 +0000 (10:18 -0300)]
Add .mailmap file to fix Luiz's name spelling in git shortlog

14 years agodocumentation: add note about referencing standards
Inaky Perez-Gonzalez [Fri, 25 Jun 2010 23:15:23 +0000 (16:15 -0700)]
documentation: add note about referencing standards

14 years agotest-stkutil: Fix always true condition.
Andrzej Zaborowski [Wed, 30 Jun 2010 15:24:16 +0000 (17:24 +0200)]
test-stkutil: Fix always true condition.

14 years agotest-stkutil: Fix some memory leaks
Denis Kenzior [Fri, 2 Jul 2010 19:50:05 +0000 (14:50 -0500)]
test-stkutil: Fix some memory leaks

14 years agostkutil: Move scaddr field to gsm_sms
Andrzej Zaborowski [Wed, 30 Jun 2010 15:24:15 +0000 (17:24 +0200)]
stkutil: Move scaddr field to gsm_sms

14 years agohuawei: Add Huawei EM770 modem support
Zhenhua Zhang [Fri, 2 Jul 2010 03:04:34 +0000 (11:04 +0800)]
huawei: Add Huawei EM770 modem support

Huawei EM770W is a 3G WCDMA modem that supports HSPA/UMTS/EDGE/GPRS/GSM
data service and WCDMA/GSM short message services. It also has voice
call capability that supports both 2G and 3G network.

14 years agohuawei: Remove existing Huawei EM770 plugin
Zhenhua Zhang [Fri, 2 Jul 2010 03:04:33 +0000 (11:04 +0800)]
huawei: Remove existing Huawei EM770 plugin

14 years agohuawei: cleanup warnings from the previous patch
Denis Kenzior [Tue, 29 Jun 2010 19:44:20 +0000 (14:44 -0500)]
huawei: cleanup warnings from the previous patch

14 years agoPPP GPRS context is now done, update documentation
Kalle Valo [Tue, 29 Jun 2010 07:59:37 +0000 (10:59 +0300)]
PPP GPRS context is now done, update documentation

14 years agohuawei: reopen the GPRS context on hup
Kalle Valo [Tue, 29 Jun 2010 07:59:31 +0000 (10:59 +0300)]
huawei: reopen the GPRS context on hup

Huawei always closes the tty port after PPP disconnect. Handle this in
huawei plugin, similarly as done with novatel. Now there's no need
to unplug the modem after disconnection.

Tested with Huawei E1552.

Based on a patch by Marcel Holtmann:

commit 0329a6ceaf8f69857cb5f8437b9db86ca327ef1d
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Mon Jun 7 02:36:12 2010 -0700

    Reopen the GPRS context channel when the modem closes it after PPP

14 years agoatmodem: Don't unregister *EPEV in *EPEV handler.
Andrzej Zaborowski [Tue, 29 Jun 2010 03:00:27 +0000 (05:00 +0200)]
atmodem: Don't unregister *EPEV in *EPEV handler.

Handlers are called when looping over the unsolicited responses hash,
registering or unregistering modifies that hash and confuses glib.

14 years agombm: use CPIN? to check if SIM is missing
Pekka Pessi [Tue, 29 Jun 2010 11:06:41 +0000 (14:06 +0300)]
mbm: use CPIN? to check if SIM is missing

AT+CRSM=242 is not supported by all mbm models.

14 years agoDocumented Present property in sim-api.txt.
Pekka Pessi [Mon, 28 Jun 2010 18:20:12 +0000 (21:20 +0300)]
Documented Present property in sim-api.txt.

14 years agogsmdial: Wait for a no carrier before sending CFUN
Denis Kenzior [Tue, 29 Jun 2010 17:15:44 +0000 (12:15 -0500)]
gsmdial: Wait for a no carrier before sending CFUN

14 years agotest-server: Send a NO_CARRIER when ppp is done
Denis Kenzior [Tue, 29 Jun 2010 17:12:42 +0000 (12:12 -0500)]
test-server: Send a NO_CARRIER when ppp is done

14 years agotest-server: Update to the new API
Denis Kenzior [Tue, 29 Jun 2010 17:01:34 +0000 (12:01 -0500)]
test-server: Update to the new API

14 years agoppp: Don't accept 0 ip-addr/dns1/dns2
Denis Kenzior [Tue, 29 Jun 2010 16:55:18 +0000 (11:55 -0500)]
ppp: Don't accept 0 ip-addr/dns1/dns2

14 years agoppp: Refactor server-side API
Denis Kenzior [Tue, 29 Jun 2010 16:53:11 +0000 (11:53 -0500)]
ppp: Refactor server-side API

The biggest update here is that the server needs to be in dormant mode
by default, so as not to send a Configure-Req to the peer until the peer
is ready.  This requires adding special constructor for LCP to
initialize it to Stopped state instead of initial state.

Along with this, we pass the server local IP directly to the ppp server
constructor.