| e4f4e503 |
android/health: Add error check when creating app |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -0 |
| 7f3adaeb |
lib: Remove not yet implemented management commands and events |
Marcel Holtmann |
11 years ago |
1 file, +0, -4 |
| 718e7cfe |
lib: Update with the new mgmt command opcodes |
Marcel Holtmann |
11 years ago |
1 file, +4, -2 |
| 2dbb42e5 |
doc: Update command opcode for Load Connection Parameters |
Marcel Holtmann |
11 years ago |
1 file, +1, -1 |
| 9c76a0a4 |
doc: Add management commands for Add Device and Remove Device |
Marcel Holtmann |
11 years ago |
1 file, +62, -0 |
| 83038976 |
doc: Move get clock info command to the next available opcode |
Marcel Holtmann |
11 years ago |
1 file, +37, -37 |
| 00fa756b |
tools: Don't try to read BD_ADDR manually for raw devices |
Marcel Holtmann |
11 years ago |
1 file, +0, -13 |
| 73de6ea5 |
lib: Add strings for connection parameter and clock info opcodes |
Marcel Holtmann |
11 years ago |
1 file, +3, -0 |
| c863b07e |
tools/btmgmt: Add basic support for Get Clock Info command |
Johan Hedberg |
11 years ago |
1 file, +44, -0 |
| 17926da6 |
lib/mgmt: Add defines for Get Clock Information |
Johan Hedberg |
11 years ago |
1 file, +11, -0 |
| 7441f6c6 |
android/pts: Add test files for DIS |
Sebastian Chlad |
11 years ago |
4 files, +125, -1 |
| dcbf0593 |
android/gatt: Remove System ID from DIS
System ID is not just a string but has a specified format and
should be unique.
DIS specification p. 3.7:
"The System ID characteristic shall represent a structure containing
an Organizationally Unique Identifier (OUI) followed by a manufacturer-defined
identifier and is unique for each individual instance of the product." |
Szymon Janc |
11 years ago |
1 file, +1, -9 |
| 76d93eab |
android/pts: Add test files for ScPP |
Sebastian Chlad |
11 years ago |
4 files, +195, -1 |
| 006e46b3 |
android/hog: Add support for Scan Parameter Service
If primary is not provided meaning primary should be auto discovered it
probably means other primary services such as Scan Parameter Profile
are not being handled either so just handle ScPP as well in such case. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +26, -0 |
| 6c534e2f |
android/scpp: Check for cached handles on attach |
Luiz Augusto von Dentz |
11 years ago |
1 file, +28, -16 |
| dbd31643 |
android/scpp: Add bt_scpp_set_interval and bt_scpp_set_window
These functions can be used to change the current values. |
Luiz Augusto von Dentz |
11 years ago |
2 files, +40, -6 |
| 579a639f |
android/scpp: Strip dependencies from scan plugin
This strip any dependecy from scan plugin so the code can be reused
by HoG implementation. |
Luiz Augusto von Dentz |
11 years ago |
4 files, +110, -92 |
| 5d5e9d5b |
android/scpp: Add copy to Scan Parameter Profile implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +272, -0 |
| 0df04a3f |
lib/uuid: Add define for Scan Parameter UUID |
Luiz Augusto von Dentz |
11 years ago |
2 files, +1, -2 |
| bc29b783 |
android/health: Fix NULL dereference |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| f9f6dd4c |
android/mcap: Fix using uninitialised value
Fixes clang warning:
...
android/mcap-lib.c:2366:20: warning: The left operand of '*' is a
garbage value
return tv->tv_sec * 1000000ll + tv->tv_nsec / 1000ll;
~~~~~~~~~~ ^
1 warning generated.
... |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -1 |
| 12c8d6fd |
android/health: Fix wrong callback return type |
Andrei Emeltchenko |
11 years ago |
1 file, +6, -2 |
| 58088e30 |
android/health: Implement destroy_channel call
Delete MDL channel with MDL_DELETE_REQ. |
Ravi kumar Veeramally |
11 years ago |
1 file, +23, -2 |
| 8efc2021 |
android/health: Implement mdl reconnect
MDL reconnection can be called only when it is already created, connected
and closed not deleted. |
Ravi kumar Veeramally |
11 years ago |
1 file, +60, -0 |
| d411e3e0 |
android/health: Fix deleting channels queue
Channels queue is created only on device creation. So do not destroy
queue on all mdls deleted in mdl_deleted_cb, just remove all entries. |
Ravi kumar Veeramally |
11 years ago |
1 file, +2, -2 |
| 424b25f1 |
android/health: Implement mdl_closed_cb callback
Callback will be called when data channel is disconnected/closed.
It does not mean that it is deleted. So only change connected status. |
Ravi kumar Veeramally |
11 years ago |
1 file, +8, -1 |
| 71677f06 |
android/client: Introduce close_channel API in health
In order to run PTS MDL disconnect and reconnect, HAL api does
not support it. This close simply shutdown the fd, remote device
will be notified like data channel is closed not deleted. So ready
for reconnection. |
Ravi kumar Veeramally |
11 years ago |
1 file, +29, -0 |
| 28fb4b17 |
android/health: Fix wrong user data passing in set_mcl_cb
It used to be channel, when set_mcl_cb refactored
it got changed to channed->dev.
commit 32180fa3a649ec26f9f3891a0ff5e4fe16592b91 introduced it. |
Ravi kumar Veeramally |
11 years ago |
1 file, +1, -1 |
| bec4567f |
android/pts: Update MCAP results |
Jakub Tyszkowski |
11 years ago |
1 file, +11, -5 |
| 38efcec2 |
android/mcaptest: Support unavailable response to first MDL connect
This is needed to pass TC_MCAP_ERR_BI_16_C |
Jakub Tyszkowski |
11 years ago |
1 file, +18, -3 |
| 1e71953f |
android/mcaptest: Send clock sync capabilities request
This adds option to send synchronization capabilities and requirements
request on MCL connection. |
Jakub Tyszkowski |
11 years ago |
1 file, +39, -4 |
| 4a06d825 |
doc: Add management command to get clock information |
Marcel Holtmann |
11 years ago |
1 file, +37, -0 |
| 3053eb7a |
unit/test-queue: Fix memory leak
This fixes the following memory leak:
32 bytes in 1 blocks are definitely lost in loss record 20 of 35
at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x400DC2: queue_new (queue.c:65)
by 0x400AA5: test_foreach_remove_all (test-queue.c:92)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40083E: main (test-queue.c:109) |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -0 |
| 3382ea05 |
shared/queue: Fix invalid read
If the queue elements are destroyed by queue_destroy the head will point
to freed memory causing the following error when unit/test-queue is run:
Invalid read of size 8
at 0x401040: queue_foreach (queue.c:194)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40083E: main (test-queue.c:109)
Address 0x7f65738 is 8 bytes inside a block of size 16 free'd
at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x400E29: queue_destroy (queue.c:93)
by 0x40102C: queue_foreach (queue.c:219)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40083E: main (test-queue.c:109) |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -14 |
| e4ad2b67 |
doc: Add address type information to get connection info command |
Marcel Holtmann |
11 years ago |
1 file, +5, -0 |
| 9bdab391 |
android/pts: Update MCAP results |
Jakub Tyszkowski |
11 years ago |
1 file, +40, -40 |
| da9035cc |
android/mcaptest: Support MDL reconnection if MCL reconnected
This is needed in some PTS test cases. |
Jakub Tyszkowski |
11 years ago |
1 file, +14, -2 |
| c74c2926 |
android/mcaptest: Support MDL and MCL disconnection
This adds support for MDL disconnection triggered with timeout after the
MDL is connected. It also adds MCL disconnection timeout after the MDL
has been disconnected. If less than 0 is passed as '-e' or '-f' option
parameter, disconnection is not triggered. This is needed to pass some
PTS test cases. |
Jakub Tyszkowski |
11 years ago |
1 file, +48, -11 |
| 7ba28627 |
android/mcaptest: Support incoming connections
This adds support for handling incoming Control Link (MCL) and Data
Link (MDL) connections. |
Jakub Tyszkowski |
11 years ago |
1 file, +100, -15 |
| 24989893 |
android/mcaptest: Support connect
This initiates the connection |
Jakub Tyszkowski |
11 years ago |
1 file, +64, -1 |
| 126dbad0 |
android/mcaptest: Add skeleton for mcap test tool
This adds skeleton for simple tool for testing mcap library. As mcap-lib
uses bt_io, this tool works in daemon-like mode, by utilizing Glib's main
loop. |
Jakub Tyszkowski |
11 years ago |
4 files, +230, -0 |
| ce58b0bd |
android/pts: Change MCAP PIXIT value
Handling single data channel will simplify mcaptest tool.
This can be changed later when mcaptest will be improved. |
Jakub Tyszkowski |
11 years ago |
1 file, +1, -1 |
| 7e639436 |
core: Fix bogus check to resume pending authorizations
After incoming pairing the code will attempt reverse service discovery
and queue any authorization request until the services are resolved, once
this process was completed the code should resume the authorization
process no matter how many are queued. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +0, -3 |
| 2c2e8738 |
android/gatt: Fix not sending notification on get included service
If there was and error notification with GATT error status should be
send. |
Szymon Janc |
11 years ago |
1 file, +11, -12 |
| 2520ba85 |
android/gatt: Fix not sending notification if no included services |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| ebf5439c |
android/health: Provide a helper funtion to search channel by id |
Ravi kumar Veeramally |
11 years ago |
1 file, +68, -1 |
| 09d30507 |
android/hal-health: Return app_id and channel_id -1 in case of error
Right now returning only status of request but java layer expecting
-1 for app_id and channel_id in failure case. |
Ravi kumar Veeramally |
11 years ago |
1 file, +2, -0 |
| a0ec9aee |
android/health: Rename matching functions |
Ravi kumar Veeramally |
11 years ago |
1 file, +17, -16 |
| 8186b392 |
core: Fix adapter_connect_list_add()
adapter_connect_list_add() needs to ensure that trigger_passive_scanning() is
called even for existing devices on the connect list.
This issue can be seen with BLE HoG remotes trying to reconnect to BlueZ. If
the connection fails, att_error_cb() adds the failed device back to connect
list, but since the device is already on the list, no code ends up calling
trigger_passive_scanning(). After this point, passive scanning is disabled
and remains disabled for good, and BLE reconnects to BlueZ no longer work.
bluetoothd[931]: src/adapter.c:device_found_callback() hci0 addr ...
bluetoothd[931]: src/device.c:device_set_legacy() legacy 0
bluetoothd[931]: src/adapter.c:stop_passive_scanning()
bluetoothd[931]: src/adapter.c:stop_passive_scanning_complete() status 0x00 (Success)
bluetoothd[931]: src/device.c:device_connect_le() Connection attempt to: ...
bluetoothd[931]: src/adapter.c:discovering_callback() hci0 type 6 discovering 0
bluetoothd[931]: src/adapter.c:connect_failed_callback() hci0 ... status 2
bluetoothd[931]: plugins/policy.c:conn_fail_cb() status 2
bluetoothd[931]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr ... type 1 status 0x2
bluetoothd[931]: src/device.c:device_bonding_complete() bonding (nil) status 0x02
bluetoothd[931]: src/device.c:device_bonding_failed() status 2
bluetoothd[931]: src/adapter.c:resume_discovery()
bluetoothd[931]: src/device.c:att_connect_cb() connect error: Transport endpoint is not connected (134)
bluetoothd[931]: src/device.c:att_error_cb() Enabling automatic connections
bluetoothd[931]: src/adapter.c:adapter_connect_list_add() ignoring already added device ...
... passive scan is disabled and remains disabled for good ... |
Petri Gynther |
11 years ago |
1 file, +2, -1 |
| a3e66a6b |
core: Fix discovering_callback()
discovering_callback() should not call trigger_passive_scanning() when
outgoing BLE connection is pending.
This issue can be seen with BLE HoG devices trying to reconnect to BlueZ:
bluetoothd[931]: src/adapter.c:device_found_callback() hci0 addr ...
bluetoothd[931]: src/device.c:device_set_legacy() legacy 0
bluetoothd[931]: src/device.c:device_set_rssi() rssi -75
bluetoothd[931]: src/adapter.c:stop_passive_scanning()
bluetoothd[931]: src/adapter.c:discovering_callback() hci0 type 6 discovering 0
bluetoothd[931]: src/adapter.c:trigger_passive_scanning()
bluetoothd[931]: src/adapter.c:stop_passive_scanning_complete() status 0x0b (Rejected)
bluetoothd[931]: Stopping passive scanning failed: Rejected |
Petri Gynther |
11 years ago |
1 file, +2, -1 |