platform/upstream/ofono.git
14 years agosms: Tweak the Bearer API
Denis Kenzior [Fri, 25 Jun 2010 22:49:36 +0000 (17:49 -0500)]
sms: Tweak the Bearer API

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

14 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

14 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

14 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

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

14 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

14 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

14 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

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

14 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

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

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

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

14 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]

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

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

14 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

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

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

14 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

14 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()

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

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

14 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

14 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)

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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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

14 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

14 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

14 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

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

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

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

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

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

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

14 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

14 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

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

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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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)

14 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

14 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

14 years agotest-server: Fix GIOChannel leak in create_tty
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:44 +0000 (13:50 +0800)]
test-server: Fix GIOChannel leak in create_tty

Remove client_io and unref server_io after creating GAtServer.

14 years agogatserver: Check for disconnection when resuming
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:41 +0000 (13:50 +0800)]
gatserver: Check for disconnection when resuming

If the internal GAtIO is no longer valid, treat it as if our channel was
disconnected.

14 years agogatserver: Suspend/resume GAtServer with GAtIO
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:40 +0000 (13:50 +0800)]
gatserver: Suspend/resume GAtServer with GAtIO

Support g_at_server_suspend and g_at_server_resume operation by using
GAtIO to handle IO related function.

14 years agohfp: Use bluetooth_parse_properties
Denis Kenzior [Thu, 17 Jun 2010 10:31:05 +0000 (05:31 -0500)]
hfp: Use bluetooth_parse_properties

Instead of the local version

14 years agobluetooth: Rename & expose parse_properties
Denis Kenzior [Thu, 17 Jun 2010 10:30:25 +0000 (05:30 -0500)]
bluetooth: Rename & expose parse_properties

14 years agohfp: Use the bluetooth_send_with_reply
Denis Kenzior [Thu, 17 Jun 2010 10:23:11 +0000 (05:23 -0500)]
hfp: Use the bluetooth_send_with_reply

Instead of send_method_call_with_reply

14 years agobluetooth: Rename send_method_call_with_reply
Denis Kenzior [Thu, 17 Jun 2010 10:22:05 +0000 (05:22 -0500)]
bluetooth: Rename send_method_call_with_reply

14 years agoRemove send_method_call from hfp.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:26 +0000 (15:04 -0300)]
Remove send_method_call from hfp.c

14 years agoMove create_path() to bluetooth plugin
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:27 +0000 (15:04 -0300)]
Move create_path() to bluetooth plugin

14 years agoAdd parse properties stuff to bluetooth.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:24 +0000 (15:04 -0300)]
Add parse properties stuff to bluetooth.c

14 years agoAdd send_method_call_with_reply to bluetooth.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:23 +0000 (15:04 -0300)]
Add send_method_call_with_reply to bluetooth.c

14 years agoAdd bluetooth plugin skeleton.
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:22 +0000 (15:04 -0300)]
Add bluetooth plugin skeleton.

The bluetooth plugin has bluetooth_resgister_uuid() and
bluetooth_unresgister_uuid() where bluetooth profiles plugins such as HFP
and DUN can register themselves to get know about BlueZ stuff ( new
devices, bluetoothd shutdown, etc..)

14 years agoFix: potential to crash in atmodem
Denis Kenzior [Thu, 17 Jun 2010 09:24:08 +0000 (04:24 -0500)]
Fix: potential to crash in atmodem

Some callbacks in call-meter were assuming that a modem follows 27.007
and actually returns a string.  Some modems don't return a string that
is properly formatted (e.g. in quotes).  The strtol was thus accessing
uninitialized memory and crashing ofono.

14 years agostkutil: Make sure bc_repeat is used properly
Denis Kenzior [Wed, 16 Jun 2010 22:26:33 +0000 (17:26 -0500)]
stkutil: Make sure bc_repeat is used properly

The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.

14 years agostkutil: Merge two versions of bcch_channel_list
Denis Kenzior [Wed, 16 Jun 2010 22:23:44 +0000 (17:23 -0500)]
stkutil: Merge two versions of bcch_channel_list

14 years agostk: Add parser for UTRAN meas qualifier objects
Yang Gu [Sun, 13 Jun 2010 09:43:22 +0000 (17:43 +0800)]
stk: Add parser for UTRAN meas qualifier objects

14 years agostk: Add parser for PDP activation param objects
Yang Gu [Sun, 13 Jun 2010 09:43:21 +0000 (17:43 +0800)]
stk: Add parser for PDP activation param objects

14 years agostk: Add parser for bcch channel list objects
Yang Gu [Sun, 13 Jun 2010 09:43:19 +0000 (17:43 +0800)]
stk: Add parser for bcch channel list objects

14 years agostk: Add parser for cell broadcast page objects
Yang Gu [Sun, 13 Jun 2010 09:43:18 +0000 (17:43 +0800)]
stk: Add parser for cell broadcast page objects

14 years agoAdd several proactive command parsers
Yang Gu [Sun, 13 Jun 2010 09:43:17 +0000 (17:43 +0800)]
Add several proactive command parsers

14 years agoteststk: Add test for send ss parser
Yang Gu [Sun, 13 Jun 2010 09:43:12 +0000 (17:43 +0800)]
teststk: Add test for send ss parser

14 years agostk: Add parser for send ss commands
Yang Gu [Sun, 13 Jun 2010 09:43:11 +0000 (17:43 +0800)]
stk: Add parser for send ss commands

14 years agoFix previous commit that broke reference to PDU string buffer
Marcel Holtmann [Wed, 16 Jun 2010 14:49:14 +0000 (16:49 +0200)]
Fix previous commit that broke reference to PDU string buffer

14 years agoFix memory allocation handling for STK Proactive command debug
Marcel Holtmann [Wed, 16 Jun 2010 13:55:53 +0000 (15:55 +0200)]
Fix memory allocation handling for STK Proactive command debug

14 years agoUse PROFILE DOWNLOAD to detect SIM Toolkit support for MBM
Marcel Holtmann [Wed, 16 Jun 2010 08:38:08 +0000 (10:38 +0200)]
Use PROFILE DOWNLOAD to detect SIM Toolkit support for MBM

14 years agostkutil: Minor style cleanups in stkutil
Denis Kenzior [Tue, 15 Jun 2010 16:03:53 +0000 (11:03 -0500)]
stkutil: Minor style cleanups in stkutil

14 years agostkutil: Add Terminal Applications envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:57 +0000 (12:39 +0200)]
stkutil: Add Terminal Applications envelope builder

This is not a terribly useful function as the user still needs to
split the list in separate envelopes.  The .type field could be an
enum.

14 years agostkutil: Add MMS Notification DL envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:56 +0000 (12:39 +0200)]
stkutil: Add MMS Notification DL envelope builder

14 years agostkutil: Add MMS Transfer Status envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:55 +0000 (12:39 +0200)]
stkutil: Add MMS Transfer Status envelope builder

14 years agostkutil: Add the USSD Download envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:54 +0000 (12:39 +0200)]
stkutil: Add the USSD Download envelope builder

14 years agotest-stkutil: Tests for Timer Expiration envelope
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:53 +0000 (12:39 +0200)]
test-stkutil: Tests for Timer Expiration envelope

14 years agostkutil: Add the Timer Expiration envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:52 +0000 (12:39 +0200)]
stkutil: Add the Timer Expiration envelope builder

14 years agotest-stkutil: Tests for Event Download envelope
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:51 +0000 (12:39 +0200)]
test-stkutil: Tests for Event Download envelope

14 years agostkutil: Add the Event Download envelope builder
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:50 +0000 (12:39 +0200)]
stkutil: Add the Event Download envelope builder

14 years agostkutil: Refactor struct stk_frames_info
Andrzej Zaborowski [Fri, 11 Jun 2010 10:39:49 +0000 (12:39 +0200)]
stkutil: Refactor struct stk_frames_info