| 427df23b |
tools/mgmt-tester: Add support for runtime based HCI data checks |
Johan Hedberg |
12 years ago |
1 file, +8, -2 |
| 12d51b2e |
emulator/bthost: Add support for enabling SSP mode |
Johan Hedberg |
12 years ago |
2 files, +7, -0 |
| ea873d1a |
android/haltest: Add support for loading Audio HAL
This makes audio.a2dp.default.so to be loaded by haltest. |
Luiz Augusto von Dentz |
12 years ago |
5 files, +80, -3 |
| 48a962ec |
android: Load bluetooth.default.so as a module
This makes haltest and android-tester to load bluetooth.default.so
instead of linking directly to it. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +138, -39 |
| dd0d7e75 |
android: Convert libhal-internal to a plugin
This convert the static library libhal-internal.la to
bluetooth.default.la when building with autotools. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +7, -5 |
| 4cd86000 |
android: Convert libaudio-internal to a plugin
This convert the static library libaudio-internal.la to
audio.a2dp.default.so when building with autotools. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +5, -4 |
| 3c0dfcbe |
android/pts: Add PTS test results for L2CAP |
Sebastian Chlad |
12 years ago |
1 file, +64, -64 |
| 14bc777e |
doc: Add documentation for BR/EDR Secure Connections support |
Marcel Holtmann |
12 years ago |
1 file, +58, -4 |
| ca1cb143 |
tools: Show results for local OOB extended data |
Marcel Holtmann |
12 years ago |
1 file, +14, -0 |
| f7750cb8 |
lib: Add structure for local OOB extended data information |
Marcel Holtmann |
12 years ago |
1 file, +6, -0 |
| 6df84c66 |
tools: Account for kernel with secure connections support in mgmt-tester |
Marcel Holtmann |
12 years ago |
1 file, +1, -1 |
| ce827ffc |
tools: Add support for enabling secure connections support |
Marcel Holtmann |
12 years ago |
1 file, +10, -3 |
| 2ecff492 |
lib: Add constant for secure connections support command |
Marcel Holtmann |
12 years ago |
1 file, +3, -0 |
| 86275d63 |
tools: Add support for reading local OOB data from mgmt interface |
Marcel Holtmann |
12 years ago |
1 file, +52, -5 |
| 843087b5 |
shared: Fix not calling destroy callback while clearing up handlers
read/write_watch_destroy is be called after io_set_read/write_handler
exits. This was resulting in io destroy callback being NULLem before
destroy was called resulting in io destroy not being called at all.
Fix this by assigning destroy callback only if setting non-NULL
callback. destroy_watch will clean it when called.
Fix following valgrind report:
168 (120 direct, 48 indirect) bytes in 1 blocks are definitely lost in
loss record 34 of 36
at 0x4C2C494: calloc (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x409BAE: mgmt_new (mgmt.c:372)
by 0x409D05: mgmt_new_default (mgmt.c:469)
by 0x40E100: test_pre_setup (android-tester.c:371)
by 0x40AD84: start_tester (tester.c:586)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B76C: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127) |
Szymon Janc |
12 years ago |
1 file, +4, -4 |
| d51dce6e |
android/tester: Adjust get adapter class test value
Currently CoD is hardcoded so just adjust test value for now. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 69cf70af |
android/tester: Add test case state handling
This patch make test state handling more stable by avoiding errors like
i.e. double free of memory in teardown phase. Double state set is
undesirable for test case and may cause errors. Now after every
condition change, test state is checked if it can set test state to pass.
In some places of test fail, returns are added to avoid furhter code
execution. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +28, -15 |
| 2bc8ca02 |
android/tester: Use common property check function for all test props
This patch makes discovery device found test case to use generic
property check method. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +24, -49 |
| 31b830ed |
android/tester: Remove redundant whitespace |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +0, -1 |
| 0ffbc7d2 |
android/haltest: Silence static analyzers
This makes code more readable and silence static analyzers which think
that pipe and fd are close two times. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| 09161620 |
lib/sdp: Fix incorrect sizeof argument
length is a pointer to int table not int* table. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| 5415f0b8 |
l2test: Fix using incorrect size of option
Use size of option instead of size of pointer |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| 68f97019 |
hcidump: Fix missing break |
Andrei Emeltchenko |
12 years ago |
1 file, +4, -0 |
| 16c66d55 |
client: Add unblock command |
Szymon Janc |
12 years ago |
1 file, +31, -0 |
| 07ea2761 |
client: Add block command |
Szymon Janc |
12 years ago |
1 file, +31, -0 |
| 91ec552d |
client: Add untrust command |
Szymon Janc |
12 years ago |
1 file, +31, -0 |
| 8d2bdf4e |
input: Fix connecting new trusted sixaxis device
If sixaxis device was trusted before first connection over Bluetooth
connection might get accepted before device services were discovered.
This results in conection to PSM19 not being added to idev. To fix
this channel for PSM19 is also added to SDP complete callback so that
both channels are added. |
Szymon Janc |
12 years ago |
1 file, +3, -4 |
| fc8f951c |
input: Fix check if device is sixaxis in auth_callback
We need to accept connection if idev is not present but device is sixaxis.
This fix not doing so for sixaxis devices. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| e5a2670f |
input: Fix crash on authorization reply with first sixaxis connection
Bogus unref in sixaxis_sdp_cb was resulting in NULL pointer dereference when
auth_callback was called.
src/adapter.c:connected_callback() hci0 device 00:06:F7:57:08:9E
connected eir_len 5
src/device.c:device_set_class() /org/bluez/hci0/dev_00_06_F7_57_08_9E
0x000508
profiles/input/server.c:connect_event_cb() Incoming connection from
00:06:F7:57:08:9E on PSM 17
profiles/input/device.c:input_device_set_channel() idev (nil) psm 17
profiles/input/server.c:confirm_event_cb()
src/agent.c:agent_ref() 0x8117eb8: ref=2
src/agent.c:agent_authorize_service() authorize service request was
sent for /org/bluez/hci0/dev_00_06_F7_57_08_9E
src/device.c:device_probe_profiles() Probing profiles for device
00:06:F7:57:08:9E
profiles/input/device.c:input_device_register()
/org/bluez/hci0/dev_00_06_F7_57_08_9E
src/service.c:btd_service_ref() 0x811f580: ref=2
src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E
profile input-hid state changed: unavailable -> disconnected (0)
src/device.c:device_svc_resolved()
/org/bluez/hci0/dev_00_06_F7_57_08_9E err 0
profiles/input/server.c:sixaxis_sdp_cb() err 0 (Success)
profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm
17
profiles/input/server.c:connect_event_cb() Incoming connection from
00:06:F7:57:08:9E on PSM 19
profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm
19
src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E
profile input-hid state changed: disconnected -> connected (0)
sixaxis: compatible device connected: PLAYSTATION(R)3 Controller
(054C:0268)
plugins/sixaxis.c:setup_leds() number 2
sixaxis: failed to set LEDS (0 bytes written)
src/agent.c:agent_ref() 0x8117eb8: ref=3
Program received signal SIGSEGV, Segmentation fault. |
Szymon Janc |
12 years ago |
1 file, +2, -26 |
| 231ac1ca |
sixaxis: Don't mark USB plugged device as trusted
There were some valid conserns raised against marking plugged device
as trusted. Mainly due to posibility of crafted USB device. With this
patch user will be asked to confirm service connection and device can
be marked as trusted like any other devices. |
Szymon Janc |
12 years ago |
1 file, +0, -1 |
| f8754ec2 |
shared: Fix memory leaks in mgmt_unref
Destroy notify and pending lists on freeing mgmt. Those two lists
cannot be destroyed in same place as reply and request queues due
to being used in can_read_data().
Fix following valgrind reports:
24 bytes in 1 blocks are definitely lost in loss record 70 of 212
at 0x4C2C494: calloc (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x46B5E2: queue_new (queue.c:46)
by 0x46C3CA: mgmt_new (mgmt.c:407)
by 0x46C4B5: mgmt_new_default (mgmt.c:466)
by 0x45FB45: adapter_init (adapter.c:6237)
by 0x40A4F1: main (main.c:534)
24 bytes in 1 blocks are definitely lost in loss record 71 of 212
at 0x4C2C494: calloc (in /usr/lib/
valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x46B5E2: queue_new (queue.c:46)
by 0x46C3D8: mgmt_new (mgmt.c:417)
by 0x46C4B5: mgmt_new_default (mgmt.c:466)
by 0x45FB45: adapter_init (adapter.c:6237)
by 0x40A4F1: main (main.c:534) |
Szymon Janc |
12 years ago |
1 file, +6, -1 |
| 51e9b93d |
shared: Fix use after free in queue_foreach
Function passed to queue_foreach may free queue entry. Make loop safe
with that. Fix number of following valgrin reports.
Invalid read of size 8
at 0x408EEC: queue_foreach (queue.c:181)
by 0x409A0E: can_read_data (mgmt.c:286)
by 0x40896C: read_callback (io-glib.c:164)
by 0x4E7C3B5: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B5FC: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127)
Address 0x59603a8 is 8 bytes inside a block of size 16 free'd
at 0x4C2B60C: free (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x40910D: queue_remove_all (queue.c:289)
by 0x40A0BD: mgmt_unregister_all (mgmt.c:792)
by 0x40A0F4: mgmt_unref (mgmt.c:499)
by 0x40D814: index_removed_callback (android-tester.c:329)
by 0x408EEB: queue_foreach (queue.c:184)
by 0x409A0E: can_read_data (mgmt.c:286)
by 0x40896C: read_callback (io-glib.c:164)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B5FC: tester_run (tester.c:784) |
Szymon Janc |
12 years ago |
1 file, +9, -2 |
| da79a453 |
android/audio: Fix having declaration before code |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -1 |
| e32f2f1a |
shared: Add ref counting to struct io
This fix use after free in watch_destroy callbacks after mgmt_unref.
Fix number of following valgrind reports:
Invalid read of size 8
at 0x4088A1: read_watch_destroy (io-glib.c:116)
by 0x4E794A7: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7C4C1: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B53C: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127)
Address 0x595f828 is 24 bytes inside a block of size 72 free'd
at 0x4C2B60C: free (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x40A079: mgmt_unref (mgmt.c:504)
by 0x40D754: index_removed_callback (android-tester.c:329)
by 0x408E67: queue_foreach (queue.c:180)
by 0x40994E: can_read_data (mgmt.c:282)
by 0x40893C: read_callback (io-glib.c:135)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B53C: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127)
Invalid write of size 4
at 0x4088B3: read_watch_destroy (io-glib.c:119)
by 0x4E794A7: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7C4C1: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B53C: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127)
Address 0x595f818 is 8 bytes inside a block of size 72 free'd
at 0x4C2B60C: free (in /usr/lib/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x40A079: mgmt_unref (mgmt.c:504)
by 0x40D754: index_removed_callback (android-tester.c:329)
by 0x408E67: queue_foreach (queue.c:180)
by 0x40994E: can_read_data (mgmt.c:282)
by 0x40893C: read_callback (io-glib.c:135)
by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
libglib-2.0.so.0.3800.1)
by 0x40B53C: tester_run (tester.c:784)
by 0x4034F4: main (android-tester.c:2127) |
Szymon Janc |
12 years ago |
1 file, +39, -6 |
| cff3015e |
tools/mgmt-tester: Name Pair Device tests more descriptively |
Johan Hedberg |
12 years ago |
1 file, +2, -2 |
| a54f12fd |
tools/mgmt-tester: Add basic security mode 3 test case |
Johan Hedberg |
12 years ago |
1 file, +21, -0 |
| 0f6fb5c0 |
emulator: Add basic security mode 3 support |
Johan Hedberg |
12 years ago |
1 file, +49, -12 |
| 21706612 |
shared: Fix clearing of IO handlers
If NULL callback is passed to io_set_read/write_handler don't add watch
for it and just clear struct io memebers. This was resulting in
write/read_callback being call in loop due to fd being never written
or read. |
Szymon Janc |
12 years ago |
1 file, +14, -2 |
| 8d65d9c4 |
shared: Use return value to indicate IO watch removal |
Marcel Holtmann |
12 years ago |
3 files, +25, -20 |
| 2ad102d3 |
shared: Remove watches before freeing IO channel |
Marcel Holtmann |
12 years ago |
1 file, +6, -0 |
| b6df31f1 |
android/bluetooth: Set major and minor class od device
Currently this is hardcoded to Phone/Smartphone. |
Szymon Janc |
12 years ago |
1 file, +25, -0 |
| 4c0e55c4 |
android/bluetooth: Set default adapter name on first start
On first start always set name to default name. Adapter name is
updated on start only if current name is different. |
Szymon Janc |
12 years ago |
1 file, +6, -2 |
| fbba0f7d |
android: Fix typo in audio plugin file list |
Marcel Holtmann |
12 years ago |
1 file, +1, -1 |
| 5518b966 |
shared: Use IO abstraction for mgmt handling |
Marcel Holtmann |
12 years ago |
1 file, +46, -50 |
| 8df53c86 |
shared: Add support for GLib based IO handling |
Marcel Holtmann |
12 years ago |
2 files, +202, -0 |
| d18e1ad6 |
shared: Add skeleton for generic IO framework |
Marcel Holtmann |
12 years ago |
7 files, +62, -0 |
| b05cf8b2 |
shared: Use C library functions for memory allocation |
Marcel Holtmann |
12 years ago |
1 file, +26, -26 |
| 0f3d964b |
shared: Replace mgmt notify list with internal queue handling |
Marcel Holtmann |
12 years ago |
1 file, +84, -82 |
| 70f38998 |
shared: Replace mgmt pending list with a queue |
Marcel Holtmann |
12 years ago |
1 file, +31, -65 |
| 90f483a3 |
shared: Fix queue function to remove only specific entries |
Marcel Holtmann |
12 years ago |
2 files, +47, -17 |