Commits

Commit Message Author Age Changes
8980962f doc/test-coverage.txt: Update mgmt-tester test count Arman Uguray 10 years ago 1 file, +1, -1
fcdaa6ec tools/mgmt-tester: Add test cases for AD flags 0-4 This patch adds unit test cases for the Add Advertising flags 0-4. Arman Uguray 10 years ago 1 file, +144, -0
0cc10ae1 android/avdtp: Fix test /TP/SIG/SMG/BV-09-C Test /TP/SIG/SMG/BV-09-C frees the session after set_configuration is called causing the following backtrace: Invalid read of size 8 at 0x412B81: avdtp_sep_set_state (avdtp.c:846) by 0x413F3F: avdtp_set_configuration_resp (avdtp.c:2515) by 0x413F3F: avdtp_parse_resp (avdtp.c:2656) by 0x4159B7: session_cb (avdtp.c:2057) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EEC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4189D1: tester_run (tester.c:831) by 0x40C8C7: main (test-avdtp.c:1392) Address 0x58572b8 is 8 bytes inside a block of size 64 free'd at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E8450E: g_free (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4164B8: avdtp_unregister_sep (avdtp.c:3417) by 0x40CEA5: unregister_sep (test-avdtp.c:123) by 0x41704F: queue_remove_all (queue.c:387) by 0x4170B4: queue_destroy (queue.c:76) by 0x40CE54: destroy_context (test-avdtp.c:133) by 0x40CE54: context_quit (test-avdtp.c:145) by 0x40E74F: sep_setconf_cfm (test-avdtp.c:417) by 0x413F27: avdtp_set_configuration_resp (avdtp.c:2512) by 0x413F27: avdtp_parse_resp (avdtp.c:2656) by 0x4159B7: session_cb (avdtp.c:2057) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) Luiz Augusto von Dentz 10 years ago 1 file, +2, -2
335c8740 android/avdtp: Fix test /TP/SIG/SMG/BI-19-C Test /TP/SIG/SMG/BI-19-C was causing the following backtrace: Invalid write of size 4 at 0x415653: avdtp_parse_rej (avdtp.c:2801) by 0x415653: session_cb (avdtp.c:2067) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EEC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4189D1: tester_run (tester.c:831) by 0x40C8C7: main (test-avdtp.c:1392) Address 0x5c75b60 is 96 bytes inside a block of size 104 free'd at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E8450E: g_free (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4101F0: stream_free (avdtp.c:697) by 0x4E9C7FC: g_slist_foreach (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E9C81A: g_slist_free_full (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4106FF: avdtp_free (avdtp.c:974) by 0x4106FF: avdtp_unref (avdtp.c:1042) by 0x40CE18: destroy_context (test-avdtp.c:130) by 0x40CE18: context_quit (test-avdtp.c:145) by 0x40E38F: sep_start_cfm (test-avdtp.c:481) by 0x415652: avdtp_parse_rej (avdtp.c:2799) by 0x415652: session_cb (avdtp.c:2067) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EEC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4200.2) Luiz Augusto von Dentz 10 years ago 1 file, +1, -1
3b75c354 android/avdtp: Fix crashes caused by re-entrant calls This make sure that while processing a PDU the session callbacks are not able to destroy the session causing crashes. Luiz Augusto von Dentz 10 years ago 1 file, +15, -1
16d48b4d unit/test-avdtp: Use tester framework Our tester framework actually produces much better output. Luiz Augusto von Dentz 10 years ago 1 file, +40, -64
06a543ce android/avctp: Fix crashes caused by re-entrant calls This make sure that while processing a PDU the session callbacks are not able to destroy the session causing crashes. Luiz Augusto von Dentz 10 years ago 1 file, +50, -24
54baf9ad unit/test-avctp: Use tester framework Our tester framework actually produces much better output. Luiz Augusto von Dentz 10 years ago 1 file, +23, -40
18e3c0e4 tools/btmgmt: Prettify supported flags in advinfo This patch makes advinfo print human readable strings for the supported flags field of Read Advertising Features response for the advinfo command. Arman Uguray 10 years ago 1 file, +29, -1
e3d0e44b tools/btmgmt: Fix crash in add-adv data parsing This patch fixes an invalid free in parse_byte when an invalid data string is given: 0 0x00007ffff78204b7 in raise () from /usr/lib/libc.so.6 1 0x00007ffff782188a in abort () from /usr/lib/libc.so.6 2 0x00007ffff785e993 in __libc_message () from /usr/lib/libc.so.6 3 0x00007ffff7863dee in malloc_printerr () from /usr/lib/libc.so.6 4 0x00007ffff78645cb in _int_free () from /usr/lib/libc.so.6 5 0x00000000004034f4 in parse_bytes (optarg=0x67ee30 "-l", bytes=bytes@entry=0x7fffffffe8f0, len=len@entry=0x7fffffffe900) at tools/btmgmt.c:3739 6 0x0000000000404182 in cmd_add_adv (mgmt=0x635010, index=65535, argc=4, argv=0x67eae0) at tools/btmgmt.c:3814 7 0x00000000004057f8 in rl_handler (input=0x67eb10 "add-adv -d -l 1") at tools/btmgmt.c:4237 8 0x00007ffff7bbe25e in rl_callback_read_char () from /usr/lib/libreadline.so.6 9 0x0000000000403339 in prompt_read (io=<optimized out>, user_data=<optimized out>) at tools/btmgmt.c:4302 10 0x000000000041c7c9 in io_callback (fd=<optimized out>, events=1, user_data=0x635bc0) at src/shared/io-mainloop.c:123 11 0x000000000041cff3 in mainloop_run () at src/shared/mainloop.c:157 12 0x0000000000402630 in main (argc=0, argv=<optimized out>) at tools/btmgmt.c:4389 Arman Uguray 10 years ago 1 file, +1, -1
27358b6d tools/btmgmt: Better usage info for add-adv This patch improves the usage string that gets printed for the add-adv command to provide more details about the possible options. Arman Uguray 10 years ago 1 file, +12, -2
51822c15 tools/btmgmt: Rename add-adv --discoverable option This patch renames the --discoverable option of the add-adv command to --general-discov, which is more consistent with the --limited-discov option. Arman Uguray 10 years ago 1 file, +3, -3
df262a5c tools/btmgmt: Add the 'clr-adv' command This patch introduces the 'clr-adv' command which allows users to remove all registered advertising instances. Arman Uguray 10 years ago 1 file, +11, -2
f49be23e tools/btmgmt: Add --tx-power option to add-adv This patch adds the --tx-power (-p) option to the add-adv command, which can be used to request that the "Tx Power" AD field be managed by the kernel for a given advertising instance. Arman Uguray 10 years ago 1 file, +6, -2
4c0d63e2 tools/btmgmt: Add --managed-flags option to add-adv This patch adds the --managed-flags (-m) option to the add-adv command, which can be used to request that the "Flags" AD field be managed by the kernel for a given advertising instance. Arman Uguray 10 years ago 1 file, +6, -2
168c5d96 tools/btmgmt: Add --limited-discov option to add-adv This patch adds the --limited-discov (-l) option to the add-adv command, which can be used to add "limited discoverable" advertising instances. Arman Uguray 10 years ago 1 file, +6, -2
ce85fb2a tools/btmgmt: Add --discoverable option to add-adv This patch adds the --discoverable (-e) option to the add-adv command, which can be used to add "general discoverable" advertising instances. Arman Uguray 10 years ago 1 file, +6, -2
c364423d tools/btmgmt: Add --connectable option to add-adv This patch adds the --connectable (-c) option to the add-adv command, which can be used to add connectable advertising instances. Arman Uguray 10 years ago 1 file, +14, -8
4e5c00fc lib: Add macros for advertising instance flags This patch adds macro definitions for possible advertising instance flags that can be passed to the "Add Advertising" mgmt command. Arman Uguray 10 years ago 1 file, +8, -0
274194ee android/avrcp: Move SDP features defines to common header Those will be used also by linux implementation so no need to duplicate them. Szymon Janc 10 years ago 2 files, +10, -5
b148a4ed audio/control: Remove unused control_is_active function Szymon Janc 10 years ago 2 files, +0, -11
1dfad856 unit/test-dbus-client: Add client_no_object_manager test Adds a test for the functionality of g_dbus_client_new_full passing NULL as root_path. Michael Janssen 10 years ago 1 file, +54, -1
bbd3ff68 gdbus: Make GDBusClient work without ObjectManager This makes GDBusClient work normally without ObjectManager. Luiz Augusto von Dentz 10 years ago 1 file, +7, -2
84cc810f client: Add unregister-profile command This adds support to unregister-profile command which uses GattManager1.UnregisterProfile. Luiz Augusto von Dentz 10 years ago 3 files, +55, -0
78193c18 core/gatt: Add implementation of UnregisterProfile This adds initial implementation of GattProfile.UnregisterProfile. Luiz Augusto von Dentz 10 years ago 1 file, +34, -0
0677f7ac client: Add register-profile command This adds support to register-profile command which uses GattManager1.RegisterProfile. Luiz Augusto von Dentz 10 years ago 3 files, +139, -0
aef75509 core/gatt: Add implementation of RegisterProfile This adds initial implementation of RegisterProfile. Luiz Augusto von Dentz 10 years ago 1 file, +214, -0
fdf0ec00 build: Add advertising-api.txt to EXTRA_DIST This ensure it is included in the release tarball. Luiz Augusto von Dentz 10 years ago 1 file, +1, -1
1dfe9446 tools/btmgmt: Add "--uuid" option to add-adv This patch adds the --uuid (-u) option to the add-adv command. This allows callers to specify individual 128-bit or 16-bit UUIDs to be included in the "Complete List of Service CLass UUIDs" field of advertising data. Arman Uguray 10 years ago 1 file, +68, -5
60b1e35a tools/btmgmt: Add the 'rm-adv' command This patch introduces the add 'rm-adv' command which allows user to send the MGMT "Remove Advertising" command to the kernel. Arman Uguray 10 years ago 1 file, +53, -0
b06994f8 tools/btmgmt: Add the 'add-adv' command This patch introduces the 'add-adv' command which allows users to send the MGMT "Add Advertising" command to the kernel. Arman Uguray 10 years ago 1 file, +155, -0
11f3f047 tools/btmgmt: Observe Advertising Added/Removed btmgmt now observes Advertising Added/Removed events. Arman Uguray 10 years ago 1 file, +30, -0
fdef2d85 core/gatt: Fix crash during register_notify During service changed event the characteristics of the modified services will be destroyed and corresponding notify clients also will be freed. But those notify clients are not removed from all_notify_clients queue of btd_client which causes the below crash 0 queue_remove (queue=0x1, data=0xb8e97a68) at src/shared/queue.c:292 entry = <value optimized out> prev = <value optimized out> 1 0xb6f84c34 in register_notify (data=0xb8e9a900, user_data=0xb8e97a68) at src/gatt-client.c:1833 No locals. 2 register_notify (data=0xb8e9a900, user_data=0xb8e97a68) at src/gatt-client.c:1807 notify_client = 0xb8e9a900 client = 0xb8e97a68 op = 0xb8e91f30 3 0xb6f9a41a in queue_foreach (queue=0xb8e97a98, function=0xb6f84bd9 <register_notify>, user_data=0xb8e97a68) at src/shared/queue.c:251 next = <value optimized out> entry = 0xb8e9baf0 4 0xb6f89b62 in gatt_client_ready_cb (success=<value optimized out>, att_ecode=<value optimized out>, user_data=0xb8e97770) at src/device.c:5173 No locals. 5 gatt_client_ready_cb (success=<value optimized out>, att_ecode=<value optimized out>, user_data=0xb8e97770) at src/device.c:5132 device = 0xb8e97770 6 0xb6f9e232 in notify_client_ready (client=0xb8e90710, success=<value optimized out>, att_ecode=<value optimized out>) at src/shared/gatt-client.c:1019 No locals. 7 0xb6f9cb6a in complete_notify_request (data=<value optimized out>) at src/shared/gatt-client.c:1405 notify_data = <value optimized out> 8 0xb6f9e168 in enable_ccc_callback (opcode=<value optimized out>, pdu=<value optimized out>, length=<value optimized out>, user_data=0xb8e911a8) at src/shared/gatt-client.c:1488 notify_data = 0xb8e911a8 att_ecode = <value optimized out> __PRETTY_FUNCTION__ = "enable_ccc_callback" 9 0xb6f9c6d8 in handle_rsp (io=<value optimized out>, user_data=0xb8e9a330) at src/shared/att.c:640 rsp_opcode = 19 '\023' rsp_pdu = <value optimized out> rsp_pdu_len = <value optimized out> op = 0xb8e8ece8 req_opcode = <value optimized out> This patch removes the notify clients (which will be freed) from all_notify_clients as well Jaganath Kanakkassery 10 years ago 1 file, +11, -1
ca967050 monitor: Print control events for advertising added/removed Marcel Holtmann 10 years ago 1 file, +40, -0
f5b246a4 doc/test-coverage.txt: Update mgmt-tester test count Arman Uguray 10 years ago 1 file, +1, -1
34e0e965 tools/mgmt-tester: Add Advertising timeout test cases This patch adds test cases for the Add Advertising command when a timeout parameter has been given. Arman Uguray 10 years ago 1 file, +73, -0
8a27bfaf tools/mgmt-tester: Add Advertising scan response test cases This patch adds Scan Response Data related test cases for the Add Advertising command. Arman Uguray 10 years ago 1 file, +144, -2
97084943 tools/mgmt-tester: Remove Advertising test cases This patch adds test cases for the Remove Advertising command. Arman Uguray 10 years ago 1 file, +57, -0
dab31909 tools/mgmt-tester: Add Advertising test cases Added test cases for the Add Advertising command. Arman Uguray 10 years ago 1 file, +346, -0
32c93510 lib: Provide data structures for Add/Remove Advertising This patch provides data structures and opcodes for the Add/Remove Advertising commands and the Advertising Added/Removed events. Arman Uguray 10 years ago 1 file, +33, -0
289e8c48 doc: Add LE Advertisement D-Bus API documentation The LE Advertisement API allows external appications to define persistent LE Advertisement Data packets. Michael Janssen 10 years ago 1 file, +101, -0
982b9c32 obexd/pbap: Fix NULL check to avoid potential crash NULL pointer check for name is done before using the same. Bharat Panda 10 years ago 1 file, +5, -5
5cd26f33 shared/gatt-helpers: Improve robustness of get descriptors This patch makes sure that we do get into infinite loop when doing get descriptors operation. It could happen if we got bogus find information response Lukasz Rymanowski 10 years ago 1 file, +14, -1
d5af19f2 shared/gatt-helpers: Improve robustness read by type request This patch makes sure that we do get into infinite loop when doing read by type request. It could happen if we got bogus read by type response Lukasz Rymanowski 10 years ago 1 file, +14, -1
9800e884 shared/gatt-helpers: Improve robustness of get include services This patch makes sure that we do get into infinite loop when doing search for included services. It could happen if we got bogus read by type response Lukasz Rymanowski 10 years ago 1 file, +13, -1
0d1979bf shared/gatt-helpers: Improve robustness of get characteristics This patch makes sure that we do get into infinite loop when doing search for characteristics It could happen if we got bogus read by type response Lukasz Rymanowski 10 years ago 1 file, +14, -1
62effc8b shated/gatt-helpers: Improve robustness of search service This patch makes sure that we do get into infinite loop when doing search service request It could happen if we got bogus read by group or find by type response Lukasz Rymanowski 10 years ago 1 file, +28, -2
27f39bc2 shared/tester: Fix divide by zero error Before adding a check - o/p: Total: 0, Passed: 0 (-nan%), Failed: 0, Not Run: 0 After check - o/p: Total: 0, Passed: 0 (0.0%), Failed: 0, Not Run: 0 Gowtham Anandha Babu 10 years ago 1 file, +2, -1
ca694d48 doc/test-coverage: Update test-gatt count Gowtham Anandha Babu 10 years ago 1 file, +2, -2
fb29d5af unit/test-gatt: Add TP/GAW/SR/BV-07-C test Verify that a Generic Attribute Profile server can support cancel of a reliable write. Gowtham Anandha Babu 10 years ago 1 file, +22, -0
Previous Next