platform/upstream/ofono.git
14 years agoRelease 0.23 0.23
Marcel Holtmann [Sat, 12 Jun 2010 19:56:53 +0000 (21:56 +0200)]
Release 0.23

14 years agoJust call the feature "net" instead of "netreg"
Marcel Holtmann [Sat, 12 Jun 2010 19:41:48 +0000 (21:41 +0200)]
Just call the feature "net" instead of "netreg"

14 years agoatmodem: Shutdown ppp cleanly on remove
Denis Kenzior [Fri, 11 Jun 2010 14:17:27 +0000 (09:17 -0500)]
atmodem: Shutdown ppp cleanly on remove

There is a race condition from udev / kernel when a USB dongle is
removed.  Sometimes all ports are removed first (and the io channels for
those ports are signaled as hupped) while other times the udev remove
event fires first.

If the latter happens, then gprs_context remove is called with a
potentially live ppp object.  This patch shuts it down cleanly.

14 years agoatmodem: Always unref ppp when context is down
Denis Kenzior [Fri, 11 Jun 2010 14:16:25 +0000 (09:16 -0500)]
atmodem: Always unref ppp when context is down

14 years agogatppp: whitespace issues
Denis Kenzior [Fri, 11 Jun 2010 14:15:48 +0000 (09:15 -0500)]
gatppp: whitespace issues

14 years agogatppp: Unref HDLC when unrefing PPP
Denis Kenzior [Fri, 11 Jun 2010 14:15:32 +0000 (09:15 -0500)]
gatppp: Unref HDLC when unrefing PPP

14 years agogathdlc: Free the main HDLC structure on unref
Denis Kenzior [Fri, 11 Jun 2010 14:15:03 +0000 (09:15 -0500)]
gathdlc: Free the main HDLC structure on unref

14 years agoDisable CNMA support for Novatel based devices
Marcel Holtmann [Fri, 11 Jun 2010 04:06:48 +0000 (21:06 -0700)]
Disable CNMA support for Novatel based devices

14 years agoatmodem: Allow ME & SM for status report store
Denis Kenzior [Fri, 11 Jun 2010 03:23:05 +0000 (22:23 -0500)]
atmodem: Allow ME & SM for status report store

14 years agoatmodem: Force CDSI delivery for Novatel devices
Denis Kenzior [Fri, 11 Jun 2010 01:21:33 +0000 (20:21 -0500)]
atmodem: Force CDSI delivery for Novatel devices

14 years agoatmodem: Add support for status report via CDSI
Denis Kenzior [Fri, 11 Jun 2010 01:13:50 +0000 (20:13 -0500)]
atmodem: Add support for status report via CDSI

14 years agoatmodem: Use atutil based functions
Denis Kenzior [Fri, 11 Jun 2010 01:08:10 +0000 (20:08 -0500)]
atmodem: Use atutil based functions

14 years agoatmodem: Add utility for parsing CMTI/CDSI/CBMI
Denis Kenzior [Fri, 11 Jun 2010 01:06:26 +0000 (20:06 -0500)]
atmodem: Add utility for parsing CMTI/CDSI/CBMI

14 years agoatmodem: Register for notifications after CMGL
Denis Kenzior [Thu, 10 Jun 2010 23:43:30 +0000 (18:43 -0500)]
atmodem: Register for notifications after CMGL

14 years agoatmodem: Split out the +CPMS sender
Denis Kenzior [Thu, 10 Jun 2010 23:41:29 +0000 (18:41 -0500)]
atmodem: Split out the +CPMS sender

Just before sending a CMGR for +CMTI notification, use need to
optionally send a CPMS to select the proper storage.  This should be
done in a separate function for potential re-use by CDSI

14 years agoRemove hfpmodem's header guard
Gustavo F. Padovan [Tue, 8 Jun 2010 07:44:00 +0000 (04:44 -0300)]
Remove hfpmodem's header guard

14 years agoAdd support for Features property on modem interface
Marcel Holtmann [Thu, 10 Jun 2010 03:46:10 +0000 (20:46 -0700)]
Add support for Features property on modem interface

14 years agoMove data connection manager interface constants into common include
Marcel Holtmann [Thu, 10 Jun 2010 03:38:50 +0000 (20:38 -0700)]
Move data connection manager interface constants into common include

14 years agoRename CbsManger into CellBroadcast
Marcel Holtmann [Thu, 10 Jun 2010 03:07:11 +0000 (20:07 -0700)]
Rename CbsManger into CellBroadcast

Other D-Bus interfaces use clear descriptions like SupplementaryServices
or NetworkRegistration. So use CellBroadcast for cell broadcast support.

14 years agoAnd some more minor coding style cleanup in SMS driver
Marcel Holtmann [Thu, 10 Jun 2010 02:13:57 +0000 (19:13 -0700)]
And some more minor coding style cleanup in SMS driver

14 years agoFix coding style for one comment in SMS driver
Marcel Holtmann [Thu, 10 Jun 2010 02:12:24 +0000 (19:12 -0700)]
Fix coding style for one comment in SMS driver

14 years agoAdd test script to enable/disable use of delivery reports
Marcel Holtmann [Thu, 10 Jun 2010 02:04:25 +0000 (19:04 -0700)]
Add test script to enable/disable use of delivery reports

14 years agoAdd test script for setting CBS topics
Marcel Holtmann [Thu, 10 Jun 2010 01:58:38 +0000 (18:58 -0700)]
Add test script for setting CBS topics

14 years agoEnable Qualcomm specific CBS quirk for Novatel and Huawei devices
Marcel Holtmann [Thu, 10 Jun 2010 01:42:09 +0000 (18:42 -0700)]
Enable Qualcomm specific CBS quirk for Novatel and Huawei devices

14 years agoAdd quirk for Qualcomm issues with setting CBS topic ranges
Marcel Holtmann [Thu, 10 Jun 2010 01:40:59 +0000 (18:40 -0700)]
Add quirk for Qualcomm issues with setting CBS topic ranges

14 years agoCoding style fix for the PIN type table
Marcel Holtmann [Thu, 10 Jun 2010 01:23:05 +0000 (18:23 -0700)]
Coding style fix for the PIN type table

14 years agostkutil: Refactor stk_location_info
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:38 +0000 (12:08 +0200)]
stkutil: Refactor stk_location_info

In some cases an empty stk_location_info means that no object should be
emitted (e.g. it is optional) and in other cases an empty object should
be emitted.  This is context specific to the terminal response /
envelope and thus we break this up into two separate functions.

14 years agotest-stkutil: MO SMS Control envelope tests
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:37 +0000 (12:08 +0200)]
test-stkutil: MO SMS Control envelope tests

14 years agostkutil: Add MO SMS Control envelope builder
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:36 +0000 (12:08 +0200)]
stkutil: Add MO SMS Control envelope builder

14 years agosimutil: Remove unneeded forward-declaration
Denis Kenzior [Wed, 9 Jun 2010 18:08:23 +0000 (13:08 -0500)]
simutil: Remove unneeded forward-declaration

14 years agosimutil: Fix MMC MNC encoding for 2-digit MNCs.
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:33 +0000 (12:08 +0200)]
simutil: Fix MMC MNC encoding for 2-digit MNCs.

14 years agoutil: Add a "sim string" encoding utility.
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:32 +0000 (12:08 +0200)]
util: Add a "sim string" encoding utility.

14 years agotest-stkutil: Menu Selection envelope tests
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:31 +0000 (12:08 +0200)]
test-stkutil: Menu Selection envelope tests

14 years agostkutil: Add the Menu Selection envelope builder
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:30 +0000 (12:08 +0200)]
stkutil: Add the Menu Selection envelope builder

14 years agotest-stkutil: CBS-PP Data Download envelope tests
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:29 +0000 (12:08 +0200)]
test-stkutil: CBS-PP Data Download envelope tests

14 years agoFix: download CBS to SIM even when "Powered" is 0
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:28 +0000 (12:08 +0200)]
Fix: download CBS to SIM even when "Powered" is 0

14 years agostk: Use envelope encoding utility from stkutil.c
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:27 +0000 (12:08 +0200)]
stk: Use envelope encoding utility from stkutil.c

14 years agostkutil: Add CBS-PP Data Download envelope builder
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:26 +0000 (12:08 +0200)]
stkutil: Add CBS-PP Data Download envelope builder

14 years agotest-stkutil: SMS-PP Data Download envelope tests
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:25 +0000 (12:08 +0200)]
test-stkutil: SMS-PP Data Download envelope tests

14 years agostkutil: Add SMS-PP Data Download envelope builder
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:24 +0000 (12:08 +0200)]
stkutil: Add SMS-PP Data Download envelope builder

14 years agostkutil: Use static buf in stk_pdu_from_response
Andrzej Zaborowski [Mon, 7 Jun 2010 10:08:23 +0000 (12:08 +0200)]
stkutil: Use static buf in stk_pdu_from_response

14 years agoatmodem: Fix CPUC parser
Denis Kenzior [Tue, 8 Jun 2010 01:36:40 +0000 (20:36 -0500)]
atmodem: Fix CPUC parser

Apparently some modems are extra stupid:

AT+CPUC?\r
\r\n+CPUC: \r\nOK\r\n

So if we fail to parse the response, return an error

14 years agogatchat: Check for disconnection when resuming
Denis Kenzior [Tue, 8 Jun 2010 00:32:26 +0000 (19:32 -0500)]
gatchat: Check for disconnection when resuming

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

14 years agohuawei: Rework huawei plugin
Denis Kenzior [Tue, 8 Jun 2010 00:07:05 +0000 (19:07 -0500)]
huawei: Rework huawei plugin

- Use the PCUI (event) port for all commands unrelated to ppp
- Use the Modem port for ppp

14 years agonetreg: whitespace style
Denis Kenzior [Tue, 8 Jun 2010 00:06:57 +0000 (19:06 -0500)]
netreg: whitespace style

14 years agonetreg: Add Huawei RSSI unsolicited callback
Denis Kenzior [Tue, 8 Jun 2010 00:06:36 +0000 (19:06 -0500)]
netreg: Add Huawei RSSI unsolicited callback

14 years agoMention Florian's contributions
Denis Kenzior [Tue, 8 Jun 2010 00:05:27 +0000 (19:05 -0500)]
Mention Florian's contributions

14 years agoudev: Fixup Huawei detection
Denis Kenzior [Tue, 8 Jun 2010 00:04:36 +0000 (19:04 -0500)]
udev: Fixup Huawei detection

14 years agoudev: Add support for Huawei E176
Florian Steinel [Sun, 30 May 2010 13:47:21 +0000 (15:47 +0200)]
udev: Add support for Huawei E176

14 years agocbs: Send ETWS topics last
Denis Kenzior [Mon, 7 Jun 2010 20:08:58 +0000 (15:08 -0500)]
cbs: Send ETWS topics last

14 years agotest: Refactor previous commit
Denis Kenzior [Mon, 7 Jun 2010 18:14:50 +0000 (13:14 -0500)]
test: Refactor previous commit

14 years agotest: Set UseDeliveryReports in send-sms
Pasi Miettinen [Mon, 7 Jun 2010 09:53:29 +0000 (12:53 +0300)]
test: Set UseDeliveryReports in send-sms

14 years agosms: style fix, remove extra newline
Denis Kenzior [Mon, 7 Jun 2010 18:05:50 +0000 (13:05 -0500)]
sms: style fix, remove extra newline

14 years agosms: Add UseDeliveryReports property
Pasi Miettinen [Mon, 7 Jun 2010 09:53:28 +0000 (12:53 +0300)]
sms: Add UseDeliveryReports property

14 years agotest-sms: Update unit test to the new API
Pasi Miettinen [Mon, 7 Jun 2010 09:53:27 +0000 (12:53 +0300)]
test-sms: Update unit test to the new API

14 years agosmsutil: Add option to use delivery reports
Pasi Miettinen [Mon, 7 Jun 2010 09:53:26 +0000 (12:53 +0300)]
smsutil: Add option to use delivery reports

14 years agoinclude: More style issues
Denis Kenzior [Mon, 7 Jun 2010 17:02:50 +0000 (12:02 -0500)]
include: More style issues

14 years agonetwork: Some style issues
Denis Kenzior [Mon, 7 Jun 2010 17:02:11 +0000 (12:02 -0500)]
network: Some style issues

14 years agoatmodem: Optimize cops queries
Denis Kenzior [Mon, 7 Jun 2010 16:24:13 +0000 (11:24 -0500)]
atmodem: Optimize cops queries

This patch is meant to do two things:
- Some modems, like the Novatel, report bogus operator information when
  not registered, as opposed to simply returning empty strings.  In this
  case we're a little bit more explicit about checking the returned
  mcc/mnc string
- If we determine that the mcc/mnc string is bogus, we don't schedule
  the alphanumeric cops query and return early.

14 years agonetreg: Ignore operator info when not registered
Denis Kenzior [Mon, 7 Jun 2010 16:22:13 +0000 (11:22 -0500)]
netreg: Ignore operator info when not registered

Sometimes when we roam off the cell or are simply not registered, the
modem still reports a bogus operator.  We explicitly ignore this
condition in the core.

14 years agoAdd test script for enabling cell broadcast
Marcel Holtmann [Mon, 7 Jun 2010 11:02:31 +0000 (04:02 -0700)]
Add test script for enabling cell broadcast

14 years agoReopen the GPRS context channel when the modem closes it after PPP
Marcel Holtmann [Mon, 7 Jun 2010 09:36:12 +0000 (02:36 -0700)]
Reopen the GPRS context channel when the modem closes it after PPP

14 years agoRestore GAtChat disconnect handling when resuming a chat session
Marcel Holtmann [Mon, 7 Jun 2010 09:18:39 +0000 (02:18 -0700)]
Restore GAtChat disconnect handling when resuming a chat session

14 years agoUpdate TODO
Denis Kenzior [Mon, 7 Jun 2010 01:00:52 +0000 (20:00 -0500)]
Update TODO

14 years agoUse event channel for SMS, CBS and USSD with Huawei devices
Marcel Holtmann [Mon, 7 Jun 2010 01:22:03 +0000 (18:22 -0700)]
Use event channel for SMS, CBS and USSD with Huawei devices

14 years agoAdd special SMS handling for Huawei based devices
Marcel Holtmann [Mon, 7 Jun 2010 01:21:30 +0000 (18:21 -0700)]
Add special SMS handling for Huawei based devices

14 years agoEnable CBS and USSD for Huawei modems
Marcel Holtmann [Sun, 6 Jun 2010 22:52:02 +0000 (15:52 -0700)]
Enable CBS and USSD for Huawei modems

14 years agoFix detection of Huawei E220 and E270 modems
Marcel Holtmann [Sun, 6 Jun 2010 22:51:36 +0000 (15:51 -0700)]
Fix detection of Huawei E220 and E270 modems

14 years agoMove AT_ODO quirk into HSO driver instead of network registration
Marcel Holtmann [Sun, 6 Jun 2010 22:27:34 +0000 (15:27 -0700)]
Move AT_ODO quirk into HSO driver instead of network registration

14 years agoUse hsomodem instead of hso for Option HSO GPRS atom driver
Marcel Holtmann [Sun, 6 Jun 2010 22:20:48 +0000 (15:20 -0700)]
Use hsomodem instead of hso for Option HSO GPRS atom driver

14 years agoEnable Option specific radio settings
Marcel Holtmann [Sun, 6 Jun 2010 22:19:32 +0000 (15:19 -0700)]
Enable Option specific radio settings

14 years agoAdd support for Option specific radio settings
Marcel Holtmann [Sun, 6 Jun 2010 22:18:57 +0000 (15:18 -0700)]
Add support for Option specific radio settings

14 years agoUse unquoted strings for cell information of Novatel devices
Marcel Holtmann [Sun, 6 Jun 2010 20:14:57 +0000 (13:14 -0700)]
Use unquoted strings for cell information of Novatel devices

14 years agoSet Novatel quirk also for the GPRS atom
Marcel Holtmann [Sun, 6 Jun 2010 20:13:02 +0000 (13:13 -0700)]
Set Novatel quirk also for the GPRS atom

14 years agoAdd support for handling CNTI=0 request with Novatel devices
Marcel Holtmann [Sun, 6 Jun 2010 20:12:37 +0000 (13:12 -0700)]
Add support for handling CNTI=0 request with Novatel devices

14 years agoCheck the supported technologies for Novatel devices on startup
Marcel Holtmann [Sun, 6 Jun 2010 19:05:10 +0000 (12:05 -0700)]
Check the supported technologies for Novatel devices on startup

14 years agoAdd test scripts for radio technology preference
Marcel Holtmann [Sun, 6 Jun 2010 18:11:57 +0000 (11:11 -0700)]
Add test scripts for radio technology preference

14 years agoEnable Novatel specific radio settings
Marcel Holtmann [Sun, 6 Jun 2010 18:08:41 +0000 (11:08 -0700)]
Enable Novatel specific radio settings

14 years agoAdd support for Novatel specific radio settings
Marcel Holtmann [Sun, 6 Jun 2010 18:08:16 +0000 (11:08 -0700)]
Add support for Novatel specific radio settings

14 years agoAdd Novatel Wireless (NW) specific modem driver
Marcel Holtmann [Sun, 6 Jun 2010 18:05:48 +0000 (11:05 -0700)]
Add Novatel Wireless (NW) specific modem driver

14 years agoAdd disconnect callback handling to Novatel plugin
Marcel Holtmann [Sun, 6 Jun 2010 05:37:02 +0000 (22:37 -0700)]
Add disconnect callback handling to Novatel plugin

14 years agoUse secondary port for everything besides GPRS with Novatel devices
Marcel Holtmann [Sat, 5 Jun 2010 04:12:09 +0000 (21:12 -0700)]
Use secondary port for everything besides GPRS with Novatel devices

If a Novatel device allows to enable a secondary AT command based
channel, then use that for device information, SIM handling, network
registration etc. and only leave the GPRS context setup to the first
command port.

14 years agoRename Novatel ports into Primary and Secondary
Marcel Holtmann [Sat, 5 Jun 2010 02:38:05 +0000 (19:38 -0700)]
Rename Novatel ports into Primary and Secondary

14 years agoMention Pasi's contributions
Denis Kenzior [Fri, 4 Jun 2010 20:46:45 +0000 (15:46 -0500)]
Mention Pasi's contributions

14 years agoEnable CBS and USSD for Option HSO based devices
Marcel Holtmann [Fri, 4 Jun 2010 20:01:32 +0000 (13:01 -0700)]
Enable CBS and USSD for Option HSO based devices

14 years agohso: Enable OUWCTI notifications
Denis Kenzior [Fri, 4 Jun 2010 19:21:13 +0000 (14:21 -0500)]
hso: Enable OUWCTI notifications

14 years agosmsutil: status reports also lead with SC_ADDR
Denis Kenzior [Fri, 4 Jun 2010 16:50:26 +0000 (11:50 -0500)]
smsutil: status reports also lead with SC_ADDR

14 years agoatmodem: Put some common code into a utility
Denis Kenzior [Fri, 4 Jun 2010 16:18:20 +0000 (11:18 -0500)]
atmodem: Put some common code into a utility

14 years agoChange in at_cds_notify for status report
Pasi Miettinen [Fri, 4 Jun 2010 11:17:32 +0000 (14:17 +0300)]
Change in at_cds_notify for status report

14 years agoUse Internet access instead of Example for context name
Marcel Holtmann [Fri, 4 Jun 2010 19:20:33 +0000 (12:20 -0700)]
Use Internet access instead of Example for context name

14 years agoSend OWCTI query when bringing up Option based devices
Marcel Holtmann [Fri, 4 Jun 2010 19:17:35 +0000 (12:17 -0700)]
Send OWCTI query when bringing up Option based devices

14 years agoUse AT_OUWCTI instead of AT_OWCTI as expected
Marcel Holtmann [Fri, 4 Jun 2010 19:13:27 +0000 (12:13 -0700)]
Use AT_OUWCTI instead of AT_OWCTI as expected

The Option firmware is so funny. It has a typo in the AT command :)

14 years agoEnable Option specific OWCTI unsolicited notifications
Marcel Holtmann [Fri, 4 Jun 2010 19:08:21 +0000 (12:08 -0700)]
Enable Option specific OWCTI unsolicited notifications

14 years agoFix clean-local make rule
Marcel Holtmann [Fri, 4 Jun 2010 17:38:27 +0000 (10:38 -0700)]
Fix clean-local make rule

14 years agoAdd Option specific SMS quirk since ack pdu is broken
Marcel Holtmann [Fri, 4 Jun 2010 01:16:01 +0000 (18:16 -0700)]
Add Option specific SMS quirk since ack pdu is broken

14 years agoThe ack pdu support is not working on Novatel or Option devices
Marcel Holtmann [Fri, 4 Jun 2010 01:15:27 +0000 (18:15 -0700)]
The ack pdu support is not working on Novatel or Option devices

14 years agoFix wrong spelling of the word usage
Marcel Holtmann [Thu, 3 Jun 2010 17:12:34 +0000 (10:12 -0700)]
Fix wrong spelling of the word usage

14 years agoEnable USSD and CBS support for Novatel based devices
Marcel Holtmann [Thu, 3 Jun 2010 16:56:42 +0000 (09:56 -0700)]
Enable USSD and CBS support for Novatel based devices

14 years agoEnable SMS support for Novatel based devices
Marcel Holtmann [Thu, 3 Jun 2010 15:57:16 +0000 (08:57 -0700)]
Enable SMS support for Novatel based devices

The important part here is that the SMS atom needs to be on the second
AT command port since the main port doesn't handle sending correctly. It
never returns any success or error after the submission of the PDU.

14 years agoQuirk SMS handling for Novatel based devices
Marcel Holtmann [Thu, 3 Jun 2010 15:54:08 +0000 (08:54 -0700)]
Quirk SMS handling for Novatel based devices

The Novatel based devices with Qualcomm chips seems to have various
problems. First they advertise CNMI mode 2, but don't support it. And
second they don't support CNMA acknowledgement with a PDU. So fall back
to acks without PDU.