| ea713c98 |
android: Add missing SSP Variant definitions to IPC document
Those are used to specify SSP association model. |
Szymon Janc |
12 years ago |
1 file, +5, -0 |
| 6748668d |
android/hal: Add support for sending adapter PIN reply command
This allows HAL to reply to PIN code request. |
Szymon Janc |
12 years ago |
1 file, +9, -1 |
| c853f60d |
android/hal: Add support for sending adapter remove bond command
This allows HAL to remove bonding. |
Szymon Janc |
12 years ago |
1 file, +6, -1 |
| 6312df1e |
android/hal: Add support for sending cancel bond command
This allows HAL to cancel pending bonding. |
Szymon Janc |
12 years ago |
1 file, +6, -1 |
| 34043763 |
android/hal: Add support for sending create bond command
This allows HAL to start bonding. |
Szymon Janc |
12 years ago |
1 file, +5, -3 |
| 0e35111e |
android/hal: Add support for sending adapter get properties command
This allows HAL to get all adapter properties. |
Szymon Janc |
12 years ago |
1 file, +2, -1 |
| 0c5d0441 |
android/hal: Add support for sending adapter get property command
This allows HAL to get adapter property. |
Szymon Janc |
12 years ago |
1 file, +22, -1 |
| 32e236d7 |
android/hal: Add support for sending adapter set property command
This allows HAL to set adapter property. |
Szymon Janc |
12 years ago |
1 file, +17, -2 |
| 56bfb47b |
android: Add properties defines to hal-msg.h
Android HAL defines some properties as adapter specific, some as
device specific and some as common. We split those to separate
adapter and device properties hence overlaping or holes in codes. |
Szymon Janc |
12 years ago |
1 file, +21, -0 |
| e4db4fdd |
android: Remove not needed local variable in connect_hal
err variable was set but never read. |
Szymon Janc |
12 years ago |
1 file, +4, -6 |
| 9acf4213 |
android/client: Add processing of .haltestrc
This patch allows tool to read commands from .haltestrc.
So it is possible to call some functions that are typically used.
So user can have:
adapter init
adapter get_profile_interface socket
adapter get_profile_interface pan
adapter get_profile_interface hidhost
adapter get_profile_interface a2dp
pan init
av init |
Jerzy Kasenberg |
12 years ago |
1 file, +5, -0 |
| a5383e21 |
android/client: Add source command to haltest
New command allows to read script file into tool and
execute its contents as if it was typed. |
Jerzy Kasenberg |
12 years ago |
1 file, +49, -1 |
| 19272594 |
android/client: Fix incorrect casts of addresses
This fixes printing of addresses.
If char is set to be signed (as it should) some addresses were
printed with leading FFFFFF. |
Jerzy Kasenberg |
12 years ago |
1 file, +3, -3 |
| 81e2fa91 |
android/client: Fix various coding style issues
Mostly indentation of arguments in functions and calls.
Prefix p remove from puser/penum_func.
Some empty lines added after closing } when needed.
Magic number for string length changed to preprocessor define.
Added spaces after casts. |
Jerzy Kasenberg |
12 years ago |
9 files, +175, -148 |
| 9918a415 |
android: Make haltest and bluetoothd depend on HAL lib
The patch makes haltest and bluetoothd depend on bluetooth.default target
which is already defined. glib dependency Android resolves itself.
Fixes issue that for the fresh build only bluetooth.default.so is built. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -0 |
| 17f8aa67 |
android: Fix debug logs when running on Android
Current Android log backed dones't enable debug logs. Instead of coping
code from src/log.c, just use it on Android as well.
No functionality is lost as currently Android log backed only prints
to standard output. |
Szymon Janc |
12 years ago |
3 files, +3, -94 |
| 54345db3 |
android: Use adapter index in mgmt functions
Instead of hardcoding index 0 use real index of adapter. This fix
using invalid index if adapter ID happens to be different than 0.
This should not happen on Android but is possible while testing on
Linux PC. |
Szymon Janc |
12 years ago |
1 file, +6, -4 |
| 194d2d5d |
android: Use default adapter in adapter functions
There is no need to pass pointer to adapter between function as there
is only one adapter in android daemon. Also default_adapter is renamed
to adapter.
There is no need to pass adapter pointer as user data since there is
only one adapter present. |
Szymon Janc |
12 years ago |
1 file, +27, -38 |
| 78761a80 |
android: Remove not needed adapter parameter from bt_adapter_ready
There is no need to pass adapter pointer in bt_adapter_ready callback
as there is only one present. |
Szymon Janc |
12 years ago |
3 files, +5, -7 |
| 5d044fff |
android: Fix bt_adapter_init
Make bt_adapter_init return void and use ready callback for error
reporting. This also fix returning incorrect status and invalid
mgmt_if unref (mgmt_send return 0 on error or >0 on success). |
Szymon Janc |
12 years ago |
2 files, +10, -12 |
| f9c5137d |
android: Start command watch after notify channel is connected
Daemon should start processing commands only after both communication
channels were connected. |
Szymon Janc |
12 years ago |
1 file, +4, -6 |
| 55a25cb8 |
android/hal-msg: Reduce length of defines and struct names
The current defines and struct names are way too big and sometimes
incosistent. |
Luiz Augusto von Dentz |
12 years ago |
8 files, +184, -186 |
| d60490a7 |
android: Enable AV interface
Include av_interface to get_interface function. |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -0 |
| 4569aaf0 |
android: haltest: Enable av interface in test tool |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| e5c9c6c3 |
android: Add calls to av methods in haltest
This patch adds calls to av interface in haltest. |
Jerzy Kasenberg |
12 years ago |
5 files, +136, -0 |
| ff3d7aa2 |
android: Fix use of invalid service ID in response
Adapter should use HAL_SERVICE_ID_BLUETOOTH service ID. |
Szymon Janc |
12 years ago |
1 file, +4, -2 |
| 3dbfab43 |
android/hal: Verify if command response service ID match
Received response service ID should match command service ID in
command, abort if it doesn't. |
Szymon Janc |
12 years ago |
1 file, +6, -0 |
| d7e0cfe0 |
android: Send notification on adapter power state change |
Szymon Janc |
12 years ago |
1 file, +16, -10 |
| f94baef8 |
android/hal: Fix crash while receiving notification
This fix following crash:
Invalid read of size 8
at 0x408B33: notification_handler (hal-ipc.c:122)
by 0x4E39E99: start_thread (pthread_create.c:308)
Address 0x8 is not stack'd, malloc'd or (recently) free'd |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 280d52ce |
android: Add missing adapter state values to IPC header |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| 9e6bcb42 |
android: Add missing adapter state values to IPC documentation |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| 6c47a0a0 |
android: Use helper function for finding headers
Using helper function allows us to overcome possible location
change in future Android releases. This was inspired by
Szymon Janc's comment to my previous patch. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| e3e957e0 |
android: Fix compilation error
The patch fixes errors with undefined symbols EXIT_FAILURE on Android. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -0 |
| 5619f854 |
android: Fix build error for Android
Android uses functions and defines from sys/capability.h which
requires additional include. However file capability.h shows up
in bionic in version Android 4.3, therefore we do check
PLATFORM_SDK_VERSION to no break builds of previous Android versions.
In previous Android version unistd.h contain this functionality. |
Lukasz Rymanowski |
12 years ago |
2 files, +8, -1 |
| 63c3679a |
android: Make use of Android system headers instead of local one
Since the headers were copied to android/ folder Android build started
to use those instead of original Android system headers. The patch
puts Android system headers first. |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -0 |
| 16102bea |
android: Add convenience variable for adapter bdaddr |
Johan Hedberg |
12 years ago |
1 file, +3, -3 |
| 46467fd5 |
android: Add support for registering and unregistering hid service |
Szymon Janc |
12 years ago |
3 files, +32, -0 |
| 9f696ad9 |
android: Add initial code for socket service
Only handle register/unregister for now. |
Szymon Janc |
12 years ago |
5 files, +79, -1 |
| 97732368 |
android: Add bt_adapter_get_address function
It will be used to obtain adapter address. |
Szymon Janc |
12 years ago |
2 files, +7, -0 |
| eea8d8e2 |
android: Add support for registering "bluetooth" service |
Szymon Janc |
12 years ago |
3 files, +30, -0 |
| ec2dc713 |
android: Add initial code for services unregister
This will be used to disable services on respective HAL cleanup calls. |
Szymon Janc |
12 years ago |
1 file, +12, -4 |
| f4fc4273 |
android: Add initial code for services register
This will be used to enable services on respective HAL init calls. |
Szymon Janc |
12 years ago |
1 file, +10, -4 |
| 8071e96a |
tools/l2cap-tester: Fix command reject expected responses
Invalid CID responses also contain the CID(s) that were invalid. |
Johan Hedberg |
12 years ago |
1 file, +4, -2 |
| 3adac8d7 |
android: Check that service is started
Add check that we are able to start Bluetooth service in
Android. If service is not started we should not try to connect to it. |
Andrei Emeltchenko |
12 years ago |
1 file, +5, -1 |
| de10a3d0 |
android/hid: Fix service type in error response |
Johan Hedberg |
12 years ago |
1 file, +1, -1 |
| 89a85ed6 |
android: Fix checking return of hal_ipc_cmd
hal_ipc_cmd should never return negative values |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -8 |
| 2f1277b1 |
android: Use sock prefix
This adds sock prefix for static function and replaces those that had
bt_sock as prefix. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +10, -10 |
| 0ee10ed2 |
android: Use pan prefix instead of bt_pan
This replaces the use of bt_pan as function prefix with pan. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +19, -19 |
| 5526825e |
android/client: Fix various coding style issues |
Johan Hedberg |
12 years ago |
2 files, +14, -12 |
| 674d6fe8 |
android: Add calls to pan methods to haltest
This patch allows to call pan methods in haltest. |
Jerzy Kasenberg |
12 years ago |
6 files, +216, -1 |