Commit Graph

6688 Commits

Author SHA1 Message Date
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
Denis Kenzior c3e2b9e4d1 stktest: Add GetInput test sequence 11.1-11.2 2012-10-20 21:17:18 -05:00
Denis Kenzior 92320c2a5c unit: Move GetInput 11.1-11.2 test data 2012-10-20 21:17:18 -05:00
Denis Kenzior be28342c18 stktest: Add GetInput test sequence 10.1-10.2 2012-10-20 21:17:16 -05:00
Denis Kenzior eb4fc4c652 unit: Move GetInput 10.1-10.2 test data 2012-10-20 20:57:53 -05:00
Denis Kenzior d0347b7f4c unit: Add GetInput test sequence 9.1-9.2 2012-10-20 19:50:55 -05:00
Denis Kenzior 40a50af2d0 unit: Move GetInput 9.1-9.2 test data 2012-10-20 19:50:40 -05:00
Denis Kenzior 7d89f23b99 stktest: Add GetInput test sequence 8.1-8.10 2012-10-20 19:40:29 -05:00
Denis Kenzior 5fa1e0c164 unit: Move GetInput test data 8.1-8.10 2012-10-20 19:39:53 -05:00
Denis Kenzior edf99d6fcc stktest: Add GetInput test sequence 6.1-6.4 2012-10-18 21:00:55 -05:00
Denis Kenzior eac1d829a6 unit: Move GetInput 6.1-6.4 test data 2012-10-18 21:00:38 -05:00
Denis Kenzior c91de33b2a stktest: Add GetInput test sequence 5.1-5.2 2012-10-18 20:42:52 -05:00
Denis Kenzior 124e2bbc09 unit: Move GetInput 5.1-5.2 test data 2012-10-18 20:42:38 -05:00
Denis Kenzior 8eb847f267 stktest: Add GetInput test sequence 4.1-4.2 2012-10-18 20:29:09 -05:00