OSDN Git Service
Johan Hedberg [Wed, 15 Jan 2014 13:17:57 +0000 (15:17 +0200)]
tools/mgmt-tester: Make expected mgmt event content checking optional
Luiz Augusto von Dentz [Tue, 14 Jan 2014 11:41:22 +0000 (13:41 +0200)]
android/A2DP: Connect transport channel when initiator
This connects transport channel when initiator of open request.
Luiz Augusto von Dentz [Tue, 14 Jan 2014 11:24:47 +0000 (13:24 +0200)]
android/A2DP: Add handling of incoming transport connection
This adds handling of incoming transport connection attempt.
Johan Hedberg [Wed, 15 Jan 2014 12:48:37 +0000 (14:48 +0200)]
tools/mgmt-tester: Add simple pairing acceptor test case
Johan Hedberg [Wed, 15 Jan 2014 12:48:12 +0000 (14:48 +0200)]
tools/mgmt-tester: Include PIN callback as a necessary test condition
Johan Hedberg [Wed, 15 Jan 2014 12:38:04 +0000 (14:38 +0200)]
emulator/bthost: Fix requesting encryption if authentication failed
Johan Hedberg [Wed, 15 Jan 2014 12:34:01 +0000 (14:34 +0200)]
emulator/bthost: Add API to request authentication
Johan Hedberg [Wed, 15 Jan 2014 12:33:38 +0000 (14:33 +0200)]
emulator/bthost: Add basic support for link key requests
Johan Hedberg [Wed, 15 Jan 2014 10:27:25 +0000 (12:27 +0200)]
tools/mgmt-tester: Fix BR/EDR disable callback if it's the last setting changed
Andrzej Kaczmarek [Tue, 14 Jan 2014 16:16:19 +0000 (17:16 +0100)]
android/a2dp: Fix freeing preset on SEP close
In case SEP was opened from local side, corresponding a2dp_setup
structure has just reference to a2dp_preset which is stored on presets
list. As a result, when closing SEP such preset will be freed leaving
dangling pointer on presets list.
Andrzej Kaczmarek [Tue, 14 Jan 2014 16:16:18 +0000 (17:16 +0100)]
android/a2dp: Fix IPC response length calculation
struct audio_rsp_open_stream has only zero-length array member thus its
size equals to 0. We need to explicitly specify size of array element
type here.
Marcel Holtmann [Wed, 15 Jan 2014 04:40:29 +0000 (20:40 -0800)]
android: Actually btmon does not need GLib includes
Marcel Holtmann [Wed, 15 Jan 2014 04:37:13 +0000 (20:37 -0800)]
android: Fix typo in referenced source file
Marcel Holtmann [Wed, 15 Jan 2014 04:31:55 +0000 (20:31 -0800)]
android: Include btproxy utility in distribution
Marcel Holtmann [Tue, 14 Jan 2014 21:42:45 +0000 (13:42 -0800)]
tools: Do not modify the available features
Johan Hedberg [Tue, 14 Jan 2014 20:42:21 +0000 (22:42 +0200)]
doc: Update l2cap-tester coverage statistics
Johan Hedberg [Tue, 14 Jan 2014 20:41:10 +0000 (22:41 +0200)]
doc: Fix minor whitespace issue
Johan Hedberg [Tue, 14 Jan 2014 20:40:13 +0000 (22:40 +0200)]
doc: Update mgmt-tester coverage statistics
Marcel Holtmann [Tue, 14 Jan 2014 20:35:42 +0000 (12:35 -0800)]
android: The property_set wrapper is actually written by Intel
Szymon Janc [Tue, 14 Jan 2014 18:37:16 +0000 (19:37 +0100)]
doc: Update android-tester summary in test-coverage.txt
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:46 +0000 (14:54 +0100)]
android/tester: Add get device FRIENDLY_NAME prop fail test case
This adds device FRIENDLY NAME property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:45 +0000 (14:54 +0100)]
android/tester: Add get device VERINFO property fail test case
This adds device VERSION INFO property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:44 +0000 (14:54 +0100)]
android/tester: Add get device DISCTIMEOUT prop fail test case
This adds device DISCOVERY TIMEOUT property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:43 +0000 (14:54 +0100)]
android/tester: Add get device BONDED_DEV property fail test case
This adds device BONDED DEVICES property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:42 +0000 (14:54 +0100)]
android/tester: Add get device SCAN_MODE property fail test case
This adds device SCAN MODE property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:41 +0000 (14:54 +0100)]
android/tester: Add get device SERVREC property fail test case
This adds device SERVICE RECORD property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:40 +0000 (14:54 +0100)]
android/tester: Add get device BDADDR property fail test case
This adds device BDADDR property fail test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:39 +0000 (14:54 +0100)]
android/tester: Add get device TIMESTAMP prop success test case
This adds device TIMESTAMP property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:38 +0000 (14:54 +0100)]
android/tester: Add get device RSSI property success test case
This adds device RSSI property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:37 +0000 (14:54 +0100)]
android/tester: Add get device TOD property success test case
This adds device TOD property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:36 +0000 (14:54 +0100)]
android/tester: Add get device COD property success test case
This adds device COD property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:35 +0000 (14:54 +0100)]
android/tester: Add get device UUIDS property success test case
This adds device UUIDS property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:34 +0000 (14:54 +0100)]
android/tester: Add get device BDNAME property success test case
This adds device BDNAME property success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:33 +0000 (14:54 +0100)]
android/tester: Add get device properties success test case
This adds device properties success test case.
Grzegorz Kolodziejczyk [Tue, 14 Jan 2014 13:54:32 +0000 (14:54 +0100)]
android/tester: Fix for asynchronous test case condition check
This patch fixes checking the state of test case. Due to asynchronous of
callbacks during state check of every single condition, state can be
checked double time by callback condition check with pass status already
set in meantime. Now state is kept as one decremented int.
To pass it must be equal zero and cannot be checked set again.
Szymon Janc [Tue, 14 Jan 2014 12:26:46 +0000 (13:26 +0100)]
android: Fix host build if libcap headers are not present
Szymon Janc [Tue, 14 Jan 2014 11:51:47 +0000 (12:51 +0100)]
android: Remove support for old Android versions
This removes compatibility with Android 4.3 and older. Android 4.4 is
current target. Due to bug in Audio HAL in 4.2 build was failing on
that version anyway.
Szymon Janc [Mon, 13 Jan 2014 22:47:08 +0000 (23:47 +0100)]
android/README: Update documentation with AOSP 4.4
This includes:
- sample repository to AOSP 4.4 based repository with support for
Nexus 4 and Nexus 7 2013 devices.
- adds info about snoop service
- other random additions
Andrei Emeltchenko [Mon, 13 Jan 2014 16:39:44 +0000 (18:39 +0200)]
l2test: Use correct buffer size
Andrei Emeltchenko [Mon, 13 Jan 2014 16:34:45 +0000 (18:34 +0200)]
scotest: Use correct buffer size
Marcel Holtmann [Tue, 14 Jan 2014 11:20:58 +0000 (03:20 -0800)]
monitor: Print vendor command status and complete as Vendor
Johan Hedberg [Tue, 14 Jan 2014 10:19:48 +0000 (12:19 +0200)]
tools/l2cap-tester: Add server side security block test case
Note that this test will currently fail part of the time due to a race
on the kernel side. This is because the kernel doesn't wait for remote
feature resolution before processing incoming L2CAP signaling packets.
Marcel Holtmann [Tue, 14 Jan 2014 11:12:51 +0000 (03:12 -0800)]
tools: Add support activating/deactivating traces
Marcel Holtmann [Tue, 14 Jan 2014 11:11:37 +0000 (03:11 -0800)]
monitor: Print status for unknown command complete events
Marcel Holtmann [Tue, 14 Jan 2014 11:08:22 +0000 (03:08 -0800)]
monitor: Print status only command complete for unknown commands
Marcel Holtmann [Tue, 14 Jan 2014 10:57:11 +0000 (02:57 -0800)]
monitor: Print vendor commands as Vendor and not as Unknown
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:48 +0000 (12:42 +0200)]
android/AVDTP: Fix invalid free of struct discover
If callback releases the last reference it can cause the following:
Invalid free() / delete / delete[] / realloc()
at 0x4A07577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x386244EF7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x410356: finalize_discovery (avdtp.c:933)
by 0x414462: session_cb (avdtp.c:2555)
by 0x38624492A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x3862449627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x3862449A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403A95: main (main.c:439)
Address 0x4cf7af0 is 0 bytes inside a block of size 24 free'd
at 0x4A07577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x386244EF7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x410356: finalize_discovery (avdtp.c:933)
by 0x4110BC: avdtp_unref (avdtp.c:1026)
by 0x416491: a2dp_device_free (a2dp.c:122)
by 0x4165DF: bt_a2dp_notify_state (a2dp.c:166)
by 0x417170: discover_cb (a2dp.c:333)
by 0x41034E: finalize_discovery (avdtp.c:931)
by 0x414462: session_cb (avdtp.c:2555)
by 0x38624492A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x3862449627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x3862449A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:47 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP abort confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:46 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP close confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:45 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP suspend confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:44 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP start confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:43 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP open confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:42 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP set_configuration confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:41 +0000 (12:42 +0200)]
android/A2DP: Discover endpoints when initiator
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:40 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP suspend indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:39 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP start indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:38 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP close indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:37 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP open indication
Johan Hedberg [Tue, 14 Jan 2014 08:00:45 +0000 (10:00 +0200)]
tools/l2cap-tester: Add two more Invalid PSM client tests for PSM 1
Marcel Holtmann [Tue, 14 Jan 2014 06:57:14 +0000 (22:57 -0800)]
shared: Add address and features configuration support
Marcel Holtmann [Tue, 14 Jan 2014 04:56:39 +0000 (20:56 -0800)]
tools: Add Bluemoon configuration utility
Marcel Holtmann [Tue, 14 Jan 2014 03:37:54 +0000 (19:37 -0800)]
shared: Introduce flag for detecting HCI stream based sources
Johan Hedberg [Mon, 13 Jan 2014 15:00:21 +0000 (17:00 +0200)]
tools/mgmt-tester: Add basic non-pairable SSP test case
Johan Hedberg [Mon, 13 Jan 2014 14:56:49 +0000 (16:56 +0200)]
emulator: Fix SSP IO capability request handling
Johan Hedberg [Mon, 13 Jan 2014 14:54:35 +0000 (16:54 +0200)]
monitor: Add definitions for IO capability request command completion
Johan Hedberg [Mon, 13 Jan 2014 14:31:39 +0000 (16:31 +0200)]
emulator: Add reminding comment to fix link key type
Johan Hedberg [Mon, 13 Jan 2014 14:31:00 +0000 (16:31 +0200)]
emulator: Fix emitting bogus encrypt change if we're not connected
Johan Hedberg [Mon, 13 Jan 2014 14:29:42 +0000 (16:29 +0200)]
tools/l2cap-tester: Add basic L2CAP client test with SSP enabled
Johan Hedberg [Mon, 13 Jan 2014 14:29:19 +0000 (16:29 +0200)]
tools/l2cap-tester: Fix missing pairable setting enabling
Johan Hedberg [Mon, 13 Jan 2014 14:27:17 +0000 (16:27 +0200)]
emulator: Fix returning correct remote host features
Johan Hedberg [Mon, 13 Jan 2014 14:26:22 +0000 (16:26 +0200)]
emulator: Fix completion of SSP user confirm commands
Johan Hedberg [Mon, 13 Jan 2014 14:24:47 +0000 (16:24 +0200)]
monitor: Add defines for SSP user confirmation command completion
Johan Hedberg [Mon, 13 Jan 2014 13:00:58 +0000 (15:00 +0200)]
tools/l2cap-tester: Add support for enabling SSP for tests
Andrzej Kaczmarek [Mon, 13 Jan 2014 12:53:47 +0000 (13:53 +0100)]
android/a2dp: Fix buffer size calculation for codec caps
Johan Hedberg [Mon, 13 Jan 2014 12:38:38 +0000 (14:38 +0200)]
tools/mgmt-tester: Add Security Mode 3 rejection test cases
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:34:45 +0000 (17:34 +0200)]
audio/A2DP: Add implemention of audio Suspend Stream command
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:31:52 +0000 (17:31 +0200)]
audio/A2DP: Add implemention of audio Resume Stream command
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:27:24 +0000 (17:27 +0200)]
audio/A2DP: Add implemention of audio Close Stream command
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:10:33 +0000 (15:10 +0200)]
audio/A2DP: Add implemention of audio Open Stream command
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:09:09 +0000 (15:09 +0200)]
audio/A2DP: Add implemention of audio Close command
Luiz Augusto von Dentz [Tue, 7 Jan 2014 15:29:42 +0000 (17:29 +0200)]
audio/A2DP: Add implemention of audio Open command
Johan Hedberg [Mon, 13 Jan 2014 12:32:26 +0000 (14:32 +0200)]
tools/mgmt-tester: Add basic SSP rejection test cases
Johan Hedberg [Mon, 13 Jan 2014 12:29:36 +0000 (14:29 +0200)]
emulator: Fix SSP rejection status propagation
Johan Hedberg [Mon, 13 Jan 2014 12:29:06 +0000 (14:29 +0200)]
emulator/bthost: Add API to reject SSP User Confirmation
Johan Hedberg [Mon, 13 Jan 2014 12:00:14 +0000 (14:00 +0200)]
tools/mgmt-tester: Add remote PIN rejection test case
Johan Hedberg [Mon, 13 Jan 2014 11:58:27 +0000 (13:58 +0200)]
tools/mgmt-tester: Add basic PIN code rejection test case
Johan Hedberg [Mon, 13 Jan 2014 11:35:58 +0000 (13:35 +0200)]
tools/mgmt-tester: Separate client (bthost) pairing parameters
Johan Hedberg [Mon, 13 Jan 2014 11:24:17 +0000 (13:24 +0200)]
tools/mgmt-tester: Add basinc User Confirmation SSP test case
Johan Hedberg [Mon, 13 Jan 2014 11:23:45 +0000 (13:23 +0200)]
emulator/bthost: Add support for specifying custom IO capability
Marcin Kraglak [Mon, 13 Jan 2014 10:36:33 +0000 (11:36 +0100)]
emulator/bthost: Fix sending L2CAP config req
Send L2CAP config request with correct dcid field. It worked
well only if scid and dcid of L2CAP connection were the same.
Johan Hedberg [Mon, 13 Jan 2014 10:57:58 +0000 (12:57 +0200)]
emulator/bthost: Request encryption when authentication completes
Johan Hedberg [Mon, 13 Jan 2014 10:57:41 +0000 (12:57 +0200)]
emulator: Add Set Connection Encryption command support
Johan Hedberg [Mon, 13 Jan 2014 10:57:13 +0000 (12:57 +0200)]
emulator: Encryption should be enabled only when explicitly requested
Sebastian Chlad [Fri, 10 Jan 2014 16:31:01 +0000 (18:31 +0200)]
tools/bluetooth-player: check path validity
Bluetooth-player change-folder cmd approves any argument however it
can be and then should a valid path only. Failing in providing
a valid path crashes bluetooth-player thus argument should be
checked if it's a valid path.
Jakub Tyszkowski [Mon, 13 Jan 2014 08:11:36 +0000 (09:11 +0100)]
android/pics: Add PICS and PIXIT for A2DP
Add PICS/PIXIT for A2DP targeting Android 4.4.
Jakub Tyszkowski [Mon, 13 Jan 2014 08:11:35 +0000 (09:11 +0100)]
android/pics: Add PICS and PIXIT for AVRCP
Add PICS/PIXIT for AVRCP targeting Android 4.4.
Szymon Janc [Fri, 10 Jan 2014 15:09:06 +0000 (16:09 +0100)]
android/pan: Generate file path in compile time
This reduce need of using snprintf function and removes need of manual
buffer size calculation.
Marcel Holtmann [Mon, 13 Jan 2014 08:51:42 +0000 (00:51 -0800)]
tools: Add first controller test case from HCI test specification
Szymon Janc [Mon, 13 Jan 2014 08:09:14 +0000 (09:09 +0100)]
tools: Stop converting file if write failed in seq2bseq
If write failed converted file would be broken. This make sure that
user is being informed about it.
Szymon Janc [Mon, 13 Jan 2014 08:09:13 +0000 (09:09 +0100)]
tools: Fix build error in seq2bseq
Don't ignore return value of write. This fix following build error on
Ubuntu:
tools/seq2bseq.c: In function ‘convert_line’:
tools/seq2bseq.c:52:8: error: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Werror=unused-result]
write(fd, &val, 1);