| 61fd5a8e |
core: Fix stop_passive_scanning_complete()
Consider MGMT_STATUS_REJECTED as success for stop_passive_scanning().
MGMT_STATUS_REJECTED may be returned from kernel because the passive
scan timer had expired in kernel and passive scan was disabled just
around the time we called stop_passive_scanning().
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, +6, -1 |
| e847a856 |
android/hog: Fix using invalid range for external report |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -1 |
| e181b40d |
android/health: Fix setting wrong PSM for SDP record |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 8cdfae35 |
android/hog: Fix code style |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -5 |
| ab063ec8 |
android/hidhost: Add hid_device_new helper function |
Luiz Augusto von Dentz |
11 years ago |
1 file, +15, -12 |
| 16e27fa4 |
android/health: Add setting mcl callbacks for incoming connection
For incoming connection NULL is passed as argument since application is
not known yet. |
Andrei Emeltchenko |
11 years ago |
1 file, +23, -2 |
| c701a30b |
android/health: Refactor create_device
create_device() should not search for apps again since we have searched
already, and we do not have always app_id. |
Andrei Emeltchenko |
11 years ago |
1 file, +7, -5 |
| f756b74b |
android/health: Add actual error message to error print |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 32180fa3 |
android/health: Refactor setting mcl callbacks to function
Function will be used in other places as well. |
Andrei Emeltchenko |
11 years ago |
1 file, +13, -8 |
| c2cb1bf8 |
android/health: trivial: Fix missing space |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -0 |
| 90d35125 |
android/health: Remove extra check
gerr is always set on error condition. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -4 |
| a1d44da0 |
android/health: trivial: Remove empty line |
Andrei Emeltchenko |
11 years ago |
1 file, +0, -1 |
| fddcaa48 |
android/health: Fix missing error check |
Andrei Emeltchenko |
11 years ago |
1 file, +7, -2 |
| ee86b4a2 |
android/health: Fix possible overflow |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 1403ec37 |
android/health: Remove unneeded check
In case of error err is always set so the check is not needed. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -4 |
| e8bb8f1e |
android/hal-health: trivial: Correct coding style |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -2 |
| 961cbdfe |
android/gatt: Remove dead code
The code apparently left after wrong rebase as it duplicates code
several lines above. |
Andrei Emeltchenko |
11 years ago |
1 file, +0, -5 |
| 054f3bcf |
android/gatt: Fix wrong size argument
Instead of sizeof of (uint8_t *) pass real length, though for that
function it doesn't matter at this point. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 374d7a37 |
android/cts: Update tests results with CTS 4.4 R3
No LE GATT tests were run yet. |
Szymon Janc |
11 years ago |
1 file, +2, -1 |
| 09b9afbb |
HDP: Fix NULL check
Improves readability of the code using similar check for not NULL. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| dc95c60e |
HDP: trivial: Remove empty lines |
Andrei Emeltchenko |
11 years ago |
1 file, +0, -2 |
| 333dacef |
HDP: Fix possible memory leak |
Andrei Emeltchenko |
11 years ago |
1 file, +9, -7 |
| ba544236 |
mcap: Fix possible overflow |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| eaebd5db |
HDP: Fix checking always constant error code
Function sdp_set_add_access_protos() always returns 0, so there is no
sense to check for error code. |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -5 |
| 0a295fa8 |
HDP: Fix checking always constant error code
sdp_set_access_protos() always returns 0, there is no sense to check for
error code. Fixes compile warnings. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -4 |
| faf90d0d |
HDP: Remove extra debug statements
DBG() includes function name by default, so including it is not needed. |
Andrei Emeltchenko |
11 years ago |
1 file, +11, -9 |
| 2ea72148 |
android/bluetooth: Log error if loading LTKs or IRKs failed |
Szymon Janc |
11 years ago |
1 file, +20, -2 |
| df257c19 |
android/gatt: Use proper address when connecting
If device was using RPA but address was resolved IDA must be used. |
Szymon Janc |
11 years ago |
3 files, +34, -2 |
| aea4b868 |
android/bluetooth: Map RPA to Identity address on New IRK event
This patch allows to pair with devices using RPA. There is no API
to notify HAL about new Identity Address. When New IRK event is
received ID address is stored in device and map to RPA is done.
This allows to use RPA after address was resolved making this
transparent to Android Framework. When daemon is restarted device
is advertised to Framework with ID address. |
Szymon Janc |
11 years ago |
1 file, +71, -9 |
| edb033a0 |
android/bluetooth: Add get_device_android_addr helper
This will be used to fake address for Android Framework. |
Szymon Janc |
11 years ago |
1 file, +29, -14 |
| fded4d37 |
android/bluetooth: Fix passing address type to SSP replies |
Szymon Janc |
11 years ago |
1 file, +11, -9 |
| d3e7e6f5 |
android/bluetooth: Pass device to send_bond_state_change function |
Szymon Janc |
11 years ago |
1 file, +3, -3 |
| 36d29fc8 |
android/bluetooth: Add helper for finding device with android address |
Szymon Janc |
11 years ago |
1 file, +38, -29 |
| a0ad13dd |
android/hidhost: Fix adding hidhost device on devices list
Create hog connection cb functionality tried to operate on stored on
list hidhost device. Adding hidhost device to list should be done
before operating on it.
It caused sending bogus connecting state change. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +3, -2 |
| 162f3f64 |
android/health: Update PTS results
Update test results for TC_SRC_CC_BV_03_C, TC_SRC_CC_BV_07_C,
TC_SNK_CC_BV_04_C, TC_SNK_HCT_BV_01_I, TC_SNK_CC_BV_08_C and
TC_SRC_HCT_BV_01_I. |
Ravi kumar Veeramally |
11 years ago |
1 file, +75, -6 |
| ef7e4c37 |
android/client: Write dummy data on fd on health source connect
PTS expects dummy data on fd when it connects in source role. |
Ravi kumar Veeramally |
11 years ago |
1 file, +29, -10 |
| 1a384796 |
android/client: Fix coding style |
Ravi kumar Veeramally |
11 years ago |
2 files, +9, -9 |
| 36c0227f |
android/health: Fix error messages |
Ravi kumar Veeramally |
11 years ago |
1 file, +13, -13 |
| 5503e3ae |
android/health: Fix wrong mdep config index
MDEP Id starts from 1, (0 value for Echo). HAL api sends mdep cfg index
which starts from 0. |
Ravi kumar Veeramally |
11 years ago |
1 file, +1, -1 |
| ee675de1 |
android/pics: Do not set Suspend feature in HOGP
This requires integration with Android power management so leave it out
for now. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +4, -4 |
| 33a5353e |
android/pics: Fix having both types of discover set in HOGP
Currently the code discover by service handle and not by UUID. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -2 |
| 59a17e31 |
android/client: Fix closing wrong FD in health HAL |
Szymon Janc |
11 years ago |
1 file, +20, -4 |
| e61fc256 |
core: Fix using address of array instead of size
The dev->name variable is an array, so the address of it can never be
NULL. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -2 |
| 7d4d7bec |
anrdroid/client/health: Cache fd and close on channel disconnection
Cache fd and close them on channel disconnect or destroy notification.
When running PTS tests it is expecting to close all data channels before
exiting test case. |
Ravi kumar Veeramally |
11 years ago |
1 file, +9, -0 |
| 6d127e3b |
android/health: Implement mcap_mdl_deleted_cb
mcap_mdl_deleted_cb will be called if remote device sends MDL_DELETE_REQ.
Free channel data and notify channel is destroyed. |
Ravi kumar Veeramally |
11 years ago |
1 file, +22, -1 |
| a61f99c4 |
android/health: Create and connect MDL
Request for md_create_mdl and on successful response
connect mdl and pass fd. First data channel should be reliable
data channel. |
Ravi kumar Veeramally |
11 years ago |
1 file, +119, -2 |
| ab8a1f1d |
android/health: Notify channel status on channel destroy call |
Ravi kumar Veeramally |
11 years ago |
1 file, +32, -32 |
| e5f4e488 |
android/health: Cache remote mdep id on channel connect request
Remote mdep is required to initiate MD_CREATE_MDL_REQ request. |
Ravi kumar Veeramally |
11 years ago |
1 file, +123, -1 |
| 4543ac00 |
android/health: Check if device and channel already exists or not
On channel connect request, check if device is already exists or not.
Also check if channel is already created for remote device or not. |
Ravi kumar Veeramally |
11 years ago |
1 file, +83, -24 |
| b3bfa361 |
AUTHORS: Mention Arman's contributions |
Marcel Holtmann |
11 years ago |
1 file, +1, -0 |