Commit Graph

2388 Commits

Author SHA1 Message Date
Yang Gu 57c6d1ec72 test-stkutil: Add unit test for setup call parser 2010-05-13 13:48:01 -05:00
Yang Gu 783bb70599 stkutil: Add setup call proactive command parser 2010-05-13 13:47:22 -05:00
Yang Gu 847539b39d stk: Adjust the sequence of dataobj 2010-05-13 13:46:21 -05:00
Yang Gu d04ebc0fdb test-stkutil: Refactor test for send sms parser 2010-05-13 13:45:59 -05:00
Yang Gu b99bf23f19 test-stkutil: Use dedicated functions to check 2010-05-13 13:44:49 -05:00
Denis Kenzior fd6c902572 test-stkutil: Handle NULL strings
g_str_equal does not handle NULL strings
2010-05-13 13:43:41 -05:00
Denis Kenzior 1ddc7ebf19 stkutil: Refactor parse_list into parse_item_list
Makes the code much easier to follow
2010-05-13 13:43:16 -05:00
Yang Gu 7b6a2fa541 test-stkutil: Add test for select item parser 2010-05-13 12:30:04 -05:00
Yang Gu 352a03d537 stkutil: Add select item proactive command parser 2010-05-13 12:29:59 -05:00
Yang Gu a431bf4ffc test-stkutil: Add test for setup menu parser 2010-05-13 11:09:43 -05:00
Yang Gu d45219e049 stkutil: Add setup menu proactive command parse 2010-05-13 11:07:07 -05:00
Yang Gu 2cc037e136 style: remove extra whitespace 2010-05-13 11:05:33 -05:00
Yang Gu 9f3b2de6f0 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.
2010-05-13 11:05:06 -05:00
Yang Gu edcd03e570 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.
2010-05-13 11:04:04 -05:00
Yang Gu 353d955dea simutil: Add comprehension tlv copy
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Yang Gu 651ad72075 test-stkutil: Add test for poll interval parser 2010-05-13 10:54:50 -05:00
Yang Gu 5b030c4a19 stk: Add poll interval proactive command parser 2010-05-13 10:53:40 -05:00
Andrzej Zaborowski bf7afc6130 mbm: Check there's a SIM card inserted. 2010-05-12 13:46:17 -05:00
Andrzej Zaborowski 19ddfb302f mbm: Register sim toolkit atom in mbm plugin. 2010-05-12 13:44:53 -05:00
Denis Kenzior 0940f27c9a mbm: Simplify STKR callback logic 2010-05-12 13:44:40 -05:00
Denis Kenzior f98c6dc917 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.
2010-05-12 13:44:31 -05:00
Denis Kenzior 49c5def68b mbm: NULL check on a g_free is not necessary
This is a change from previously accepted practice
2010-05-12 13:43:48 -05:00
Denis Kenzior d6f540eb8f mbm: Few style issues with indentation 2010-05-12 13:43:38 -05:00
Andrzej Zaborowski f0aeb0b037 mbm: Add STK driver. 2010-05-12 13:43:23 -05:00
Andrzej Zaborowski 5e11442ef7 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.
2010-05-12 12:18:33 -05:00
Yang Gu 8a33071cd0 stkutil: Parse cdma tpdu in send sms parser 2010-05-11 14:36:37 -05:00
Denis Kenzior 9d56691898 stkutil: Don't use escaped strings
In general this is bad style, using concatentated strings ala "" "" is
better.
2010-05-11 12:29:11 -05:00
Yang Gu a3da155828 test-stkutil: Add unit test for play tone parser 2010-05-11 12:25:34 -05:00
Yang Gu 4374123324 stkutil: Refactor parser for tone objects 2010-05-11 12:24:02 -05:00
Yang Gu dff6deb6a3 Replace check_text with check_common_text 2010-05-11 12:23:27 -05:00
Yang Gu 37c2bc8cf2 stkutil: Add play tone proactive command parser 2010-05-11 12:21:51 -05:00
Yang Gu 6e4f5c5122 stk: Unify variable names to use abbreviation 2010-05-11 12:19:09 -05:00
Yang Gu 652e943c74 test-stkutil: Use enum for icon_id 2010-05-11 12:18:41 -05:00
Yang Gu f4bd7d21a4 test-stkutil: Add unit test for get input parser 2010-05-11 12:17:27 -05:00
Yang Gu 2eff407957 stkutil: Free default text for get input parser 2010-05-11 12:15:36 -05:00
Kristen Carlson Accardi 41188e326a ppp: fix another hardcode of ppp_packet size 2010-05-11 09:26:08 -05:00
Zhenhua Zhang af976f7e52 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.
2010-05-11 09:18:55 -05:00
Denis Kenzior dea4c88906 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.
2010-05-11 09:10:58 -05:00
Denis Kenzior 1794ad32fd gsmdial: Shut down cleanly when ppp link dies 2010-05-10 16:36:33 -05:00
Denis Kenzior 3946d7e07c ppp: Keep these defines private 2010-05-10 16:28:23 -05:00
Kristen Carlson Accardi 125fc62526 ppp: set address and control field
Before sending to hdlc, set the address and control field.
Fix hardcode of ppp header size.
2010-05-10 16:27:15 -05:00
Kristen Carlson Accardi f13d5e2bad gsmdial: use g_at_ppp_new_from_io() 2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi 72c38f7adb gatchat: implement g_at_chat_get_io() 2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi cb36130b13 gsmdial: use g_at_chat_suspend 2010-05-10 15:41:39 -05:00
Kristen Carlson Accardi 2d8a1462db ppp: transition to dead when lcp finished
Transition to DEAD when lcp is finished and ignore any io
disconnects if we are already dead.
2010-05-10 15:29:44 -05:00
Andrzej Zaborowski 018ee10f92 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.
2010-05-10 15:26:09 -05:00
Zhenhua Zhang 988750898e Fix check data device before register the modem
To avoid the race condition that modem is registered before we retrieve
the data device property.
2010-05-10 15:26:09 -05:00
Torgny Johansson 4c483acbc6 add vid/pid for Dell 5541 and 5542 2010-05-04 11:08:46 +02:00
Denis Kenzior 5343272bc1 atmodem: Port gprs-context to new PPP api 2010-04-30 15:32:54 -05:00
Denis Kenzior 02c2cdaf21 gsmdial: Port to new PPP api 2010-04-30 15:32:45 -05:00