| 62261d0b |
android/README: Add note on libglib under Valgrind |
Andrzej Kaczmarek |
11 years ago |
1 file, +6, -0 |
| 3fb59115 |
android/hal-avrcp: Add notification handlers |
Luiz Augusto von Dentz |
11 years ago |
1 file, +174, -0 |
| 32cc2bed |
android/hal-avrcp: Add .set_volume implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +16, -0 |
| 6753264d |
android/hal-avrcp: Add .register_notification_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +141, -0 |
| 5c3c1441 |
android/hal-avrcp: Add .set_player_app_value_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +17, -0 |
| 96b14998 |
android/hal-avrcp: Add .get_element_attr_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +42, -0 |
| 3656c6fb |
android/hal-avrcp: Add .get_player_app_value_text_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +26, -0 |
| 7d519df9 |
android/hal-avrcp: Add .get_player_app_attr_text_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +69, -0 |
| 36f05863 |
android/hal-avrcp: Add .get_player_app_value_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +35, -0 |
| d4b59ee6 |
android/hal-avrcp: Add .list_player_app_value_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +28, -0 |
| 5aa51176 |
android/hal-avrcp: Add .list_player_app_attr_rsp implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +29, -0 |
| 604acf4a |
android/hal-avrcp: Add .get_play_status implementation |
Luiz Augusto von Dentz |
11 years ago |
1 file, +19, -0 |
| b41ca5f4 |
android/avrcp: Add command handlers stubs |
Luiz Augusto von Dentz |
11 years ago |
1 file, +109, -0 |
| ff33778a |
android/hal-ipc-api: Use variable length for text attributes
This prevent having to increase the MTU size just to fit all attributes
when in fact some attributes are numbers (3 out of 8) in text format
which should not get even close to use 256 bytes defined by bt_rc.h. |
Luiz Augusto von Dentz |
11 years ago |
2 files, +6, -3 |
| 1446bca6 |
android/hal-ipc-api: Add Set Volume command |
Luiz Augusto von Dentz |
11 years ago |
2 files, +11, -0 |
| 6c1c75b3 |
android: Match socket IPC messages types with HAL name |
Szymon Janc |
11 years ago |
4 files, +30, -30 |
| c3b4322d |
android/hal-socket: Match functions names with HAL name |
Szymon Janc |
11 years ago |
3 files, +10, -10 |
| 1f7c726b |
android/hal-sock: Rename to hal-socket
This will match convention used for lib and daemon part of HAL. |
Szymon Janc |
11 years ago |
4 files, +98, -98 |
| e323df94 |
android/socket: Move statics declarations after types definitions
This also makes connections list static. |
Szymon Janc |
11 years ago |
1 file, +7, -8 |
| 70bc1db7 |
android/hidhost: Add idle time callback implementation
Although this callback is for deprecated functionality and
corresponding notification is never send by daemon it should be
implemented for library and IPC completeness. |
Szymon Janc |
11 years ago |
3 files, +31, -4 |
| 9d1f5a9c |
android/pts: Update MAP results |
Szymon Janc |
11 years ago |
1 file, +23, -19 |
| fbe1e434 |
android/pixit: Update MAP setting |
Szymon Janc |
11 years ago |
1 file, +2, -1 |
| 90b8f788 |
android/pts: Update PTS test results for PBAP |
Szymon Janc |
11 years ago |
1 file, +14, -12 |
| 307e4e14 |
android/pics: Fix PBAP settings |
Szymon Janc |
11 years ago |
1 file, +5, -5 |
| 2ed242f4 |
android/socket: Update PBAP profile version in SDP record
Android supports PBAP 1.1. |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 54addf4e |
hog: Use HoG device name as uHID input device name |
Petri Gynther |
11 years ago |
1 file, +9, -1 |
| f79a9e3b |
emulator/bthost: Fix command queue
Now new commands will be pushed to tail. Queue will be consumed
from head, firstly added commands will be sent. It repairs this
warning from android-tester:
==20561== 1,904 bytes in 7 blocks are definitely
lost in loss record 30 of 31
==20561== at 0x4006AB1: malloc (in /usr/lib/valgrind/
vgpreload_memcheck-x86-linux.so)
==20561== by 0x8050293: send_command (bthost.c:389)
==20561== by 0x80543E1: start_stack (hciemu.c:299)
==20561== by 0x41043D00: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x410470E5: g_main_context_dispatch (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x41047497: ??? (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x41047912: g_main_loop_run (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x8055870: tester_run (tester.c:798)
==20561== by 0x804B980: main (android-tester.c:3984) |
Marcin Kraglak |
11 years ago |
1 file, +7, -3 |
| dd78814e |
tools/bthost: Fix RFCOMM channel variable type |
Johan Hedberg |
11 years ago |
1 file, +1, -1 |
| 4ead1cb1 |
emulator/bthost: Rename rfcomm_channel to rfcomm_chan for shorter symbol names |
Johan Hedberg |
11 years ago |
3 files, +22, -23 |
| 06c9a191 |
tools/rfcomm-tester: Minor coding style fix |
Johan Hedberg |
11 years ago |
1 file, +2, -1 |
| ed0e8af1 |
tools/rfcomm-tester: Add RFCOMM server read test case
It will test reading data passed to RFCOMM socket on server side. |
Marcin Kraglak |
11 years ago |
1 file, +57, -1 |
| d6b69ed7 |
tools/rfcomm-tester: Add RFCOMM client read test case
This will test reading data passed to RFCOMM socket on client side. |
Marcin Kraglak |
11 years ago |
1 file, +46, -0 |
| e157b7f2 |
emulator/bthost: Add function to send RFCOMM UIH frames from bthost
This will make RFCOMM UIH frame and fill with data passed by user.
It also adds bthost internal tracking of RFCOMM connections to store
cid and channel - user have to pass only conenction handle and channel. |
Marcin Kraglak |
11 years ago |
2 files, +101, -0 |
| bc0c9928 |
tools/rfcomm-tester: Add RFCOMM server write test case
This will check data write from server to client. |
Marcin Kraglak |
11 years ago |
1 file, +51, -0 |
| 3b9b76da |
tools/rfcomm-tester: Add RFCOMM client write test case
This will test sending data through RFCOMM socket from client to server. |
Marcin Kraglak |
11 years ago |
1 file, +58, -1 |
| f5e82813 |
emulator/bthost: Add api to handle RFCOMM data on bthost
With this change user can handle data received on RFCOMM connection. |
Marcin Kraglak |
11 years ago |
2 files, +75, -4 |
| 011afd57 |
monitor: Add decoding of mgmt New IRK event |
Johan Hedberg |
11 years ago |
1 file, +24, -0 |
| e240ddf3 |
lib/mgmt: Add defines for New IRK event |
Johan Hedberg |
11 years ago |
1 file, +7, -0 |
| 0b4da942 |
core: Fix device_get_name() to always null-terminate what it returns
Fix device_get_name() to null-terminate the name string it returns.
Modify all callers as needed. |
Petri Gynther |
11 years ago |
3 files, +5, -3 |
| b81d63d5 |
adapter: Handle MGMT_SETTING_LE change
On dual-mode Bluetooth adapters, BLE is not enabled by default. When
bluetoothd starts, BLE is enabled in read_info_complete(), but this
management action does not always complete before adapter_start() is
called. Therefore, bluetoothd needs to handle the MGMT_SETTING_LE change
correctly in settings_changed(). Specifically,
trigger_passive_scanning() needs to be called so that paired BLE devices
(e.g. HoG devices) are able to reconnect back to host.
The trace below shows this case:
bluetoothd[1087]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
=> adapter_start() is called, but BLE is not yet enabled
bluetoothd[1087]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
bluetoothd[1087]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
bluetoothd[1087]: src/adapter.c:get_connections_complete() Connection count: 0
bluetoothd[1087]: src/adapter.c:new_settings_callback() Settings: 0x000000c1
bluetoothd[1087]: src/adapter.c:settings_changed() Changed settings: 0x00000040
bluetoothd[1087]: src/adapter.c:new_settings_callback() Settings: 0x000002c1
bluetoothd[1087]: src/adapter.c:settings_changed() Changed settings: 0x00000200
=> BLE got enabled, so need to call trigger_passive_scanning()
bluetoothd[1087]: src/adapter.c:new_settings_callback() Settings: 0x000002d1
bluetoothd[1087]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[1087]: src/adapter.c:new_settings_callback() Settings: 0x000002d3
bluetoothd[1087]: src/adapter.c:settings_changed() Changed settings: 0x00000002
The issue is easily reproducible with this init sequence:
hciconfig hci0 up
bluetoothd -n -d |
Petri Gynther |
11 years ago |
1 file, +7, -0 |
| 3f16d31c |
gdbus: Replace g_timeout_add with g_idle_add
Passing 0 as timeout to g_timeout_add should equivalent to g_idle_add. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -4 |
| 510b32b7 |
gdbus: Fix incorrect DBusConnection reference counting
Commit abfc2b0dd5c3e33abfdf1a815b16d492c1751c06 attempted to fix a crash
related to improper reference counting, but the main issue was that the
reference was taken only during the function call (which is usually
unnecessary for single thread), but still passed a pointer to
DBusConnection to a function that is called by the mainloop. This left a
window where the DBusConnection can be destroyed.
Fixes this crash on unit/test-gdbus-client:
==32642== Invalid read of size 4
==32642== at 0x690D0A6: dbus_connection_ref (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642== by 0x804CEDB: message_dispatch (mainloop.c:73)
==32642== by 0x684580E: g_timeout_dispatch (gmain.c:4450)
==32642== by 0x6844A75: g_main_context_dispatch (gmain.c:3065)
==32642== by 0x6844E14: g_main_context_iterate.isra.23 (gmain.c:3712)
==32642== by 0x68452FA: g_main_loop_run (gmain.c:3906)
==32642== by 0x804C7D3: client_connect_disconnect
(test-gdbus-client.c:188)
==32642== by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067)
==32642== by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138)
==32642== by 0x6869320: g_test_run_suite (gtestutils.c:2189)
==32642== by 0x686936B: g_test_run (gtestutils.c:1508)
==32642== by 0x696D4D2: (below main) (libc-start.c:226)
==32642== Address 0x709c6e4 is 140 bytes inside a block of size 144
free'd
==32642== at 0x67E806C: free (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32642== by 0x692D62E: dbus_free (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642== by 0x690E1C2: ??? (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642== by 0x804AAEC: destroy_context (test-gdbus-client.c:104)
==32642== by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067)
==32642== by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138)
==32642== by 0x6869320: g_test_run_suite (gtestutils.c:2189)
==32642== by 0x686936B: g_test_run (gtestutils.c:1508)
==32642== by 0x696D4D2: (below main) (libc-start.c:226) |
Anderson Lizardo |
11 years ago |
1 file, +4, -10 |
| f725b32c |
doc: Mention the identity address handling for pairing commands |
Marcel Holtmann |
11 years ago |
1 file, +44, -0 |
| b7ce0b2f |
unit: Fix memory leaks in test-gdbus-client |
Anderson Lizardo |
11 years ago |
1 file, +5, -0 |
| ceed85b7 |
gdbus: Fix memory leak
data->conn and data->path must be destroyed before freeing "data". |
Anderson Lizardo |
11 years ago |
1 file, +2, -0 |
| 971575ee |
tools/btmgmt: Add address type support for the unpair command |
Johan Hedberg |
11 years ago |
1 file, +34, -3 |
| f79ca7b8 |
tools/btmgmt: Print more detailed address information for pairing |
Johan Hedberg |
11 years ago |
1 file, +5, -1 |
| 67369325 |
tools/smp-tester: Add too-short request test case |
Johan Hedberg |
11 years ago |
1 file, +16, -0 |
| 60d28644 |
doc: Add management commands and events for privacy support |
Marcel Holtmann |
11 years ago |
1 file, +143, -0 |
| 2a1240fb |
tools/btmgmt: Add support for mgmt_load_irks |
Johan Hedberg |
11 years ago |
1 file, +30, -0 |