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

13 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

13 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

13 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.

13 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

13 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

13 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.

13 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

13 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

13 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

13 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

13 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.

13 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.

13 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.

13 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

13 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

13 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

13 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

13 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.

13 years agotest-server: Update to the new API
Denis Kenzior [Tue, 29 Jun 2010 16:50:25 +0000 (11:50 -0500)]
test-server: Update to the new API

13 years agoppp: Tweak set_server_info API some more
Denis Kenzior [Tue, 29 Jun 2010 16:49:40 +0000 (11:49 -0500)]
ppp: Tweak set_server_info API some more

13 years agohdlc: Stop recording packets to stdout (fd = 0)
Denis Kenzior [Tue, 29 Jun 2010 16:46:40 +0000 (11:46 -0500)]
hdlc: Stop recording packets to stdout (fd = 0)

13 years agohdlc: Don't bother recording empty packets
Denis Kenzior [Tue, 29 Jun 2010 16:46:20 +0000 (11:46 -0500)]
hdlc: Don't bother recording empty packets

13 years agogsmdial: Configure network interface for PPP
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:09 +0000 (11:19 +0800)]
gsmdial: Configure network interface for PPP

13 years agotest-server: Configure network interface
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:08 +0000 (11:19 +0800)]
test-server: Configure network interface

Require ROOT priviledge to:
1. Run external command to configure and bring up network interface.
2. Enable kernel IP forwarding.

13 years agoppp: Tweak the set_server_info API
Denis Kenzior [Mon, 28 Jun 2010 22:38:54 +0000 (17:38 -0500)]
ppp: Tweak the set_server_info API

13 years agotest-server: Add PPP server support
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:07 +0000 (11:19 +0800)]
test-server: Add PPP server support

So that gsmdial and wvdial could talk to test-server and establish PPP
connection.

13 years agoppp: Refactor server RCR action
Denis Kenzior [Mon, 28 Jun 2010 17:13:24 +0000 (12:13 -0500)]
ppp: Refactor server RCR action

We need to generate the Conf-Rej / Conf-Nak in the same order as the
client sent us.

13 years agoppp: Refactor client RCR action
Denis Kenzior [Mon, 28 Jun 2010 16:16:20 +0000 (11:16 -0500)]
ppp: Refactor client RCR action

13 years agoppp: Simplify the logic by re-using code
Denis Kenzior [Mon, 28 Jun 2010 16:15:44 +0000 (11:15 -0500)]
ppp: Simplify the logic by re-using code

13 years agoppp: Minor style tweaks
Denis Kenzior [Mon, 28 Jun 2010 15:21:33 +0000 (10:21 -0500)]
ppp: Minor style tweaks

13 years agoatmodem: Update to the new PPP API
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
atmodem: Update to the new PPP API

13 years agogsmdial: Update to the new API
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
gsmdial: Update to the new API

13 years agogatppp: Add PPP server extension
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
gatppp: Add PPP server extension

1. Add interface to set PPP server info by g_at_ppp_set_server_info.
2. Pass local and peer address through IPCP handshaking.

13 years agosms: Update doc about the default Bearer setting
Denis Kenzior [Fri, 25 Jun 2010 22:53:12 +0000 (17:53 -0500)]
sms: Update doc about the default Bearer setting

13 years agosms: Tweak the Bearer API
Denis Kenzior [Fri, 25 Jun 2010 22:49:36 +0000 (17:49 -0500)]
sms: Tweak the Bearer API

13 years agoUpdate TODO & overview.txt
Denis Kenzior [Fri, 25 Jun 2010 19:24:10 +0000 (14:24 -0500)]
Update TODO & overview.txt

13 years agoatmodem: Add CGSMS support to sms driver
Denis Kenzior [Fri, 25 Jun 2010 19:21:48 +0000 (14:21 -0500)]
atmodem: Add CGSMS support to sms driver

13 years agosms: Add support for SMS Bearer settings
Denis Kenzior [Fri, 25 Jun 2010 19:21:35 +0000 (14:21 -0500)]
sms: Add support for SMS Bearer settings

13 years agosms: Add driver API for SMS bearer settings
Denis Kenzior [Fri, 25 Jun 2010 19:20:23 +0000 (14:20 -0500)]
sms: Add driver API for SMS bearer settings

13 years agoTODO: Add owner
Denis Kenzior [Fri, 25 Jun 2010 19:25:22 +0000 (14:25 -0500)]
TODO: Add owner

13 years agogprs: Fix to attachment race condition
Denis Kenzior [Fri, 25 Jun 2010 17:18:14 +0000 (12:18 -0500)]
gprs: Fix to attachment race condition

Sometimes we get unsolicited attachment status before our query
finishes.  If the client is fast enough they can attempt to attach
and get the AttachInProgress error

13 years agosms: Update API with UseDeliveryReports property
Denis Kenzior [Fri, 25 Jun 2010 19:12:32 +0000 (14:12 -0500)]
sms: Update API with UseDeliveryReports property

13 years agohso: Don't query tech if not registered or roaming
Denis Kenzior [Fri, 25 Jun 2010 01:51:59 +0000 (20:51 -0500)]
hso: Don't query tech if not registered or roaming

{NetworkRegistration} [/hso0] LocationAreaCode = 34591
{NetworkRegistration} [/hso0] CellId = 5903759
{NetworkRegistration} [/hso0] Strength = 32
{NetworkRegistration} [/hso0] Strength = 22
{PrimaryDataContext} [/hso0/primarycontext1] Settings =
dbus.Dictionary({}, signature=dbus.Signature('sv'), variant_level=1)
{PrimaryDataContext} [/hso0/primarycontext1] Active = 0
{DataConnectionManager} [/hso0] Attached = 0
{NetworkRegistration} [/hso0] Status = searching
{NetworkRegistration} [/hso0] Technology = umts  <--- Oops
{NetworkOperator} [/hso0/operator/26201] Status = available
{NetworkRegistration} [/hso0] Name =
{NetworkRegistration} [/hso0] Status = registered
{NetworkRegistration} [/hso0] LocationAreaCode = 35342
{NetworkRegistration} [/hso0] CellId = 5903759
{NetworkRegistration} [/hso0] Technology = edge

13 years agosms: minor style fix
Denis Kenzior [Thu, 24 Jun 2010 19:24:00 +0000 (14:24 -0500)]
sms: minor style fix

13 years agosms: Don't bother setting SCA if we can't query
Denis Kenzior [Thu, 24 Jun 2010 19:13:04 +0000 (14:13 -0500)]
sms: Don't bother setting SCA if we can't query

13 years agoppp: Fix incorrect packet length for little-endian
Zhenhua Zhang [Wed, 23 Jun 2010 09:46:37 +0000 (17:46 +0800)]
ppp: Fix incorrect packet length for little-endian

packet->length is in TCP/IP network byte order. It needs to call ntohs()
to convert to host byte order, which is little-endian.

13 years agostkutil: Alpha Id is optional for Select Item.
Andrzej Zaborowski [Wed, 23 Jun 2010 04:13:50 +0000 (06:13 +0200)]
stkutil: Alpha Id is optional for Select Item.

13 years agostkutil: Refactor command parser error handling
Andrzej Zaborowski [Tue, 22 Jun 2010 11:20:44 +0000 (13:20 +0200)]
stkutil: Refactor command parser error handling

When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found.  We need the command details to be able to
even respond to the command.

This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.

13 years agoCheck sanity the MNC length value from the SIM card
Marcel Holtmann [Tue, 22 Jun 2010 15:15:06 +0000 (17:15 +0200)]
Check sanity the MNC length value from the SIM card

In case the SIM entry is wrong or we force reading of it, nasty things
like this can happen:

ofonod[12456]: Control:> AT+CRSM=176,28589,0,0,4\r
ofonod[12456]: Control:< +CRSM: 144,0,"00FFFF"\r\n\r\nOK\r\n
*** buffer overflow detected ***: ./src/ofonod terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3e42efb417]
/lib64/libc.so.6[0x3e42ef9310]
/lib64/libc.so.6(__strncpy_chk+0x17b)[0x3e42ef85cb]

13 years agoFix huawei udev rules
Denis Kenzior [Tue, 22 Jun 2010 14:46:25 +0000 (09:46 -0500)]
Fix huawei udev rules

13 years agohfp: Fix style issues
Denis Kenzior [Tue, 22 Jun 2010 03:53:05 +0000 (22:53 -0500)]
hfp: Fix style issues

13 years agohfp: use bluetooth helpers and remove similar code
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:23 +0000 (05:51 -0300)]
hfp: use bluetooth helpers and remove similar code

13 years agobluetooth: Various style issues
Denis Kenzior [Tue, 22 Jun 2010 03:48:15 +0000 (22:48 -0500)]
bluetooth: Various style issues

13 years agobluetooth: add PropertyChanged watch
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:22 +0000 (05:51 -0300)]
bluetooth: add PropertyChanged watch

This one is a bit diferent from the hfp.c one, so a separated patch for
it.

13 years agobluetooth: add watches for service and adapters
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:21 +0000 (05:51 -0300)]
bluetooth: add watches for service and adapters

Exactly the same code from hfp.c

13 years agobluetooth: add device_properties_cb() and has_uuid()
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:20 +0000 (05:51 -0300)]
bluetooth: add device_properties_cb() and has_uuid()

13 years agobluetooth: Move functions from hfp.c to bluetooth.c
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:19 +0000 (05:51 -0300)]
bluetooth: Move functions from hfp.c to bluetooth.c

The part that call device_properties_cb is commented to permit this patch
compile.
device_properties_cb() will be changed, so it will have separated patch.

13 years agostorage: whitespace issue
Denis Kenzior [Mon, 21 Jun 2010 20:40:14 +0000 (15:40 -0500)]
storage: whitespace issue

13 years agosmsutil: Fix up some comment style
Denis Kenzior [Mon, 21 Jun 2010 20:33:13 +0000 (15:33 -0500)]
smsutil: Fix up some comment style

13 years agotest-common: Avoid accessing an unitialised variable.
Andrzej Zaborowski [Mon, 21 Jun 2010 08:41:10 +0000 (10:41 +0200)]
test-common: Avoid accessing an unitialised variable.

Fixes a segfault, reported by valrgind as:
[...]
==6300== Use of uninitialised value of size 4
==6300==    at 0x8048B4D: test_invalid (test-common.c:81)

13 years agostkutil: Remove obsolete comment.
Andrzej Zaborowski [Mon, 21 Jun 2010 08:41:11 +0000 (10:41 +0200)]
stkutil: Remove obsolete comment.

13 years agoatmodem: Support CDS indicators for MBM
Denis Kenzior [Mon, 21 Jun 2010 20:03:42 +0000 (15:03 -0500)]
atmodem: Support CDS indicators for MBM

MBM does not advertise support for CNMA, yet only supports CDS style
notifications which do not need to be acknowledged.

13 years agosms: Only emit property if value actually differs
Denis Kenzior [Mon, 21 Jun 2010 18:39:17 +0000 (13:39 -0500)]
sms: Only emit property if value actually differs

13 years agotest: Fix the no-argument case
Denis Kenzior [Mon, 21 Jun 2010 18:38:57 +0000 (13:38 -0500)]
test: Fix the no-argument case

13 years agounit: Add unit tests for status report assembly
Denis Kenzior [Mon, 21 Jun 2010 20:04:43 +0000 (15:04 -0500)]
unit: Add unit tests for status report assembly

13 years agosmsutil: Take ton_npi into account in sr assembly
Denis Kenzior [Mon, 21 Jun 2010 17:48:55 +0000 (12:48 -0500)]
smsutil: Take ton_npi into account in sr assembly

13 years agosmsutil: More code cleanup
Denis Kenzior [Mon, 21 Jun 2010 17:42:23 +0000 (12:42 -0500)]
smsutil: More code cleanup

- Change the flow of the code a bit, in the case that all fragments have
  been sent and an udelivered sr arrives, we can simply remove the node
  and signal undelivered up
- We ignore temporary and temporary final status reports

13 years agosmsutil: Make code flow easier to understand
Denis Kenzior [Mon, 21 Jun 2010 17:03:14 +0000 (12:03 -0500)]
smsutil: Make code flow easier to understand

13 years agosmsutil: multiline comments to preferred style
Denis Kenzior [Mon, 21 Jun 2010 16:29:51 +0000 (11:29 -0500)]
smsutil: multiline comments to preferred style

13 years agosmsutil: Minor code style & indentation fixes
Denis Kenzior [Mon, 21 Jun 2010 16:28:56 +0000 (11:28 -0500)]
smsutil: Minor code style & indentation fixes

13 years agosms: Fixup minor style issues with status reports
Denis Kenzior [Mon, 21 Jun 2010 16:24:30 +0000 (11:24 -0500)]
sms: Fixup minor style issues with status reports

13 years agosms: Status report notify
Pasi Miettinen [Thu, 17 Jun 2010 13:14:57 +0000 (16:14 +0300)]
sms: Status report notify

13 years agosmsutil: memcpy is preferable to struct assignment
Denis Kenzior [Mon, 21 Jun 2010 16:20:56 +0000 (11:20 -0500)]
smsutil: memcpy is preferable to struct assignment

13 years agosmsutil: Streamline flow of sr add_fragment
Denis Kenzior [Mon, 21 Jun 2010 16:18:26 +0000 (11:18 -0500)]
smsutil: Streamline flow of sr add_fragment

13 years agoFix: Make distcheck pass
Denis Kenzior [Mon, 21 Jun 2010 20:20:10 +0000 (15:20 -0500)]
Fix: Make distcheck pass

No need to include history.h anyway

13 years agohistory: Make example_history use Delivery Reports
Denis Kenzior [Mon, 21 Jun 2010 20:11:30 +0000 (15:11 -0500)]
history: Make example_history use Delivery Reports

13 years agohistory: API change for status report notify
Pasi Miettinen [Thu, 17 Jun 2010 13:14:56 +0000 (16:14 +0300)]
history: API change for status report notify

13 years agosmsutil: Status report assembly
Pasi Miettinen [Thu, 17 Jun 2010 13:14:54 +0000 (16:14 +0300)]
smsutil: Status report assembly

13 years agoMention Arun's contributions
Denis Kenzior [Mon, 21 Jun 2010 14:32:33 +0000 (09:32 -0500)]
Mention Arun's contributions

13 years agoEnabling PDP Context support in atmodem.
Arun Ravindran [Fri, 18 Jun 2010 20:12:12 +0000 (23:12 +0300)]
Enabling PDP Context support in atmodem.

13 years agoTODO: PPP server support owner
Zhenhua Zhang [Mon, 21 Jun 2010 01:49:19 +0000 (09:49 +0800)]
TODO: PPP server support owner

13 years agoppp: Fix leak in pppcp_send_protocol_reject
Zhenhua Zhang [Mon, 21 Jun 2010 09:25:39 +0000 (17:25 +0800)]
ppp: Fix leak in pppcp_send_protocol_reject

Free the reject pppcp packet after ppp_transmit.

13 years agoRefactor ussd parser
Yang Gu [Thu, 17 Jun 2010 10:35:10 +0000 (18:35 +0800)]
Refactor ussd parser

13 years agoAdd test script for scanning networks
Marcel Holtmann [Sat, 19 Jun 2010 18:17:05 +0000 (20:17 +0200)]
Add test script for scanning networks

13 years agoatmodem: Use a switch/case in sim.c
Denis Kenzior [Fri, 18 Jun 2010 19:24:18 +0000 (14:24 -0500)]
atmodem: Use a switch/case in sim.c

13 years agombm: Use MBM vendor quirk of the sim driver.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:14 +0000 (15:42 +0200)]
mbm: Use MBM vendor quirk of the sim driver.

13 years agoatmodem: Add PIN entry quirk for mbm.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:13 +0000 (15:42 +0200)]
atmodem: Add PIN entry quirk for mbm.

Wait for *EPEV unsolicited response after PIN entered, otherwise the
next AT+CPIN? query still returns the old value for a fraction of a
second and ofono gets stuck until the next PIN entry attempt.

13 years agombm: Register stk driver post sim.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:12 +0000 (15:42 +0200)]
mbm: Register stk driver post sim.

13 years agombmmodem: Allow no response data for envelope.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:11 +0000 (15:42 +0200)]
mbmmodem: Allow no response data for envelope.

Partially reverts
http://git.kernel.org/?p=network/ofono/ofono.git;a=commitdiff;h=f98c6dc91702c0d14c0afa2a4e32102d3105568d

13 years agotest-stkutil: Add a More Time response builder test
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:10 +0000 (15:42 +0200)]
test-stkutil: Add a More Time response builder test

13 years agostkutil: Add More Time terminal response builder
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:09 +0000 (15:42 +0200)]
stkutil: Add More Time terminal response builder

13 years agostkutil: USSD max len is 160
Denis Kenzior [Fri, 18 Jun 2010 18:59:15 +0000 (13:59 -0500)]
stkutil: USSD max len is 160

13 years agostk: Add parser for timing advance objects
Yang Gu [Thu, 17 Jun 2010 10:35:11 +0000 (18:35 +0800)]
stk: Add parser for timing advance objects

13 years agoteststk: Add test for send ussd parser
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
teststk: Add test for send ussd parser

13 years agosmsutil: Add a decoder for ussd pdus
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
smsutil: Add a decoder for ussd pdus

13 years agostk: Add parser for send ussd commands
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
stk: Add parser for send ussd commands

13 years agohuawei: Import Huawei rules
Florian Steinel [Sun, 13 Jun 2010 11:18:35 +0000 (13:18 +0200)]
huawei: Import Huawei rules

From 10-Huawei-Datacard.rules (Linux Driver 4.08.01.108.tar.gz)

13 years agogathdlc: Don't crash if unreffed in callback
Denis Kenzior [Fri, 18 Jun 2010 17:23:10 +0000 (12:23 -0500)]
gathdlc: Don't crash if unreffed in callback

13 years agogsmdial: Unref ppp when we get disconnected
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:48 +0000 (13:50 +0800)]
gsmdial: Unref ppp when we get disconnected