OSDN Git Service
Szymon Janc [Wed, 11 Dec 2013 10:31:27 +0000 (11:31 +0100)]
android/bluetooth: Code style and whitespace cleanup
This fix some random style or whitespace damages. Also moves statics
after last type definition.
Szymon Janc [Wed, 11 Dec 2013 10:31:26 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device type property
This makes daemon store remote device address type to be able to handle
remote device type property.
Szymon Janc [Wed, 11 Dec 2013 10:31:25 +0000 (11:31 +0100)]
android/bluetooth: Add support for get remote device properties command
This allows to get all properties of specified remote device.
Szymon Janc [Wed, 11 Dec 2013 10:31:24 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device RSSI
This allows to cache remote device RSSI and get it with get property
command.
Szymon Janc [Wed, 11 Dec 2013 10:31:23 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device class
This allows to cache remote device CoD and get it with get property
command.
Szymon Janc [Wed, 11 Dec 2013 10:31:22 +0000 (11:31 +0100)]
android/bluetooth: Free devices on service unregister
There is no need to keep devices list in memory if service was
unregistered.
Szymon Janc [Wed, 11 Dec 2013 10:31:21 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device friendly name
This allows to get and set remote device property with friendly name.
Storage support is still missing.
Szymon Janc [Wed, 11 Dec 2013 10:31:20 +0000 (11:31 +0100)]
android/bluetooth: Add support for adapter bonded devices property
This allows to get property with list of bonded devices.
Szymon Janc [Wed, 11 Dec 2013 10:31:19 +0000 (11:31 +0100)]
android/bluetooth: Add support for reporting adapter type property
This allows to get property with adapter type.
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:43 +0000 (12:13 +0200)]
android/pan: Fix minor white space
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:42 +0000 (12:13 +0200)]
android/pan: Fix missing cleanup calls
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:39 +0000 (12:13 +0200)]
profiles/network/server: Delete function which does nothing
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:38 +0000 (12:13 +0200)]
bnep: Move bnep related calls to bnep.h|c
Moving bnep related calls to bnep.h|c to reduce redundancy
while using same in android/*.
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:37 +0000 (12:13 +0200)]
bnep: Rename send ctrl_rsp and make it global
Renaming send_bnep_ctrl_rsp to bnep_send_ctrl_rsp and moving
to bnep.h. It is required in android/*.
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:36 +0000 (12:13 +0200)]
bnep: Rename bnep_kill_connection to bnep_conndel
Renaming bnep_kill_connection to bnep_conndel to maintain
consistency with bnep_connadd function name.
Grzegorz Kolodziejczyk [Wed, 11 Dec 2013 10:46:37 +0000 (11:46 +0100)]
android/tester: Add status check and adapter enable, disable test cases
This adds handling of status check, enabled adapter setup method,
disable and enable fail test case.
Grzegorz Kolodziejczyk [Wed, 11 Dec 2013 10:46:36 +0000 (11:46 +0100)]
android/tester: Add basic enable test
Szymon Janc [Wed, 11 Dec 2013 10:46:35 +0000 (11:46 +0100)]
android/tester: Make HAL logging wrapper print to stderr instead of stdout
This is used for testing and for user it makes no difference. This
will allow to switch on/off verbose logging from automated android
tester.
Marcin Kraglak [Wed, 11 Dec 2013 10:46:34 +0000 (11:46 +0100)]
android/tester: Add stack initialization of stack in setup
This add stack initialization and cleanup in setup/teardown.
Marcin Kraglak [Wed, 11 Dec 2013 10:46:33 +0000 (11:46 +0100)]
android/tester: Start emulator in new process
This is needed because bluetooth->init call is blocking,
and we have to emulate normal behaviour of android environment.
That process will exit if it won't receive any message in 2 sec
or when bluetoothd will exit. Main tester thread will wait for
this process in teardown method.
Marcin Kraglak [Wed, 11 Dec 2013 10:46:32 +0000 (11:46 +0100)]
android/tester: Add pre-setup and post-teardown routines
This will add hciemu initialization and cleanup. These functions
will be called to create hci emulator and cleanup it.
Marcin Kraglak [Wed, 11 Dec 2013 10:46:31 +0000 (11:46 +0100)]
android/tester: Add android-tester
This commit add android-tester.c to tree and Makefile.am.
This will contain set of unit tests for testing android daemon.
Szymon Janc [Tue, 10 Dec 2013 15:06:22 +0000 (16:06 +0100)]
android/bluetooth: Add send_adapter_property helper function
Adapter property notification are send from multiple places so it make
sense to have helper for that. This is especially usefull for 'simple'
properties.
Szymon Janc [Tue, 10 Dec 2013 15:06:21 +0000 (16:06 +0100)]
android/bluetooth: Add send_device_property helper function
Remote device property notification will be send from multiple places
so it make sense to have helper for that. This will be especially
usefull for 'simple' properties.
Szymon Janc [Tue, 10 Dec 2013 15:06:20 +0000 (16:06 +0100)]
android/bluetooth: Add stubs for set device property command
This adds per property stubs.
Szymon Janc [Tue, 10 Dec 2013 15:06:19 +0000 (16:06 +0100)]
android/bluetooth: Add stubs for get device properties command
This adds per property stubs.
Szymon Janc [Tue, 10 Dec 2013 15:06:18 +0000 (16:06 +0100)]
android/bluetooth: Refactor send_remote_device_name_prop
Rename send_remote_device_name_prop to get_device_name and make it
accept struct device as parameter. Also return HAL status code.
This will allow to use this function also in get device property
command handler.
Szymon Janc [Tue, 10 Dec 2013 15:06:17 +0000 (16:06 +0100)]
android/bluetooth: Fix coding style issue in set_device_bond_state
Szymon Janc [Tue, 10 Dec 2013 15:06:16 +0000 (16:06 +0100)]
android/bluetooth: Use single list for device caching
This makes code much simpler and easier to follow. It is also
a preparation for supporting remote device properties getting, setting
and storing.
Szymon Janc [Tue, 10 Dec 2013 15:06:15 +0000 (16:06 +0100)]
android/bluetooth: Rename functions to match adapter properties names
This match adapter properties handling functions with properties names.
Will make code easier to understand and avoid clashes with remote
device properties functions.
Andrei Emeltchenko [Mon, 9 Dec 2013 14:17:28 +0000 (16:17 +0200)]
bnep: Remove unneeded assignment
Andrei Emeltchenko [Mon, 9 Dec 2013 14:11:21 +0000 (16:11 +0200)]
android/socket: Use getsockopt to set buffer
Use the RFCOMM socket buffer size to allocate the intermediate buffer used
for copying data between sockets to minimize context switches.
Marcel Holtmann [Tue, 10 Dec 2013 10:09:42 +0000 (02:09 -0800)]
Release 5.12
Marcel Holtmann [Tue, 10 Dec 2013 10:00:37 +0000 (02:00 -0800)]
lib: Add version information for Bluetooth 4.1
Marcel Holtmann [Tue, 10 Dec 2013 09:44:58 +0000 (01:44 -0800)]
build: Update library version
Marcel Holtmann [Tue, 10 Dec 2013 09:41:38 +0000 (01:41 -0800)]
lib: Update company identifiers
Luiz Augusto von Dentz [Tue, 10 Dec 2013 08:41:17 +0000 (10:41 +0200)]
core: Fix leaking disconnect message
If a disconnect message is pending return an error since currently the
code cannot process it in parallel.
Luiz Augusto von Dentz [Tue, 10 Dec 2013 08:41:16 +0000 (10:41 +0200)]
core: Fix not replying to DisconnectProfile
btd_service_disconnect may cause a service to disconnect before returning
which cause dev->disconnect to be set after device_profile_disconnected.
Bastien Nocera [Sat, 7 Dec 2013 14:53:41 +0000 (15:53 +0100)]
input: Fix crash when SDP record isn't available
On startup, if the SDP cache has been removed but the pairing
information is still present, we'd crash trying to access inside a NULL
record struct.
Andrei Emeltchenko [Tue, 10 Dec 2013 08:15:40 +0000 (10:15 +0200)]
core: Remove useless eir parsing function return value
Currently eir_parse always return 0 but it is checked throughout the code
(in android/bluetooth code as well in src/adapteri, etc) for return value
(err < 0) which never happens. Make function eir_parse return void. This
fixes warnings from static analyzer tools.
Szymon Janc [Mon, 9 Dec 2013 10:11:33 +0000 (11:11 +0100)]
core: Remove not needed struct adapter_keys
This is a leftover from using old storage format.
Szymon Janc [Mon, 9 Dec 2013 19:20:55 +0000 (20:20 +0100)]
core: Fix crash due to agent callback freeing the agent
Similar fix was provided for simple_agent_reply in
a2f5d438 but missed
pincode_reply case.
Fix following:
src/agent.c:agent_disconnect() Agent :1.48 disconnected
src/agent.c:set_default_agent() Default agent cleared
src/agent.c:agent_destroy() agent :1.48
src/agent.c:agent_unref() 0x4701c68: ref=1
Agent /org/bluez/agent replied with an error:
org.freedesktop.DBus.Error.NoReply, Message did not receive a reply
(timeout by message bus)
src/adapter.c:btd_adapter_pincode_reply() hci0 addr 6C:0E:0D:DB:D1:16
pinlen 0
src/agent.c:agent_unref() 0x4701c68: ref=0
src/adapter.c:btd_adapter_pincode_reply() hci0 addr 6C:0E:0D:DB:D1:16
pinlen 0
src/agent.c:agent_unref() 0x4701c68: ref=-1
src/adapter.c:btd_adapter_pincode_reply() hci0 addr 6C:0E:0D:DB:D1:16
pinlen 0
src/agent.c:agent_unref() 0x4701c68: ref=-2
...
Andrei Emeltchenko [Tue, 3 Dec 2013 16:04:54 +0000 (18:04 +0200)]
tools/obex-server-tool: Fix checking incorrect error code
chdir return -1 if error and 0 in success.
Szymon Janc [Tue, 3 Dec 2013 12:42:08 +0000 (13:42 +0100)]
android: Fix missing failure check in ipc_init
If connecting command socket failed daemon should be terminated.
Marcel Holtmann [Sun, 8 Dec 2013 16:49:36 +0000 (08:49 -0800)]
monitor: Add support for slave broadcast commands and events
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:17 +0000 (11:37 +0100)]
android/pan: Move logic from HAL to daemon
HAL should contain as little logic as possible, but we should be doing
these checks on daemon side anyway.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:16 +0000 (11:37 +0100)]
android/pan: Move logic from HAL layer to daemon
HAL should contain as little logic as possible, but we should be doing
these checks on daemon side anyway.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:15 +0000 (11:37 +0100)]
android/a2dp: Unregister ipc handlers if init fails
Add ipc handlers cleanup if init fails. Send proper status if
already initialized.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:14 +0000 (11:37 +0100)]
android/pan: Unregister ipc handlers if init fails
Add ipc handlers cleanup if init fails. Send proper status if
already initialized.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:13 +0000 (11:37 +0100)]
android/hidhost: Unregister ipc handlers if init fails
Add ipc handlers cleanup if init fails. Send proper status if
already initialized.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:12 +0000 (11:37 +0100)]
android: Fix sending status on bluetooth init if already initialized
We should be sending BT_STATUS_DONE when calling init on already
initialized interface like Bluedroid does. This indicates that previosly
registered callbacks are still registered, not those passed with second
init call.
Jakub Tyszkowski [Thu, 5 Dec 2013 10:37:11 +0000 (11:37 +0100)]
android: Update haltest tool entry in README
Update informations about 'adapter' interface being renamed to 'bluetooth' and
init being called on haltest startup by default.
Andrei Emeltchenko [Tue, 3 Dec 2013 15:53:11 +0000 (17:53 +0200)]
android/doc: Add socket-api.txt document
Document describes how socket HAL is working.
Andrei Emeltchenko [Tue, 3 Dec 2013 15:53:10 +0000 (17:53 +0200)]
android/pan: Fix no return on error path
This fixes possible crash in case connect fails.
Andrei Emeltchenko [Tue, 3 Dec 2013 15:53:09 +0000 (17:53 +0200)]
android/pan: Remove unneeded NULL assignment
Andrei Emeltchenko [Tue, 3 Dec 2013 15:53:08 +0000 (17:53 +0200)]
android/a2dp: Fix possible NULL dereference
Since a2dp_record may return NULL, check return value. This
silences static analysers tools.
Bastien Nocera [Sat, 7 Dec 2013 14:53:34 +0000 (15:53 +0100)]
device: When the Class changes, Icon might too
Send out a PropertyChanged signal when the Class changes for
Icon also changing, as it's likely that the Icon needs to be
refetched.
Tested with the PS3 Sixaxis controller connecting the first time
around, as it would not budge from not having any icons until the
client was restarted.
Marcel Holtmann [Sat, 7 Dec 2013 15:11:40 +0000 (07:11 -0800)]
monitor: Add support connectionless slave broadcast data command
Marcel Holtmann [Sat, 7 Dec 2013 14:52:02 +0000 (06:52 -0800)]
monitor: Add missing HCI error code 0x40
Marcel Holtmann [Sat, 7 Dec 2013 14:49:45 +0000 (06:49 -0800)]
monitor: Highlight unknown HCI error codes
Marcel Holtmann [Sat, 7 Dec 2013 14:44:24 +0000 (06:44 -0800)]
monitor: Add support for decoding LT_ADDR commands
Marcel Holtmann [Sat, 7 Dec 2013 12:05:28 +0000 (04:05 -0800)]
monitor: Add decoding for write sync train parameters command
Marcel Holtmann [Sat, 7 Dec 2013 11:11:48 +0000 (03:11 -0800)]
monitor: Decode BR/EDR Secure Connections commands and events
Marcel Holtmann [Sat, 7 Dec 2013 08:56:33 +0000 (00:56 -0800)]
monitor: Decode low duty cycle advertising parameters
Marcel Holtmann [Sat, 7 Dec 2013 08:49:52 +0000 (00:49 -0800)]
monitor: Update BR/EDR and LE command list
Marcel Holtmann [Sat, 7 Dec 2013 08:43:52 +0000 (00:43 -0800)]
monitor: Update BR/EDR and LE event list
Marcel Holtmann [Sat, 7 Dec 2013 08:43:01 +0000 (00:43 -0800)]
monitor: Update LE features and event mask decoding
Marcel Holtmann [Sat, 7 Dec 2013 08:27:27 +0000 (00:27 -0800)]
monitor: Update BR/EDR features and event mask decoding
Marcel Holtmann [Sat, 7 Dec 2013 08:14:14 +0000 (00:14 -0800)]
monitor: Add difference between P-192 and P-256 keys
Marcel Holtmann [Sat, 7 Dec 2013 08:07:30 +0000 (00:07 -0800)]
monitor: Fix HCI command naming from Bluetooth 4.1 specification
Marcel Holtmann [Sat, 7 Dec 2013 07:59:35 +0000 (23:59 -0800)]
monitor: Add support for handling LE Ping feature
Marcel Holtmann [Sat, 7 Dec 2013 07:53:40 +0000 (23:53 -0800)]
monitor: Add definitions for BR/EDR Secure Connections
Andrei Emeltchenko [Tue, 3 Dec 2013 15:51:10 +0000 (17:51 +0200)]
android/socket: Cleanup sockets on unregister
This cleans up rfsock structures closing all sockets and making general
cleanup for servers and for connections. This will be called form socket
unregister.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:32:39 +0000 (15:32 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-36-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:27:53 +0000 (15:27 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-35-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:18:17 +0000 (15:18 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-33-C test
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 13:09:38 +0000 (15:09 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-32-C test
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:55:30 +0000 (14:55 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/ESR04/BI-28-C test
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:28:43 +0000 (14:28 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-30-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetCapabilities response.
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:19:34 +0000 (14:19 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-28-C test
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
Luiz Augusto von Dentz [Wed, 4 Dec 2013 12:11:57 +0000 (14:11 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-27-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a suspend stream command from the Lower
Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 13:02:20 +0000 (15:02 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-26-C test
Verify that the IUTi (ACP) is able to issue a suspend stream reject
response to the Lower Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 12:47:51 +0000 (14:47 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-25-C test
Verify that the IUT (ACP) is able to report to the tester the rejection
of a suspend stream command sent by the Lower Tester (INT).
Luiz Augusto von Dentz [Tue, 3 Dec 2013 12:39:37 +0000 (14:39 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-24-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a close stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 12:13:03 +0000 (14:13 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-23-C test
Verify that the IUT (ACP) is able to issue a close stream reject
response to the Lower Tester (INT).
Luiz Augusto von Dentz [Mon, 2 Dec 2013 10:25:52 +0000 (12:25 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-22-C test
Verify that the IUT (INT) is able to report the rejection by the remote
device of the close stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 07:51:38 +0000 (09:51 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-21-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a start stream command.
Luiz Augusto von Dentz [Mon, 2 Dec 2013 07:43:02 +0000 (09:43 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-20-C test
Verify that the IUT (ACP) is able to issue a start stream reject
response to the INT.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 16:17:09 +0000 (18:17 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-19-C test
Verify that the IUT (INT) is able to report the rejection by the remote
device of the start stream command.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 16:02:19 +0000 (18:02 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-18-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to an open stream command.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 15:50:08 +0000 (17:50 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-17-C test
Verify that the IUT (ACP) is able to issue an Open stream reject
response to the INT.
Luiz Augusto von Dentz [Sun, 1 Dec 2013 15:33:22 +0000 (17:33 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-11-C test
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 13:00:11 +0000 (15:00 +0200)]
android/AVDTP: Fix not calling callback if GET_CONFIGURATION is rejected
If GET_CONFIGURATION command is rejected and a callback exists it should
be called with the reject error, this fixes test /TP/SIG/SMG/BI-10-C.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 12:59:01 +0000 (14:59 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-10-C test
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
Luiz Augusto von Dentz [Fri, 29 Nov 2013 12:42:43 +0000 (14:42 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-09-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a set configuration command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 15:26:41 +0000 (17:26 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-08-C test
Verify that the IUT (ACP) is able to issue a set configuration reject
response to the INT if the SEP is already configured.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 15:19:09 +0000 (17:19 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-07-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
set configuration command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:36:25 +0000 (16:36 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-06-C test
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a get capabilities command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:14:48 +0000 (16:14 +0200)]
unit/AVDTP: Add /TP/SIG/SMG/BI-05-C test
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
get capabilities command.
Luiz Augusto von Dentz [Thu, 28 Nov 2013 14:00:46 +0000 (16:00 +0200)]
android/AVDTP: Fix not calling callback if GET_CAPABILITIES is rejected
If GET_CAPABILITIES command is rejected and a callback exists it should
be called with the reject error, this fixes test /TP/SIG/SMG/BI-04-C.