Commit Graph

6701 Commits

Author SHA1 Message Date
Denis Kenzior f39d7efb53 stk: use longer timeout for ImmediateResponse 2012-11-22 06:50:08 -06:00
Denis Kenzior 85c0e53013 stk: Use short timeout for get_inkey 2012-11-22 06:50:08 -06:00
Denis Kenzior b581f409ec stk: Use a shorter timeout for DisplayText
For any commands that are tagged as wait-for-user to clear, we should
use the shorter timeout.  The test system expects 25 to 35 seconds.
2012-11-22 06:50:08 -06:00
Marcel Holtmann d36e4b7580 ifx: Add comments about unhandled SIM states 2012-11-23 16:41:23 +01:00
Marcel Holtmann 48a5fec5cc atmodem: Monitor IFX technology and band changes 2012-11-23 16:20:15 +01:00
Marcel Holtmann e3cb6a5c68 test: Handle DisplayText with async_callbacks option 2012-11-23 16:18:52 +01:00
Cedric Jehasse b728a02981 atmodem: add PIN retry count for Alcatel modems 2012-11-15 12:31:06 -06:00
Cedric Jehasse f61cf95765 alcatel: create sim atom with vendor alcatel 2012-11-15 12:31:02 -06:00
Denis Kenzior 009c1c7061 AUTHORS: Mention Cedric's contributions 2012-11-12 13:31:21 -06:00
Cedric Jehasse 5f9c1e9e34 atmodem: Poll SIM state after entering PIN
Encountered a problem of CME ERROR 14: SIM busy on Alcatel and Huawei modem.
The Huawei modem has a ^SIMST unsollicited sim state indication, but not all
Huawei modems support this.
So poll the SIM state, as was already done for ZTE modems.
2012-11-12 13:30:38 -06:00
Cedric Jehasse 0f242c9714 atmodem: Add ALCATEL vendor 2012-11-12 13:30:13 -06:00
Denis Kenzior 2bc5871d52 mbm: Fix SIM not inserted detection 2012-11-07 07:59:57 -06:00
Denis Kenzior 4853306993 stktest: Add Poll Interval test sequence 1.1 2012-11-02 14:17:31 -05:00
Denis Kenzior e579d4060b unit: Move Poll Interval test data 1.1 2012-11-02 14:17:17 -05:00
Denis Kenzior f8e856a4c4 stktest: Label stktest modem as type TEST 2012-11-02 14:04:49 -05:00
Denis Kenzior e6df03b420 modem: Add support for modem type TEST 2012-11-02 14:03:16 -05:00
Denis Kenzior 84aae27f62 doc: Update modem API to reflect modem type test 2012-11-02 14:03:03 -05:00
Denis Kenzior b73a6c4f87 include: Add TEST modem type 2012-11-02 14:02:26 -05:00
Denis Kenzior 350adab5ec stktest: Add Play Tone test sequence 6.1 2012-11-02 13:27:13 -05:00
Denis Kenzior 31e8118057 unit: Move Play Tone 6.1 test data 2012-11-02 13:27:01 -05:00
Denis Kenzior f01d9691ea stktest: Add Play Tone test sequence 5.1 2012-11-02 13:18:42 -05:00
Denis Kenzior 5b463f219b unit: Move Play Tone 5.1 test data 2012-11-02 13:18:24 -05:00
Denis Kenzior c1efe3dc0c stktest: Add PlayTone test sequence 4.1-4.10 2012-11-02 12:55:33 -05:00
Denis Kenzior d90c2050ab unit: Fixup unit test PlayTone 4.10 2012-11-02 12:55:13 -05:00
Denis Kenzior 0da3d1745e unit: Move Play Tone 4.1-4.10 test data 2012-11-02 12:55:00 -05:00
Denis Kenzior 51c0974e17 AUTHORS: Mention Holger's contributions 2012-11-01 04:59:08 -05:00
Holger Hans Peter Freyther 6cacafe138 wavecom: Add peculiar CPIN as terminator behavior 2012-11-01 04:58:14 -05:00
Holger Hans Peter Freyther 2b9b1ae6d3 sim: Fix the quirk handling of CPIN for Wavecom
The Wavecom Q2XXX support broke in commit 72ce19bf3e.
This is because at_cpin_cb called decode_at_error with final and not
with OK. This lead to an error being set in the error variable and the
new code returns early when an error is set.

The addition of the terminator in at_sim_probe for Wavecom broke in
git commit ac524be99f because
terminators can not be added on cloned chats.

Move the addition of the terminator from the atmodem to the wavecom
plugin. Use the same terminator for Q2XXX and the normal Wavecom
class. The WAVECOM terminator has been tested on a Q2XXX modem.

Apply the CPIN quirk for both WAVECOM and WAVECOM_Q2XXX inside the
sim.c file. Introduce needs_wavecom_sim_quirk to handle it for
WAVECOM and WAVECOM_Q2XXX.
2012-11-01 04:56:51 -05:00
Luiz Augusto von Dentz 320096a7da gdbus: Fix not freeing list node by using g_slist_delete_link
g_slist_remove_link does not free the node which can cause leaks so
replace that with g_slist_delete_link which does free memory properly.
2012-10-31 16:18:58 -05:00
Lucas De Marchi 19cb623390 gdbus: Refactor filter_data_find()
Now this function is only used for searching the listeners of a
connection and the other parameters are not needed anymore.
2012-10-31 16:18:53 -05:00
Lucas De Marchi 5236c01a31 gdbus: Fix wrong signal handler match
When we add a signal handler with g_dbus_add_signal_watch(), this
function tries to multiplex the matches added in libdbus by checking
if there's a previous filter_data with the same fields. However, if the
field is NULL it accepts as being the same. The result is that the
following watches will use the same filter data:

watch1 = g_dbus_add_signal_watch(conn, BUS_NAME, NULL, iface, member,
						cb1, data1, NULL);
watch2 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path2", iface, member,
						cb2, data2, NULL);
watch3 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path3", iface, member,
						cb3, data3, NULL);

The result is that when a signal arrives with path == "/path2", all 3
callbacks above will be called, with the same signal delivered to all of
them.

Another problem is that, if we invert the calls like below, only signals
to cb1 will never be trigerred, nonetheless it used path == NULL.

watch2 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path2", iface, member,
						cb2, data2, NULL);
watch1 = g_dbus_add_signal_watch(conn, BUS_NAME, NULL, iface, member,
						cb1, data1, NULL);
watch3 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path3", iface, member,
						cb3, data3, NULL);

This is fixed by not multiplexing the matchs with filter data if any of
the fields are different, including being NULL. When a signal arrives,
if a field is NULL we accept it as a match, but not when adding the
signal handler.
2012-10-31 16:18:45 -05:00
Johan Hedberg 5033e06844 gdbus: Fix crash when getting disconnected from the bus
When getting disconnected from the bus sometimes (maybe always?)
dbus_watch_handle() can cause the "info" context to be free'd meaning
that we should not try to access it after the call. The only member we
need access to is the connection pointer and as the code already has a
ref() call for it it's only natural to solve the issue by adding a local
variable not dependent on "info".

The backtrace of the crash fixed looks as follows:

 Invalid read of size 8
   at 0x121085: watch_func (mainloop.c:105)
   by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
   by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
   by 0x120541: main (main.c:551)
 Address 0x5bbcd90 is 16 bytes inside a block of size 24 free'd
   at 0x4A079AE: free (vg_replace_malloc.c:427)
   by 0x4C7837E: g_free (gmem.c:252)
   by 0x4F708BF: dbus_watch_set_data (dbus-watch.c:614)
   by 0x4F70938: _dbus_watch_unref (dbus-watch.c:132)
   by 0x4F6E9A7: _dbus_transport_handle_watch (dbus-transport.c:884)
   by 0x4F59AFB: _dbus_connection_handle_watch (dbus-connection.c:1497)
   by 0x4F70AF9: dbus_watch_handle (dbus-watch.c:683)
   by 0x121084: watch_func (mainloop.c:103)
   by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
   by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
   by 0x120541: main (main.c:551)
2012-10-31 16:18:41 -05:00
Denis Kenzior d797013c4f stktest: Add Play Tone test sequence 3.1-3.4 2012-10-31 16:14:27 -05:00
Denis Kenzior c2a7695298 unit: Move Play Tone 3.1-3.4 test data 2012-10-31 16:14:27 -05:00
Denis Kenzior e42523fd04 stktest: Add PlayTone test sequence 2.1 2012-10-31 16:14:27 -05:00
Denis Kenzior c6158d739a unit: Move PlayTone 2.1 test data 2012-10-31 16:14:27 -05:00
Denis Kenzior 3ca41c73d5 stktest: Use a define for Cyrillic test data 2012-10-31 16:14:27 -05:00
Denis Kenzior cfdc4396a6 stktest: Add Play Tone test sequence 1.1.9-1.1.15 2012-10-31 16:14:27 -05:00
Denis Kenzior 82d5922f08 stktest: Add PlayTone test sequence 1.1.1-1.1.8 2012-10-31 16:14:27 -05:00
Denis Kenzior e078928196 unit: Move PlayTone test data for test sequence 1.1 2012-10-31 16:14:27 -05:00
Denis Kenzior 9d223e7e39 stk: Tweak the concept of continuous tones
The spec explicitly mentions continuous or repeatable tones.  02.40 only
mentions the RP-ACK tone as a single tone, all other tones seem to be
repeatable
2012-10-31 16:14:27 -05:00
Denis Kenzior 329158cdc2 stktest: Add stk_add_timed_test 2012-10-31 16:14:26 -05:00
Denis Kenzior d9dfa32269 stktest: Add PlayTone and LoopTone methods 2012-10-31 16:14:26 -05:00
Denis Kenzior af94372fb2 stktest: Add More Time test sequence 1.1 2012-10-31 16:14:26 -05:00
Denis Kenzior 67560b5919 unit: Move More Time test data 2012-10-31 16:14:26 -05:00
Marcel Holtmann acd6987a7f doc: Update hardware support information 2012-10-31 09:31:05 -07:00
Marti Raudsepp d28d473459 systemd: prevent duplicate logging messages in journal
By default, both stderr and syslog messages go to the systemd journal,
which results in duplicate messages being logged.

Thanks to Vinicius Costa Gomes for pointing out this problem.
2012-10-25 16:28:38 -07:00
Denis Kenzior 65a147eb17 stktest: Fix unused variable warnings 2012-10-20 21:18:13 -05:00
Denis Kenzior e3b10a6ace stktest: Add GetInput test sequence 12.1-12.2 2012-10-20 21:17:18 -05:00
Denis Kenzior 7ace5b454c unit: Move GetInput test data 12.1-12.2 2012-10-20 21:17:18 -05:00