platform/upstream/ofono.git
14 years agoFix order of PPP frame recording and processing
Marcel Holtmann [Thu, 1 Apr 2010 21:31:19 +0000 (14:31 -0700)]
Fix order of PPP frame recording and processing

14 years agoAdd support for recording PPP sessions in pppdump format
Marcel Holtmann [Thu, 1 Apr 2010 20:47:25 +0000 (13:47 -0700)]
Add support for recording PPP sessions in pppdump format

14 years agoImplement g_at_ppp_set_debug support
Marcel Holtmann [Thu, 1 Apr 2010 20:11:11 +0000 (13:11 -0700)]
Implement g_at_ppp_set_debug support

14 years agoAdd some debugging information to PPP authentication handling
Marcel Holtmann [Thu, 1 Apr 2010 16:56:18 +0000 (09:56 -0700)]
Add some debugging information to PPP authentication handling

14 years agoRemove useless pppcp_protocol_data structure
Marcel Holtmann [Thu, 1 Apr 2010 16:13:44 +0000 (09:13 -0700)]
Remove useless pppcp_protocol_data structure

14 years agoRemove forward declarations in PPP network handling
Marcel Holtmann [Thu, 1 Apr 2010 07:17:10 +0000 (00:17 -0700)]
Remove forward declarations in PPP network handling

14 years agoAdd debugging for PPP LCP and IPCP options
Marcel Holtmann [Thu, 1 Apr 2010 07:07:40 +0000 (00:07 -0700)]
Add debugging for PPP LCP and IPCP options

14 years agoUse ppp%d as PPP interface name instead of tun%d
Marcel Holtmann [Thu, 1 Apr 2010 05:29:43 +0000 (22:29 -0700)]
Use ppp%d as PPP interface name instead of tun%d

14 years agoInitial implementation of the PPP gprs context
Denis Kenzior [Wed, 31 Mar 2010 23:49:39 +0000 (18:49 -0500)]
Initial implementation of the PPP gprs context

14 years agoFix: Introduce PPP data state
Denis Kenzior [Wed, 31 Mar 2010 23:48:52 +0000 (18:48 -0500)]
Fix: Introduce PPP data state

Some modems send PPP data introspersed along with the CONNECT final
response.  Fixup the parser so we can still detect the final response.

14 years agoFix: Update gsm dial to the new GAtPPP API
Denis Kenzior [Wed, 31 Mar 2010 23:48:30 +0000 (18:48 -0500)]
Fix: Update gsm dial to the new GAtPPP API

14 years agoRefactor: Use GAtDisconnectFunc for ppp disconnect
Denis Kenzior [Wed, 31 Mar 2010 23:47:30 +0000 (18:47 -0500)]
Refactor: Use GAtDisconnectFunc for ppp disconnect

The ppp argument to the current disconnect callback is useless as the
ppp structure is most likely stored in user data anyway.

14 years agoRefactor: GAtPPP connect callback
Denis Kenzior [Wed, 31 Mar 2010 23:45:17 +0000 (18:45 -0500)]
Refactor: GAtPPP connect callback

The connect callback was not giving enough information and the
information it was providing was not in a convenient form.

- Provide the ppp interface name (e.g. tun0)
- Provide ip, dns1 & dns2 as strings
- Do not send the ppp structure in the callback, it is most likely
  present in the user data anyway

14 years agoUpdate mbm to use two ports
Denis Kenzior [Wed, 31 Mar 2010 23:36:21 +0000 (18:36 -0500)]
Update mbm to use two ports

The second port might be used for a second active context via ppp

14 years agoFix: MD300 uses two ACM ports, so set one to data
Denis Kenzior [Wed, 31 Mar 2010 23:34:32 +0000 (18:34 -0500)]
Fix: MD300 uses two ACM ports, so set one to data

14 years agoStyle: Whitespace damage due to spaces, not tabs
Denis Kenzior [Wed, 31 Mar 2010 19:11:41 +0000 (14:11 -0500)]
Style: Whitespace damage due to spaces, not tabs

Also use proper indentation style

14 years agoRefactor: Return a string from USSD Respond method
Andrzej Zaborowski [Wed, 31 Mar 2010 04:57:07 +0000 (06:57 +0200)]
Refactor: Return a string from USSD Respond method

Return network's USSD reponses from the Respond method instead of
signaling over D-Bus.  This should make the UI writer's job a little
easier.

14 years agoFix ampersand commands check
Andrzej Zaborowski [Wed, 31 Mar 2010 04:57:33 +0000 (06:57 +0200)]
Fix ampersand commands check

Also remove a trailing tab.

14 years agodoc: Explain VoicemailMessageCount value zero.
Andrzej Zaborowski [Wed, 31 Mar 2010 04:57:21 +0000 (06:57 +0200)]
doc: Explain VoicemailMessageCount value zero.

14 years agoUse stkutil named constants in sim.c
Andrzej Zaborowski [Wed, 31 Mar 2010 04:56:57 +0000 (06:56 +0200)]
Use stkutil named constants in sim.c

14 years agoUpdate property name in test-ussd
Andrzej Zaborowski [Wed, 31 Mar 2010 04:56:45 +0000 (06:56 +0200)]
Update property name in test-ussd

14 years agoStyle: remove unneeded blank line
Denis Kenzior [Wed, 31 Mar 2010 18:04:57 +0000 (13:04 -0500)]
Style: remove unneeded blank line

14 years agoFix whitespace damage in PPP implementation
Marcel Holtmann [Wed, 31 Mar 2010 17:30:54 +0000 (10:30 -0700)]
Fix whitespace damage in PPP implementation

14 years agoFix: Be more consistent with other boundary checks
Denis Kenzior [Wed, 31 Mar 2010 17:22:57 +0000 (12:22 -0500)]
Fix: Be more consistent with other boundary checks

14 years agoStyle: indentation fixes
Denis Kenzior [Wed, 31 Mar 2010 17:20:02 +0000 (12:20 -0500)]
Style: indentation fixes

14 years agoFix: Increate iterator when parsing fails
Yang Gu [Wed, 31 Mar 2010 09:17:03 +0000 (17:17 +0800)]
Fix: Increate iterator when parsing fails

If the comprehension TLV tag matches the expected handler, and the
handler fails to parse the tag, then increase the iterator.

14 years agoRename stk_icon_identifier to stk_icon_id
Yang Gu [Wed, 31 Mar 2010 09:17:02 +0000 (17:17 +0800)]
Rename stk_icon_identifier to stk_icon_id

14 years agoAdd parser for item icon identifier list objects
Yang Gu [Wed, 31 Mar 2010 09:17:01 +0000 (17:17 +0800)]
Add parser for item icon identifier list objects

14 years agoAdd enum for icon qualifier
Yang Gu [Wed, 31 Mar 2010 09:17:00 +0000 (17:17 +0800)]
Add enum for icon qualifier

14 years agoAdd parser for call control requested action objects
Yang Gu [Wed, 31 Mar 2010 09:16:59 +0000 (17:16 +0800)]
Add parser for call control requested action objects

14 years agoAdd parser for transaction identifier objects
Yang Gu [Wed, 31 Mar 2010 09:16:58 +0000 (17:16 +0800)]
Add parser for transaction identifier objects

14 years agoAdd parser for location status objects
Yang Gu [Wed, 31 Mar 2010 09:16:57 +0000 (17:16 +0800)]
Add parser for location status objects

14 years agoAdd parser for cause objects
Yang Gu [Wed, 31 Mar 2010 09:16:56 +0000 (17:16 +0800)]
Add parser for cause objects

14 years agoAdd parser for event list objects
Yang Gu [Wed, 31 Mar 2010 09:16:55 +0000 (17:16 +0800)]
Add parser for event list objects

14 years agoAdd parser for items next action indicator objects
Yang Gu [Wed, 31 Mar 2010 09:16:54 +0000 (17:16 +0800)]
Add parser for items next action indicator objects

14 years agoReorder the declarations of stk data objects
Yang Gu [Wed, 31 Mar 2010 09:16:53 +0000 (17:16 +0800)]
Reorder the declarations of stk data objects

14 years agoAdd test implementation for CPBS
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:40 +0000 (17:50 +0800)]
Add test implementation for CPBS

14 years agoAdd test implementation to support SMS
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:39 +0000 (17:50 +0800)]
Add test implementation to support SMS

14 years agoRefactor: Simplify V250 setting command functions
Denis Kenzior [Wed, 31 Mar 2010 13:38:01 +0000 (08:38 -0500)]
Refactor: Simplify V250 setting command functions

14 years agoRefactor: Simplify gatserver s-register functions
Denis Kenzior [Wed, 31 Mar 2010 13:22:40 +0000 (08:22 -0500)]
Refactor: Simplify gatserver s-register functions

14 years agoFix: Potential crash in modemconf
Denis Kenzior [Wed, 31 Mar 2010 13:22:03 +0000 (08:22 -0500)]
Fix: Potential crash in modemconf

14 years agoFix echo command back even if don't process it
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:38 +0000 (17:50 +0800)]
Fix echo command back even if don't process it

14 years agoAdd Repeat last command support
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:37 +0000 (17:50 +0800)]
Add Repeat last command support

14 years agoAdd implementation for ATE and other basic command
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:36 +0000 (17:50 +0800)]
Add implementation for ATE and other basic command

14 years agoAdd implementation for S3, S4, S5 command
Zhenhua Zhang [Wed, 31 Mar 2010 09:50:35 +0000 (17:50 +0800)]
Add implementation for S3, S4, S5 command

14 years agoFix: Make sure we still increment read_count
Denis Kenzior [Wed, 31 Mar 2010 03:06:12 +0000 (22:06 -0500)]
Fix: Make sure we still increment read_count

14 years agoFix ignore incoming bytes during parsing
Zhenhua Zhang [Wed, 31 Mar 2010 02:40:08 +0000 (10:40 +0800)]
Fix ignore incoming bytes during parsing

Server processes one command line at one time, so ignore the rest
incoming bytes during the command parsing.

14 years agoUpdate test-server to the new API
Denis Kenzior [Wed, 31 Mar 2010 01:29:25 +0000 (20:29 -0500)]
Update test-server to the new API

14 years agoSimplify the send_info API
Denis Kenzior [Wed, 31 Mar 2010 01:29:10 +0000 (20:29 -0500)]
Simplify the send_info API

14 years agoFix: Treat garbage as echo
Denis Kenzior [Mon, 29 Mar 2010 21:38:00 +0000 (16:38 -0500)]
Fix: Treat garbage as echo

14 years agoFix: Properly handle async final responses
Denis Kenzior [Wed, 31 Mar 2010 00:15:55 +0000 (19:15 -0500)]
Fix: Properly handle async final responses

14 years agoFix: We need to preserve the original line
Denis Kenzior [Tue, 30 Mar 2010 22:12:43 +0000 (17:12 -0500)]
Fix: We need to preserve the original line

14 years agoFix: Use VERSION define to generate CGMR response
Denis Kenzior [Tue, 30 Mar 2010 21:40:44 +0000 (16:40 -0500)]
Fix: Use VERSION define to generate CGMR response

14 years agoFix: Record last received command
Denis Kenzior [Tue, 30 Mar 2010 20:24:48 +0000 (15:24 -0500)]
Fix: Record last received command

14 years agoFix: Send an ERROR on A/
Denis Kenzior [Tue, 30 Mar 2010 20:18:34 +0000 (15:18 -0500)]
Fix: Send an ERROR on A/

14 years agoAdd test implementation for CFUN
Denis Kenzior [Tue, 30 Mar 2010 20:14:42 +0000 (15:14 -0500)]
Add test implementation for CFUN

14 years agoFix: Make sure g_print is followed by a newline
Denis Kenzior [Tue, 30 Mar 2010 19:38:06 +0000 (14:38 -0500)]
Fix: Make sure g_print is followed by a newline

14 years agoAdd initial implementation of cgmr/cgmi/cgmm/cgsn
Denis Kenzior [Tue, 30 Mar 2010 19:37:42 +0000 (14:37 -0500)]
Add initial implementation of cgmr/cgmi/cgmm/cgsn

14 years agoFix: SO_REUSEADDR should be set before bind
Denis Kenzior [Tue, 30 Mar 2010 19:37:20 +0000 (14:37 -0500)]
Fix: SO_REUSEADDR should be set before bind

14 years agoRefactor: Simplify extended command parsing logic
Denis Kenzior [Tue, 30 Mar 2010 19:36:02 +0000 (14:36 -0500)]
Refactor: Simplify extended command parsing logic

14 years agoRefactor: Add a single-line response function
Denis Kenzior [Tue, 30 Mar 2010 19:35:29 +0000 (14:35 -0500)]
Refactor: Add a single-line response function

14 years agoAdd API stubs for unsolicited / final responses
Zhenhua Zhang [Tue, 30 Mar 2010 17:34:47 +0000 (12:34 -0500)]
Add API stubs for unsolicited / final responses

14 years agoAdd stubs for test server commands
Denis Kenzior [Tue, 30 Mar 2010 17:23:11 +0000 (12:23 -0500)]
Add stubs for test server commands

14 years agoRefactor: tty creation
Denis Kenzior [Tue, 30 Mar 2010 17:15:11 +0000 (12:15 -0500)]
Refactor: tty creation

14 years agoRefactor: Text / Default text parsing
Denis Kenzior [Tue, 30 Mar 2010 15:20:12 +0000 (10:20 -0500)]
Refactor: Text / Default text parsing

14 years agoRefactor: Break out the STK text decoding utility
Denis Kenzior [Tue, 30 Mar 2010 15:20:49 +0000 (10:20 -0500)]
Refactor: Break out the STK text decoding utility

This can be used for other data objects than text and default text

14 years agoRefactor: generic boolean parsers
Denis Kenzior [Tue, 30 Mar 2010 15:19:23 +0000 (10:19 -0500)]
Refactor: generic boolean parsers

14 years agoRefactor: Don't repeat tag checking ad naseum
Denis Kenzior [Tue, 30 Mar 2010 15:12:05 +0000 (10:12 -0500)]
Refactor: Don't repeat tag checking ad naseum

The tag checking can be done safely once inside the main parsing
function, no need to repeat it in the individual object parsers.

14 years agoStyle: More consistent indentation
Denis Kenzior [Tue, 30 Mar 2010 15:13:31 +0000 (10:13 -0500)]
Style: More consistent indentation

14 years agoFix use of g_checksum_get_digest() inout argument
Marcel Holtmann [Tue, 30 Mar 2010 01:13:01 +0000 (18:13 -0700)]
Fix use of g_checksum_get_digest() inout argument

14 years agoFix: measurement results are binary data
Denis Kenzior [Mon, 29 Mar 2010 21:40:14 +0000 (16:40 -0500)]
Fix: measurement results are binary data

14 years agoAdd parser for network measurement results objects
Yang Gu [Mon, 29 Mar 2010 16:24:36 +0000 (00:24 +0800)]
Add parser for network measurement results objects

14 years agoAdd call-forwarding to mbm driver
Denis Kenzior [Mon, 29 Mar 2010 20:37:39 +0000 (15:37 -0500)]
Add call-forwarding to mbm driver

14 years agoFix: simplify isimodem call-barring driver.
Pekka Pessi [Mon, 29 Mar 2010 18:17:51 +0000 (21:17 +0300)]
Fix: simplify isimodem call-barring driver.

Add support for lock codes AG and AC (MMI codes 333 and 353,
respectively). Use decimal MMI codes in <ss.h>.

14 years agoCheck for capabilities support via libcap-ng
Marcel Holtmann [Mon, 29 Mar 2010 18:06:04 +0000 (11:06 -0700)]
Check for capabilities support via libcap-ng

14 years agoStyle: braces are not needed
Denis Kenzior [Mon, 29 Mar 2010 05:18:04 +0000 (00:18 -0500)]
Style: braces are not needed

14 years agoFix: Use tech reported by MBM erinfo
Denis Kenzior [Mon, 29 Mar 2010 05:09:10 +0000 (00:09 -0500)]
Fix: Use tech reported by MBM erinfo

14 years agoFix: Handle 2 and 3 argument versions of ERINFO
Denis Kenzior [Mon, 29 Mar 2010 04:58:37 +0000 (23:58 -0500)]
Fix: Handle 2 and 3 argument versions of ERINFO

14 years agoMove erinfo notify to atmodem netreg driver
Denis Kenzior [Mon, 29 Mar 2010 04:30:32 +0000 (23:30 -0500)]
Move erinfo notify to atmodem netreg driver

14 years agoEnable PPP session suport for AT+CGDATA command
Marcel Holtmann [Sun, 28 Mar 2010 16:15:02 +0000 (09:15 -0700)]
Enable PPP session suport for AT+CGDATA command

14 years agoppp: send PPP_FAIL when authentication fails
Kristen Carlson Accardi [Thu, 25 Mar 2010 20:04:36 +0000 (13:04 -0700)]
ppp: send PPP_FAIL when authentication fails

14 years agoAdd phonesim vendor quirk
Denis Kenzior [Fri, 26 Mar 2010 20:33:19 +0000 (15:33 -0500)]
Add phonesim vendor quirk

14 years agoAdd mbm vendor
Denis Kenzior [Fri, 26 Mar 2010 20:28:00 +0000 (15:28 -0500)]
Add mbm vendor

14 years agoRefactor: Use CIND as default strength reporting
Denis Kenzior [Fri, 26 Mar 2010 20:26:10 +0000 (15:26 -0500)]
Refactor: Use CIND as default strength reporting

Many vendors seem to use CIND instead of CSQ / proprietary extensions.

14 years agoUpdate atmodem gprs driver to the new API
Denis Kenzior [Fri, 26 Mar 2010 17:54:10 +0000 (12:54 -0500)]
Update atmodem gprs driver to the new API

14 years agoRefactor: Simplify the internal GPRS API
Denis Kenzior [Fri, 26 Mar 2010 17:49:49 +0000 (12:49 -0500)]
Refactor: Simplify the internal GPRS API

We no longer expose lac/ci/tech attributes obtained from CGREG
(some modems, like ISI, do not even report them for GPRS separately).
Simplify the internal gprs driver api to only report the registration
status (e.g. home, roaming, searching, not registered, etc)

14 years agoRefactor: Get rid of DCM properties
Denis Kenzior [Thu, 25 Mar 2010 21:23:35 +0000 (16:23 -0500)]
Refactor: Get rid of DCM properties

Be conformant with the API changes from the previous commit

14 years agoChange the DataConnectionManager API
Denis Kenzior [Thu, 25 Mar 2010 21:17:40 +0000 (16:17 -0500)]
Change the DataConnectionManager API

The various attributes obtained from CGREG are actually completely
useless and are not used internally for anything except computing the
Attached status.  It makes sense to get rid of these properties since
they will be the same as reported by CREG in Dual-Transfer-Mode devices.
The only difference might be how hardware reports the technology used,
but frequently a vendor specific command is required anyway

14 years agoFix some comments in dialer example
Marcel Holtmann [Sat, 27 Mar 2010 02:41:06 +0000 (19:41 -0700)]
Fix some comments in dialer example

14 years agoAllow empty secrets for CHAP authentication
Marcel Holtmann [Sat, 27 Mar 2010 02:35:54 +0000 (19:35 -0700)]
Allow empty secrets for CHAP authentication

14 years agoAdd support for NBNS server options
Marcel Holtmann [Sat, 27 Mar 2010 02:25:56 +0000 (19:25 -0700)]
Add support for NBNS server options

14 years agoppp: handle Config-Reject
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:30 +0000 (18:34 -0700)]
ppp: handle Config-Reject

if our peer sends us a Config-Reject packet, we must delete that
config item and not request that it be negotiated when we send our
next Config-Request.

14 years agoppp: use common code to get options from pppcp packet data
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:29 +0000 (18:34 -0700)]
ppp: use common code to get options from pppcp packet data

14 years agoppp: send Protocol-Reject
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:28 +0000 (18:34 -0700)]
ppp: send Protocol-Reject

change ppp_decode to store the length of the decoded frame, so that
if we have a packet with a protocol we don't understand, we can send
Protocol-Reject packets.  Modify ppp_cp code to add support for sending
Protocol-Reject packet.

14 years agoppp: comment fix
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:27 +0000 (18:34 -0700)]
ppp: comment fix

Put some additional clarification in comment for receiving Code-Reject
and Protocol-Reject packets.

14 years agoppp: fix segfault in pppcp_send_code_reject()
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:26 +0000 (18:34 -0700)]
ppp: fix segfault in pppcp_send_code_reject()

fix memory corruption caused by misplaced paren when memcpying
rejected packet data into Code-Reject packet.

14 years agoFix: The MCC / MNC Properties are actually strings
Denis Kenzior [Thu, 25 Mar 2010 21:01:16 +0000 (16:01 -0500)]
Fix: The MCC / MNC Properties are actually strings

14 years agoppp: change debug output to include control protocol prefix
Kristen Carlson Accardi [Thu, 25 Mar 2010 17:59:34 +0000 (10:59 -0700)]
ppp: change debug output to include control protocol prefix

14 years agoFix: No need to malloc memory for this
Denis Kenzior [Thu, 25 Mar 2010 16:39:45 +0000 (11:39 -0500)]
Fix: No need to malloc memory for this

14 years agoAdd parser for help request objects
Yang Gu [Thu, 25 Mar 2010 16:07:36 +0000 (00:07 +0800)]
Add parser for help request objects