platform/upstream/ofono.git
14 years agogisi: Fix style issues
Aki Niemi [Mon, 17 May 2010 11:26:01 +0000 (14:26 +0300)]
gisi: Fix style issues

14 years agoMake isimodem use linkstate directly
Pekka Pessi [Tue, 11 May 2010 15:38:46 +0000 (18:38 +0300)]
Make isimodem use linkstate directly

14 years agoConfigure phonet link in usbpnmodem
Pekka Pessi [Wed, 28 Apr 2010 13:37:38 +0000 (16:37 +0300)]
Configure phonet link in usbpnmodem

14 years agogisi: Fix netlink style issues
Aki Niemi [Mon, 17 May 2010 10:50:50 +0000 (13:50 +0300)]
gisi: Fix netlink style issues

14 years agogisi: Add phonet netlink functions
Pekka Pessi [Wed, 28 Apr 2010 13:37:10 +0000 (16:37 +0300)]
gisi: Add phonet netlink functions

Adding g_pn_netlink_set_address() and g_pn_netlink_add_route().
Automatically configure phonet links without external software.

14 years agoUse g_pn_netlink_by_modem() in isimodem driver
Pekka Pessi [Wed, 28 Apr 2010 13:21:16 +0000 (16:21 +0300)]
Use g_pn_netlink_by_modem() in isimodem driver

14 years agoUse g_pn_netlink_by_modem() in usbpnmodem plugin
Pekka Pessi [Wed, 28 Apr 2010 13:20:42 +0000 (16:20 +0300)]
Use g_pn_netlink_by_modem() in usbpnmodem plugin

14 years agogisi: Remove g_pn_netlink_by_name()
Pekka Pessi [Wed, 28 Apr 2010 13:19:15 +0000 (16:19 +0300)]
gisi: Remove g_pn_netlink_by_name()

14 years agoRemove unused declaration
Aki Niemi [Sat, 15 May 2010 07:44:40 +0000 (10:44 +0300)]
Remove unused declaration

14 years agoFix typo in comment
Aki Niemi [Sat, 15 May 2010 07:42:13 +0000 (10:42 +0300)]
Fix typo in comment

14 years agoFix copy-paste typo
Aki Niemi [Sat, 15 May 2010 07:35:44 +0000 (10:35 +0300)]
Fix copy-paste typo

14 years agoAdd proper debug configuration to isimodem SMS
Aki Niemi [Sat, 15 May 2010 07:23:24 +0000 (10:23 +0300)]
Add proper debug configuration to isimodem SMS

14 years agoAdd SCA query and setter to isimodem SMS driver
Aki Niemi [Sat, 15 May 2010 07:23:03 +0000 (10:23 +0300)]
Add SCA query and setter to isimodem SMS driver

14 years agoAdd missing SIM codepoints
Aki Niemi [Sat, 15 May 2010 07:19:28 +0000 (10:19 +0300)]
Add missing SIM codepoints

14 years agoRefactor isimodem CBS driver
Aki Niemi [Fri, 14 May 2010 14:04:54 +0000 (17:04 +0300)]
Refactor isimodem CBS driver

14 years agoFix CBS routing request failure reporting
Aki Niemi [Fri, 14 May 2010 13:28:17 +0000 (16:28 +0300)]
Fix CBS routing request failure reporting

14 years agoAdd isimodem support for MO and MT SMS
Aki Niemi [Fri, 14 May 2010 13:45:48 +0000 (16:45 +0300)]
Add isimodem support for MO and MT SMS

14 years agoAdd missing SMS ISI codepoints
Aki Niemi [Fri, 14 May 2010 13:45:09 +0000 (16:45 +0300)]
Add missing SMS ISI codepoints

14 years agogisi: Add support for NTF requests
Aki Niemi [Fri, 14 May 2010 13:44:48 +0000 (16:44 +0300)]
gisi: Add support for NTF requests

Notify requests are requests sent by ISA servers towards clients. They
are identical to indications in that no response is necessary, but
different in that subscription is done not using the mechanism used
for indications, but out-of-band. Typically routing for notify
requests is enabled using a request-response pair.

14 years agogisi: Return negative errnos
Aki Niemi [Fri, 14 May 2010 13:34:00 +0000 (16:34 +0300)]
gisi: Return negative errnos

14 years agogisi: Fix typo in documentation
Aki Niemi [Fri, 14 May 2010 13:33:13 +0000 (16:33 +0300)]
gisi: Fix typo in documentation

14 years agogisi: Add debugging support for requests
Aki Niemi [Fri, 14 May 2010 13:32:52 +0000 (16:32 +0300)]
gisi: Add debugging support for requests

14 years agostkutil: reorder command struct order
Denis Kenzior [Thu, 13 May 2010 20:36:35 +0000 (15:36 -0500)]
stkutil: reorder command struct order

14 years agotest-stk: Add test for timer management parser
Yang Gu [Thu, 13 May 2010 10:48:44 +0000 (18:48 +0800)]
test-stk: Add test for timer management parser

14 years agostkutil: Add timer management command parser
Yang Gu [Thu, 13 May 2010 10:48:43 +0000 (18:48 +0800)]
stkutil: Add timer management command parser

14 years agotest-stk: Add test for get reader status parser
Yang Gu [Thu, 13 May 2010 10:48:42 +0000 (18:48 +0800)]
test-stk: Add test for get reader status parser

14 years agostkutil: Add get reader status command parser
Yang Gu [Thu, 13 May 2010 10:48:41 +0000 (18:48 +0800)]
stkutil: Add get reader status command parser

14 years agostkutil: Add power on card command parser
Yang Gu [Thu, 13 May 2010 10:48:40 +0000 (18:48 +0800)]
stkutil: Add power on card command parser

14 years agostkutil: Add power off card command parser
Yang Gu [Thu, 13 May 2010 10:48:39 +0000 (18:48 +0800)]
stkutil: Add power off card command parser

14 years agostkutil: Minor style issues and a typo
Denis Kenzior [Thu, 13 May 2010 20:31:21 +0000 (15:31 -0500)]
stkutil: Minor style issues and a typo

14 years agotest-stk: Add test for perform card apdu parser
Yang Gu [Thu, 13 May 2010 10:48:38 +0000 (18:48 +0800)]
test-stk: Add test for perform card apdu parser

14 years agostkutil: Add perform card apdu command parser
Yang Gu [Thu, 13 May 2010 10:48:37 +0000 (18:48 +0800)]
stkutil: Add perform card apdu command parser

14 years agotest-stkutil: Add test for event list parser
Yang Gu [Thu, 13 May 2010 10:48:36 +0000 (18:48 +0800)]
test-stkutil: Add test for event list parser

14 years agostkutil: Add event list command parser
Yang Gu [Thu, 13 May 2010 10:48:35 +0000 (18:48 +0800)]
stkutil: Add event list command parser

14 years agostyle: Whitespace errors
Denis Kenzior [Thu, 13 May 2010 18:55:35 +0000 (13:55 -0500)]
style: Whitespace errors

14 years agotest-stk: Add test for provide local info parser
Yang Gu [Thu, 13 May 2010 10:48:34 +0000 (18:48 +0800)]
test-stk: Add test for provide local info parser

14 years agostkutil: Add provide local info command parser
Yang Gu [Thu, 13 May 2010 10:48:33 +0000 (18:48 +0800)]
stkutil: Add provide local info command parser

14 years agotest-stkutil: Add test for polling off parser
Yang Gu [Thu, 13 May 2010 10:48:32 +0000 (18:48 +0800)]
test-stkutil: Add test for polling off parser

14 years agostkutil: Add polling off proactive command parser
Yang Gu [Thu, 13 May 2010 10:48:31 +0000 (18:48 +0800)]
stkutil: Add polling off proactive command parser

14 years agotest-stkutil: file_list instead of fl is better
Denis Kenzior [Thu, 13 May 2010 18:51:50 +0000 (13:51 -0500)]
test-stkutil: file_list instead of fl is better

14 years agostkutil: file_list instead of fl is better
Denis Kenzior [Thu, 13 May 2010 18:51:38 +0000 (13:51 -0500)]
stkutil: file_list instead of fl is better

14 years agotest-stkutil: Add test for refresh parser
Yang Gu [Thu, 13 May 2010 10:48:30 +0000 (18:48 +0800)]
test-stkutil: Add test for refresh parser

14 years agostkutil: Add refresh proactive command parser
Yang Gu [Thu, 13 May 2010 10:48:29 +0000 (18:48 +0800)]
stkutil: Add refresh proactive command parser

14 years agotest-stkutil: Add unit test for setup call parser
Yang Gu [Thu, 13 May 2010 10:48:28 +0000 (18:48 +0800)]
test-stkutil: Add unit test for setup call parser

14 years agostkutil: Add setup call proactive command parser
Yang Gu [Thu, 13 May 2010 10:48:27 +0000 (18:48 +0800)]
stkutil: Add setup call proactive command parser

14 years agostk: Adjust the sequence of dataobj
Yang Gu [Thu, 13 May 2010 10:48:26 +0000 (18:48 +0800)]
stk: Adjust the sequence of dataobj

14 years agotest-stkutil: Refactor test for send sms parser
Yang Gu [Thu, 13 May 2010 10:48:25 +0000 (18:48 +0800)]
test-stkutil: Refactor test for send sms parser

14 years agotest-stkutil: Use dedicated functions to check
Yang Gu [Thu, 13 May 2010 10:48:24 +0000 (18:48 +0800)]
test-stkutil: Use dedicated functions to check

14 years agotest-stkutil: Handle NULL strings
Denis Kenzior [Thu, 13 May 2010 18:43:41 +0000 (13:43 -0500)]
test-stkutil: Handle NULL strings

g_str_equal does not handle NULL strings

14 years agostkutil: Refactor parse_list into parse_item_list
Denis Kenzior [Thu, 13 May 2010 18:43:16 +0000 (13:43 -0500)]
stkutil: Refactor parse_list into parse_item_list

Makes the code much easier to follow

14 years agotest-stkutil: Add test for select item parser
Yang Gu [Thu, 13 May 2010 10:48:23 +0000 (18:48 +0800)]
test-stkutil: Add test for select item parser

14 years agostkutil: Add select item proactive command parser
Yang Gu [Thu, 13 May 2010 10:48:22 +0000 (18:48 +0800)]
stkutil: Add select item proactive command parser

14 years agotest-stkutil: Add test for setup menu parser
Yang Gu [Thu, 13 May 2010 10:48:21 +0000 (18:48 +0800)]
test-stkutil: Add test for setup menu parser

14 years agostkutil: Add setup menu proactive command parse
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
stkutil: Add setup menu proactive command parse

14 years agostyle: remove extra whitespace
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
style: remove extra whitespace

14 years agostkutil: item objects can be NULL
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
stkutil: item objects can be NULL

ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.

14 years agostkutil: alpha id objects can be NULL
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
stkutil: alpha id objects can be NULL

ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.

14 years agosimutil: Add comprehension tlv copy
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
simutil: Add comprehension tlv copy

Can be used to save the state of the current iterator and 'peek' ahead.

14 years agotest-stkutil: Add test for poll interval parser
Yang Gu [Thu, 13 May 2010 10:48:19 +0000 (18:48 +0800)]
test-stkutil: Add test for poll interval parser

14 years agostk: Add poll interval proactive command parser
Yang Gu [Thu, 13 May 2010 10:48:18 +0000 (18:48 +0800)]
stk: Add poll interval proactive command parser

14 years agombm: Check there's a SIM card inserted.
Andrzej Zaborowski [Wed, 12 May 2010 01:22:38 +0000 (03:22 +0200)]
mbm: Check there's a SIM card inserted.

14 years agombm: Register sim toolkit atom in mbm plugin.
Andrzej Zaborowski [Wed, 12 May 2010 01:22:03 +0000 (03:22 +0200)]
mbm: Register sim toolkit atom in mbm plugin.

14 years agombm: Simplify STKR callback logic
Denis Kenzior [Wed, 12 May 2010 18:42:19 +0000 (13:42 -0500)]
mbm: Simplify STKR callback logic

14 years agombm: Simplify STKE logic
Denis Kenzior [Wed, 12 May 2010 18:36:07 +0000 (13:36 -0500)]
mbm: Simplify STKE logic

We shouldn't use CALLBACK_WITH_FAILURE unless we can't parse the
response from the modem.  This most likely indicates an integration
error.

14 years agombm: NULL check on a g_free is not necessary
Denis Kenzior [Wed, 12 May 2010 18:09:08 +0000 (13:09 -0500)]
mbm: NULL check on a g_free is not necessary

This is a change from previously accepted practice

14 years agombm: Few style issues with indentation
Denis Kenzior [Wed, 12 May 2010 18:08:35 +0000 (13:08 -0500)]
mbm: Few style issues with indentation

14 years agombm: Add STK driver.
Andrzej Zaborowski [Wed, 12 May 2010 01:21:17 +0000 (03:21 +0200)]
mbm: Add STK driver.

14 years agoatmodem: Pass allowed response prefixes to gatchat
Andrzej Zaborowski [Wed, 12 May 2010 01:20:53 +0000 (03:20 +0200)]
atmodem: Pass allowed response prefixes to gatchat

Not doing this creates a race condition where any notification
comming in in the middle of a sequence of commands may be counted
as a response to one of the commands and get lost.

14 years agostkutil: Parse cdma tpdu in send sms parser
Yang Gu [Mon, 10 May 2010 10:38:59 +0000 (18:38 +0800)]
stkutil: Parse cdma tpdu in send sms parser

14 years agostkutil: Don't use escaped strings
Denis Kenzior [Tue, 11 May 2010 17:29:11 +0000 (12:29 -0500)]
stkutil: Don't use escaped strings

In general this is bad style, using concatentated strings ala "" "" is
better.

14 years agotest-stkutil: Add unit test for play tone parser
Yang Gu [Mon, 10 May 2010 10:38:51 +0000 (18:38 +0800)]
test-stkutil: Add unit test for play tone parser

14 years agostkutil: Refactor parser for tone objects
Yang Gu [Mon, 10 May 2010 10:38:50 +0000 (18:38 +0800)]
stkutil: Refactor parser for tone objects

14 years agoReplace check_text with check_common_text
Yang Gu [Mon, 10 May 2010 10:38:49 +0000 (18:38 +0800)]
Replace check_text with check_common_text

14 years agostkutil: Add play tone proactive command parser
Yang Gu [Mon, 10 May 2010 10:38:48 +0000 (18:38 +0800)]
stkutil: Add play tone proactive command parser

14 years agostk: Unify variable names to use abbreviation
Yang Gu [Mon, 10 May 2010 10:38:46 +0000 (18:38 +0800)]
stk: Unify variable names to use abbreviation

14 years agotest-stkutil: Use enum for icon_id
Yang Gu [Mon, 10 May 2010 10:38:47 +0000 (18:38 +0800)]
test-stkutil: Use enum for icon_id

14 years agotest-stkutil: Add unit test for get input parser
Yang Gu [Mon, 10 May 2010 10:38:45 +0000 (18:38 +0800)]
test-stkutil: Add unit test for get input parser

14 years agostkutil: Free default text for get input parser
Yang Gu [Mon, 10 May 2010 10:38:44 +0000 (18:38 +0800)]
stkutil: Free default text for get input parser

14 years agoppp: fix another hardcode of ppp_packet size
Kristen Carlson Accardi [Mon, 10 May 2010 22:17:22 +0000 (15:17 -0700)]
ppp: fix another hardcode of ppp_packet size

14 years agoFix Use hashtable to record udev path
Zhenhua Zhang [Tue, 11 May 2010 01:04:28 +0000 (09:04 +0800)]
Fix Use hashtable to record udev path

Sometimes, Udev device 'remove' event could not report correct parent
node of current udev_device. Current code replies on the devpath
attached on the parent node to find modem and then remove it.

This fix is to change the way to store the devpath info into a
hashtable. So that we search hashtable to get devpath and remove the
modem.

14 years agoatmodem: Fix crashes related to unremoved timeouts
Denis Kenzior [Tue, 11 May 2010 14:10:58 +0000 (09:10 -0500)]
atmodem: Fix crashes related to unremoved timeouts

Any timeouts set must be removed using g_source_remove.  Failure to do
so results in sigsegvs when the modem is randomly removed during the
initialization cycle.

14 years agogsmdial: Shut down cleanly when ppp link dies
Denis Kenzior [Mon, 10 May 2010 21:36:33 +0000 (16:36 -0500)]
gsmdial: Shut down cleanly when ppp link dies

14 years agoppp: Keep these defines private
Denis Kenzior [Mon, 10 May 2010 21:28:23 +0000 (16:28 -0500)]
ppp: Keep these defines private

14 years agoppp: set address and control field
Kristen Carlson Accardi [Mon, 10 May 2010 20:06:37 +0000 (13:06 -0700)]
ppp: set address and control field

Before sending to hdlc, set the address and control field.
Fix hardcode of ppp header size.

14 years agogsmdial: use g_at_ppp_new_from_io()
Kristen Carlson Accardi [Mon, 10 May 2010 18:39:43 +0000 (11:39 -0700)]
gsmdial: use g_at_ppp_new_from_io()

14 years agogatchat: implement g_at_chat_get_io()
Kristen Carlson Accardi [Mon, 10 May 2010 18:39:42 +0000 (11:39 -0700)]
gatchat: implement g_at_chat_get_io()

14 years agogsmdial: use g_at_chat_suspend
Kristen Carlson Accardi [Mon, 10 May 2010 18:39:41 +0000 (11:39 -0700)]
gsmdial: use g_at_chat_suspend

14 years agoppp: transition to dead when lcp finished
Kristen Carlson Accardi [Mon, 10 May 2010 19:12:45 +0000 (12:12 -0700)]
ppp: transition to dead when lcp finished

Transition to DEAD when lcp is finished and ignore any io
disconnects if we are already dead.

14 years agoFix: Don't remove wrong atoms
Andrzej Zaborowski [Fri, 7 May 2010 00:26:48 +0000 (02:26 +0200)]
Fix: Don't remove wrong atoms

When the state goes from INSERTED to NOT PRESENT and we have not
advanced past the SIM PIN entry, we remove the pre_sim atoms.

Similarly, if we advanced past the SIM PIN stage and subsequently
removed the SIM, the pre_sim atom list should not be tampered with.

14 years agoFix check data device before register the modem
Zhenhua Zhang [Thu, 6 May 2010 06:28:13 +0000 (14:28 +0800)]
Fix check data device before register the modem

To avoid the race condition that modem is registered before we retrieve
the data device property.

14 years agoadd vid/pid for Dell 5541 and 5542
Torgny Johansson [Mon, 3 May 2010 07:04:45 +0000 (09:04 +0200)]
add vid/pid for Dell 5541 and 5542

14 years agoatmodem: Port gprs-context to new PPP api
Denis Kenzior [Fri, 30 Apr 2010 20:32:54 +0000 (15:32 -0500)]
atmodem: Port gprs-context to new PPP api

14 years agogsmdial: Port to new PPP api
Denis Kenzior [Fri, 30 Apr 2010 20:32:45 +0000 (15:32 -0500)]
gsmdial: Port to new PPP api

14 years agoppp: Refactor connect / disconnect callbacks
Denis Kenzior [Fri, 30 Apr 2010 20:31:26 +0000 (15:31 -0500)]
ppp: Refactor connect / disconnect callbacks

Right now it is very hard to figure out whether we should be calling the
connect callback or the disconnect callback.  So refactor as follows:
- Connect callback is only called once the net is actually up
- Disconnect callback is called once ppp is down, with a reason
  for why it is so.

14 years agoppp: get rid of ppp_enter_phase
Denis Kenzior [Fri, 30 Apr 2010 19:37:17 +0000 (14:37 -0500)]
ppp: get rid of ppp_enter_phase

This function simply didn't have the context of why the phase was being
entered.  Instead have each protocol notify GAtPPP as to what is
happening.  We already had this more or less for IPCP and AUTH events,
this just now formalizes it for LCP as well.

14 years agoppp: Add _from_io constructor
Denis Kenzior [Fri, 30 Apr 2010 15:52:16 +0000 (10:52 -0500)]
ppp: Add _from_io constructor

14 years agoppp: fix return of drop_packet for NETWORK phase
Kristen Carlson Accardi [Thu, 29 Apr 2010 23:25:50 +0000 (16:25 -0700)]
ppp: fix return of drop_packet for NETWORK phase

14 years agogathdlc: Add from_io constructor
Denis Kenzior [Thu, 29 Apr 2010 20:50:57 +0000 (15:50 -0500)]
gathdlc: Add from_io constructor

14 years agoFix parent path introspection data invalidation for multiple levels
Johan Hedberg [Thu, 29 Apr 2010 22:23:45 +0000 (01:23 +0300)]
Fix parent path introspection data invalidation for multiple levels

In the case that parent path data needs to be invalidated we shouldn't
stop at the immediate parent if it doesn't have our own handler
registered but should continue upwards in the tree until we reach root
or our own handler.

14 years agoFix memory leak in g_dbus_register_interface
Johan Hedberg [Thu, 29 Apr 2010 21:27:54 +0000 (00:27 +0300)]
Fix memory leak in g_dbus_register_interface