| 9d89bb12 |
android: Require at least 1.3 version of mgmt interface
Android daemon is not providing old kernels compatibility features. |
Szymon Janc |
12 years ago |
1 file, +2, -2 |
| 85e557ff |
adapter: Move MGMT_VERSION macro to mgmt.h
This will be also used in Android daemon. |
Szymon Janc |
12 years ago |
2 files, +2, -1 |
| 231cf864 |
monitor: Fallback to 80 columns terminal if not able to get real size
This makes num_columns always return valid number of columns, which is
expected by print_packets function.
This also fix garbage prints while using btmon via adb shell. |
Szymon Janc |
12 years ago |
2 files, +6, -4 |
| c17cf38e |
android: Pass found uuids to remote_device_properties_cb
Send remote device's uuids in remote_device_properties_cb.
This patch will pack found uuids to buffer containing property
with list of uuids and send it to notification socket. |
Marcin Kraglak |
12 years ago |
1 file, +81, -1 |
| 4b9e1d80 |
android: Fetch remote device uuids after pairing
Android framework expects list of bonded device's uuids.
Start sdp query after setting bond state to BOND_STATE_BONBED. |
Marcin Kraglak |
12 years ago |
1 file, +2, -0 |
| 1ee0b2f9 |
android: Initial implementation of get_remote_services
This patch implements method to retrieve remote device sdp records.
Caching struct is implemented for adding fetched uuids to list.
sdp_req_list will contain list of devices which are asked for records.
Function get_remote_services will check if device is on list, and will
start sdp procedure. |
Marcin Kraglak |
12 years ago |
1 file, +99, -1 |
| cd8bbd29 |
android/hid: Fix passing wrong adapter address to bt_io_listen |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -2 |
| ef0609cc |
android/client: Fix build for android 4.3
Chagnes in HAL interface from 4.3 to 4.4 result in build failure:
target thumb C: haltest <=
external/bluetooth/bluez/android/client/if-gatt.c
external/bluetooth/bluez/android/client/if-gatt.c:225:1:
error: unknown type name 'btgatt_gatt_id_t'
This patch allows to build GATT for Android 4.3 (api level 18). |
Jerzy Kasenberg |
12 years ago |
1 file, +21, -6 |
| 5de2f26a |
android/hid: Add hid event proto mode structure to hal msg headers |
Ravi kumar Veeramally |
12 years ago |
1 file, +9, -0 |
| ced41b02 |
tools/smp-tester: Add simple success test case |
Johan Hedberg |
12 years ago |
1 file, +29, -0 |
| 762a2ef4 |
android: Suppress compiler warnings not enabled by autotools build
missing-field-initializers warning is not enabled on autotools build.
Current code rely on implicit fields intializations resulting in flood
of bogus compiler warnings while building for Android.
monitor/packet.c:348:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:348:2: warning: (near initialization for
'error2str_table[64].error') [-Wmissing-field-initializers]
monitor/packet.c:542:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:542:2: warning: (near initialization for
'svc_class_table[8].bit') [-Wmissing-field-initializers]
monitor/packet.c:557:2: warning: missing initializer
[-Wmissing-field-initializers]
monitor/packet.c:557:2: warning: (near initialization for
'major_class_computer_table[8].val') [-Wmissing-field-initializers] |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| b01319a3 |
android/adapter: Make adapter_set_name call adapter_name_changed
This simplifies the code since the action of changing the name should
always be progated to the HAL there is no point in doing this
separately. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +23, -25 |
| 324ba2b3 |
android/daemon: Save adapter name on complete event
Saving adapter name was missing from set name complete event.
Refactor code to function and reuse it in both places where
name is changed. |
Andrei Emeltchenko |
12 years ago |
1 file, +14, -7 |
| 126aad3a |
android/client: Change adapter to bluetooth
This fixes all places where adapter should be changed to
bluetooth. |
Jerzy Kasenberg |
12 years ago |
2 files, +4, -4 |
| c73ddc60 |
android/client: Fix style and typos
Fixes spelling errors and white space style errors. |
Jerzy Kasenberg |
12 years ago |
3 files, +30, -20 |
| 6886d16e |
android: Add btmon to Android Makefile
Build btmon for Android image. btmon requires fresh bionic to build. |
Andrei Emeltchenko |
12 years ago |
1 file, +55, -0 |
| 5d098082 |
tools: Add smp-tester for automated LE SMP end-to-end tests |
Johan Hedberg |
12 years ago |
2 files, +363, -1 |
| d5306edc |
emulator/bthost: Add support for CID hooks
This patch adds support for registering CID based hooks to a bthost.
These are intended for test tools to override the default data handling
for specific CIDs. |
Johan Hedberg |
12 years ago |
2 files, +79, -0 |
| c5ca292e |
android/hid: Retrieve BOOT_DEVICE attribute from SDP and cache it
It will be usefull to handle when application level requests
get or set protocol from hid device. |
Ravi kumar Veeramally |
12 years ago |
1 file, +5, -0 |
| 34492997 |
android/hid: Rename function name set_state to notify_state
Renaming notification preparation function name from bt_hid_set_state
to bt_hid_notify_state. Rest of the funtions name will have proper
notify* names. |
Ravi kumar Veeramally |
12 years ago |
1 file, +10, -9 |
| d2064df6 |
android: Send current state of all properties while powering adapter
When adapter is powered on it is expected to emit all properties so
that framework could synchronize its state machine with current
state of HAL. There is no need to set scan mode to none on startup
as framework will set scan mode if current mode is different than
desired one. |
Szymon Janc |
12 years ago |
1 file, +3, -10 |
| 556c5ceb |
android: Implement scan_mode property in get property command
This will allow to query current state of scan mode property. |
Szymon Janc |
12 years ago |
1 file, +3, -3 |
| a880b227 |
android: Add support for handling get properties commands
When this commands is received all properties shall be reported to HAL. |
Szymon Janc |
12 years ago |
1 file, +17, -0 |
| 8baa84b7 |
android/client: Fix printing not NULL terminated strings
Android passes not NULL terminated strings. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -1 |
| 5af8a574 |
android/daemon: Fix setting adapter name
Android use the full string returned even if we terminate it with '\0'. |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -5 |
| 2dda637c |
android/daemon: Clean up get_address name
Make function name consistent with the rest of the code. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -2 |
| c98ce8a6 |
android/daemon: Implement get adapter name
Use adapter_name_changed for get_property call. |
Andrei Emeltchenko |
12 years ago |
1 file, +4, -3 |
| fe552a1a |
android/client: Fix annoying delay in command line
Move fflush(stdout) to after prints and user input.
This removes delay of showing prompt. |
Jerzy Kasenberg |
12 years ago |
2 files, +6, -5 |
| 180bc6db |
android/client: Change interface name to bluetooth
This changes 'adapter' to 'bluetooth' as name of HAL interface.
This name matches name fond in bluetooth.h where all interfaces
are defined. |
Jerzy Kasenberg |
12 years ago |
1 file, +1, -1 |
| 1ca4c658 |
android/pan: Add initial code for handling commands |
Luiz Augusto von Dentz |
12 years ago |
3 files, +62, -0 |
| 8e955dfd |
android: Add initial skeleton for pan in the daemon |
Luiz Augusto von Dentz |
12 years ago |
5 files, +89, -0 |
| 00e69a75 |
android/a2dp: Add initial code for handling commands |
Luiz Augusto von Dentz |
12 years ago |
3 files, +43, -0 |
| 5daffcb6 |
android: Add initial skeleton for a2dp in the daemon |
Luiz Augusto von Dentz |
12 years ago |
5 files, +92, -0 |
| d0682a5f |
hid2hci: fix regression in /dev format after moving away from libusb
The paths under /dev, in the default udev configuration, are formatted
with two leading zeros, but the number obtained from sysfs don't have
them, so we must convert them to integers and reformat them. |
Giovanni Campagna |
12 years ago |
1 file, +9, -6 |
| bd75bd81 |
android: Bump PLATFORM_SDK_VERSION to KitKat
This updates PLATFORM_SDK_VERSION to 19 since
bluetooth headers were updated already. |
Jerzy Kasenberg |
12 years ago |
1 file, +1, -1 |
| 3c82cea9 |
android: Fix not sending scan mode change notification
Check for current settings instead of changed setting mask when
sending notification. Otherwise scan mode change would be communicated
only if power state changed at the same time. |
Szymon Janc |
12 years ago |
1 file, +9, -8 |
| 6807460f |
android/client: Fix uninitialized variable
Pin accept variable was intended to be set to 1
only when pin was typed by user. If no pin was given
accept should be set to 0. This patch fixes this. |
Jerzy Kasenberg |
12 years ago |
1 file, +1, -1 |
| d661ba72 |
android: Add the missing HAVE_CONFIG_H check daemon files |
Luiz Augusto von Dentz |
12 years ago |
3 files, +12, -0 |
| f18bb68b |
android/hid: Use BT_IO_OPT_SOURCE_BDADDR whenever possible |
Luiz Augusto von Dentz |
12 years ago |
1 file, +6, -3 |
| 992f3f66 |
Fix incorrect result type in set_adapter_name |
Marcin Kraglak |
12 years ago |
1 file, +3, -3 |
| c304a4c9 |
android: Add stub of get_remote_services command |
Marcin Kraglak |
12 years ago |
1 file, +10, -0 |
| 5658fadf |
android/hal: Send get_remote_services cmd |
Marcin Kraglak |
12 years ago |
1 file, +7, -1 |
| ef4e9a88 |
android: Fix typo in get_remote_services command |
Marcin Kraglak |
12 years ago |
1 file, +2, -2 |
| f2782699 |
android/daemon: Add logs to trace failed cmd |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| be06afd8 |
android/hal: Add extra logs to HAL
Use exported functions from hal test tool to print properties. |
Andrei Emeltchenko |
12 years ago |
1 file, +22, -12 |
| 5ad3530e |
android/haltest: Fix print device name |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -2 |
| 2563307c |
android/haltest: Use pointer as parameter for debug
Pass structure as pointer. This makes it consistent with the rest of
the code and helps to reuse this function in other parts. |
Andrei Emeltchenko |
12 years ago |
3 files, +20, -20 |
| 59dcd707 |
android/haltest: Export print property
Export property printing debug function. |
Andrei Emeltchenko |
12 years ago |
3 files, +113, -109 |
| e996efa8 |
monitor: Fix decoding of link policy values |
Marcel Holtmann |
12 years ago |
1 file, +17, -1 |
| d590e131 |
monitor: Improve device id decoding |
Marcel Holtmann |
12 years ago |
1 file, +34, -9 |