OSDN Git Service
Ravi kumar Veeramally [Mon, 23 Jun 2014 15:06:02 +0000 (18:06 +0300)]
android/client: Fix coding style
Ravi kumar Veeramally [Mon, 23 Jun 2014 15:06:01 +0000 (18:06 +0300)]
android/health: Fix error messages
Ravi kumar Veeramally [Mon, 23 Jun 2014 15:06:00 +0000 (18:06 +0300)]
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.
Luiz Augusto von Dentz [Mon, 23 Jun 2014 12:46:17 +0000 (15:46 +0300)]
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 [Mon, 23 Jun 2014 12:46:16 +0000 (15:46 +0300)]
android/pics: Fix having both types of discover set in HOGP
Currently the code discover by service handle and not by UUID.
Szymon Janc [Mon, 23 Jun 2014 13:24:09 +0000 (15:24 +0200)]
android/client: Fix closing wrong FD in health HAL
Andrei Emeltchenko [Mon, 23 Jun 2014 11:19:35 +0000 (14:19 +0300)]
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.
Ravi kumar Veeramally [Sun, 22 Jun 2014 11:59:01 +0000 (14:59 +0300)]
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 [Sun, 22 Jun 2014 11:59:00 +0000 (14:59 +0300)]
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 [Sun, 22 Jun 2014 11:58:59 +0000 (14:58 +0300)]
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 [Sun, 22 Jun 2014 11:58:58 +0000 (14:58 +0300)]
android/health: Notify channel status on channel destroy call
Ravi kumar Veeramally [Sun, 22 Jun 2014 11:58:57 +0000 (14:58 +0300)]
android/health: Cache remote mdep id on channel connect request
Remote mdep is required to initiate MD_CREATE_MDL_REQ request.
Ravi kumar Veeramally [Sun, 22 Jun 2014 11:58:56 +0000 (14:58 +0300)]
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.
Marcel Holtmann [Mon, 23 Jun 2014 08:37:11 +0000 (10:37 +0200)]
AUTHORS: Mention Arman's contributions
Marcel Holtmann [Mon, 23 Jun 2014 08:36:23 +0000 (10:36 +0200)]
shared/att: Fix a few compiler warnings
Arman Uguray [Wed, 18 Jun 2014 20:25:43 +0000 (13:25 -0700)]
shared/att: Handle incoming response PDUs
This patch adds handling for incoming ATT protocol response PDUs. Basic
incoming PDU handling logic added to the io read handler.
Arman Uguray [Wed, 18 Jun 2014 20:25:42 +0000 (13:25 -0700)]
shared/att: Implement write handler and bt_att_send.
This patch implements the write handler logic, including the way send
operations are process from the various internal queues. Added PDU
encoding for the Exchange MTU request.
Arman Uguray [Wed, 18 Jun 2014 20:25:41 +0000 (13:25 -0700)]
shared/att: Implement basic boilerplate.
This patch implements the getters, setters, creation, ref, and unref
functions for struct bt_att. Also added is a simple table for
determining the ATT op type given an opcode and the io read handler that
currently does nothing.
Arman Uguray [Wed, 18 Jun 2014 20:25:40 +0000 (13:25 -0700)]
shared/att: Introduce struct bt_att.
This patch introduces struct bt_att, which handles the transport and
encoding/decoding for the ATT protocol. The structure of the code
follows that of src/shared/mgmt and lib/mgmt.h, where individual
parameter structures are defined for all ATT protocol requests, responses,
commands, indications, and notifications. The serialization and
endianness conversion for all parameters are handled by bt_att.
struct bt_att is based around struct io and operates on a raw file
descriptor.
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:35 +0000 (16:55 +0300)]
hciconfig: Fix adding missing break
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:34 +0000 (16:55 +0300)]
hcitool: Fix adding missing break
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:33 +0000 (16:55 +0300)]
bnep: Fix redundant check
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:32 +0000 (16:55 +0300)]
monitor: Fix checking boolean return value
Since btsnoop_read_hci() is used from src/shared.
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:31 +0000 (16:55 +0300)]
tools/csr: Fix wrong error check
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:30 +0000 (16:55 +0300)]
queue: Fix unreachable code
I assume passing function == NULL means using direct_match() so make it
reachable.
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:29 +0000 (16:55 +0300)]
tools/mpris-player: Fix overflow before type widening
Expression is evaluated using 32-bit arithmetic before conversion to
64-bit.
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:28 +0000 (16:55 +0300)]
android/ipc-tester: Fix possible double close
I case of error we may close fd and pipe twice.
Marcel Holtmann [Mon, 23 Jun 2014 06:56:15 +0000 (08:56 +0200)]
doc: Add comment for single mode controllers without public address
Johan Hedberg [Mon, 23 Jun 2014 05:05:13 +0000 (08:05 +0300)]
doc/mgmt-api: Fix a couple of typos
Marcel Holtmann [Sun, 22 Jun 2014 20:05:51 +0000 (22:05 +0200)]
doc: Add extra mode for a reduced LE privacy mode
Marcel Holtmann [Sun, 22 Jun 2014 20:00:42 +0000 (22:00 +0200)]
doc: Add management support for handling connection parameters
Marcel Holtmann [Sat, 21 Jun 2014 02:21:08 +0000 (04:21 +0200)]
doc: Add mode for enabling generation of debug keys
Johan Hedberg [Sun, 22 Jun 2014 07:22:05 +0000 (10:22 +0300)]
client: Wait for D-Bus before processing stdin
This should make it possible to do some scripting with bluetoothctl.
Otherwise stdin is processed before we're connected to D-Bus and most
commands will fail as a consequence.
Ravi kumar Veeramally [Fri, 20 Jun 2014 12:23:30 +0000 (15:23 +0300)]
android/health: Fix queue creation for mdeps and devices
Create queue for mdeps, devices and channels when creating app
and device struct. It is simpler to read code than on demand
creation.
Marcel Holtmann [Fri, 20 Jun 2014 18:32:08 +0000 (20:32 +0200)]
Release 5.20
Marcel Holtmann [Fri, 20 Jun 2014 18:26:51 +0000 (20:26 +0200)]
build: Update library version
Lukasz Rymanowski [Thu, 19 Jun 2014 22:50:34 +0000 (00:50 +0200)]
android/pts: Update GAP PTS status
After enabling privacy for peripheral one more test gets enabled in PTS
Lukasz Rymanowski [Thu, 19 Jun 2014 22:50:33 +0000 (00:50 +0200)]
android/pics: Enable privacy for peripheral
Szymon Janc [Fri, 20 Jun 2014 14:33:34 +0000 (16:33 +0200)]
android/bluetooth: Fix loading device address type from storage
Address type is stored as "AddressType" key. Also this is valid only
for LE capable devices.
Szymon Janc [Fri, 20 Jun 2014 15:22:15 +0000 (17:22 +0200)]
android/bluetooth: Pass device to send_device_property function
Szymon Janc [Wed, 18 Jun 2014 17:50:11 +0000 (19:50 +0200)]
android/socket: Convert service UUID to 16 or 32 bits if possible
Jakub Tyszkowski [Wed, 18 Jun 2014 15:29:46 +0000 (17:29 +0200)]
android/pts: Update GAP results
Jakub Tyszkowski [Wed, 18 Jun 2014 14:09:21 +0000 (16:09 +0200)]
android/pts: Update GAP results
Jakub Tyszkowski [Wed, 18 Jun 2014 12:58:54 +0000 (14:58 +0200)]
android/gatt: Minor coding style fix
Jakub Tyszkowski [Wed, 18 Jun 2014 12:58:53 +0000 (14:58 +0200)]
android/gatt: Fix not freeing discover_srvc_data
This fixes the following issue:
32 bytes in 1 blocks are definitely lost in loss record 92 of 142
==19365== at 0x4C29DB4: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19365== by 0x43275A: search_dev_for_srvc (gatt.c:1302)
==19365== by 0x4354C9: connect_cb (gatt.c:1424)
==19365== by 0x448AD3: accept_cb (btio.c:203)
==19365== by 0x4E79D12: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==19365== by 0x4E7A05F: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==19365== by 0x4E7A459: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==19365== by 0x40459D: main (main.c:538)
Marcin Kraglak [Wed, 18 Jun 2014 09:08:19 +0000 (11:08 +0200)]
android/pts: Update PTS GAP results
Marcin Kraglak [Wed, 18 Jun 2014 09:08:18 +0000 (11:08 +0200)]
android/gatt: Add test command to increase security on link
Marcin Kraglak [Wed, 18 Jun 2014 09:08:17 +0000 (11:08 +0200)]
android/gatt: Set security level if user requested
Set security level if user requested. It is used when frameworks receives
INSUFFICIENT_ENCRYPTION or INSUFFICIENT_AUTHENTICATIONS errors on read/write
requests and tries to elevate security.
Marcin Kraglak [Wed, 18 Jun 2014 09:08:16 +0000 (11:08 +0200)]
android/hal-msg: Add defines of HAL_GATT_AUTHENTICATION values
These values are are used in read characteristic/write characteristic
functions in gatt_client.
Sebastian Chlad [Wed, 18 Jun 2014 07:08:42 +0000 (10:08 +0300)]
android/pts: Add PTS tests for HoG
Marcel Holtmann [Wed, 18 Jun 2014 11:52:43 +0000 (13:52 +0200)]
lib: Update company identifiers
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:52 +0000 (10:57 +0300)]
android/hal-health: trivial: Remove empty line
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:49 +0000 (10:57 +0300)]
android/gatt: Fix error check
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:47 +0000 (10:57 +0300)]
android/avrcp: Fix adding missing breaks
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:46 +0000 (10:57 +0300)]
android/ipc-tester: Fix closing invalid fd
Is socket() fails we jumps to failed label.
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:43 +0000 (10:57 +0300)]
HDP: Add length check
Fixes static analyzer warnings related to casting possible error code to
unsigned.
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:41 +0000 (10:57 +0300)]
HDP: trivial: Make code more readable
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:38 +0000 (10:57 +0300)]
android/hal-health: Change scope of mdep
Make code cleaner lowering scope for mdep to the place it is actually
used.
Andrei Emeltchenko [Tue, 17 Jun 2014 07:34:07 +0000 (10:34 +0300)]
android/health: Fix using uninitialized value err
Marcin Kraglak [Tue, 17 Jun 2014 13:31:09 +0000 (15:31 +0200)]
android/gatt: Move get_sec_level function
This will be used in read and write handlers functions.
Andrei Emeltchenko [Tue, 17 Jun 2014 13:56:07 +0000 (16:56 +0300)]
android/health: trivial: Remove unneeded NULL assignment
Grzegorz Kolodziejczyk [Tue, 17 Jun 2014 13:47:14 +0000 (15:47 +0200)]
android/health: Make coding style consistent for array parameter
Sebastian Chlad [Tue, 17 Jun 2014 15:13:54 +0000 (18:13 +0300)]
android/pts: Adjust PICS for HDP
Sebastian Chlad [Tue, 17 Jun 2014 14:53:27 +0000 (17:53 +0300)]
android/pts: PTS test results for HDP
Szymon Janc [Tue, 17 Jun 2014 13:53:33 +0000 (15:53 +0200)]
android/pts: Make PTS erratas style consistent
Marcin Kraglak [Tue, 17 Jun 2014 13:14:37 +0000 (15:14 +0200)]
android/pts: Update PTS GAP test results
Ravi kumar Veeramally [Tue, 17 Jun 2014 12:53:27 +0000 (15:53 +0300)]
android/health: Fix wrong parameter passing to android2bdaddr
Lukasz Rymanowski [Tue, 17 Jun 2014 12:22:50 +0000 (14:22 +0200)]
android/pts: Update SM PTS results
Lukasz Rymanowski [Mon, 16 Jun 2014 22:39:56 +0000 (00:39 +0200)]
android/pts: Disable OOB from Secure Manager PICS
Ravi kumar Veeramally [Tue, 17 Jun 2014 11:19:30 +0000 (14:19 +0300)]
android/health: Notify channel connection status
Ravi kumar Veeramally [Tue, 17 Jun 2014 11:19:29 +0000 (14:19 +0300)]
android/health: Initial connect channel implementation
Fetches remote sdp record and initiates MCL connection.
Ravi kumar Veeramally [Tue, 17 Jun 2014 11:19:28 +0000 (14:19 +0300)]
anrdoid/health: Fix wrong channel type defines
Enums in bt_hl.h are defined in this order BTHL_CHANNEL_TYPE_RELIABLE,
BTHL_CHANNEL_TYPE_STREAMING, BTHL_CHANNEL_TYPE_ANY. But HDP_SPEC_V11(3.4)
has no-preference(any)-0, reliable-1, stream-2, reserved(0x03-0xff).
Providing utility to solve this.
Ravi kumar Veeramally [Tue, 17 Jun 2014 11:19:27 +0000 (14:19 +0300)]
profiles/health/hdp: Fix memory leak in SDP record preparation
Sdp record preparation part is copied to android/health.c from
profiles/health/hdp_utils.c. Memory leak is noticed while testing. Memory
summay is from android daemon, but code snippet is same. It is already fixed
in android/health.c while submitting android related patches.
==12515== 286 (16 direct, 270 indirect) bytes in 1 blocks are definitely lost in loss record 158 of 165
==12515== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12515== by 0x44AC45: sdp_list_append (sdp.c:1743)
==12515== by 0x4398F9: register_features (health.c:381)
==12515== by 0x4091CC: queue_foreach (queue.c:219)
==12515== by 0x43A31F: bt_health_mdep_cfg_data (health.c:398)
==12515== by 0x418B50: cmd_watch_cb (ipc.c:144)
==12515== by 0x4E7FCE4: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12515== by 0x4E80047: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12515== by 0x4E80309: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12515== by 0x4044F2: main (main.c:538)
Marcin Kraglak [Tue, 17 Jun 2014 06:54:50 +0000 (08:54 +0200)]
android/bluetooth: Update bonding state after receiving new CSRK.
Set bonded state if received new CSRK.
Marcin Kraglak [Tue, 17 Jun 2014 06:54:49 +0000 (08:54 +0200)]
android/bluetooth: Clear CSRK information after unpair
CSRK information should be removed when unpaired.
Johan Hedberg [Tue, 17 Jun 2014 12:14:06 +0000 (15:14 +0300)]
doc: Update test coverage for mgmt-tester
Johan Hedberg [Tue, 17 Jun 2014 12:11:44 +0000 (15:11 +0300)]
tools/mgmt-tester: Add invalid IO capability tests
Johan Hedberg [Tue, 17 Jun 2014 11:55:07 +0000 (14:55 +0300)]
doc/mgmt-api: Specify valid IO Capability values
Lukasz Rymanowski [Mon, 16 Jun 2014 21:59:36 +0000 (23:59 +0200)]
android/gatt: Add test command for sign write
This is needed for some PTS test cases.
Lukasz Rymanowski [Mon, 16 Jun 2014 22:29:57 +0000 (00:29 +0200)]
tools/l2test: Fix setopts and getopts functions
Level SOL_L2CAP with optname L2CAP_OPTIONS is supported only for BR/EDR
Since bdaddr_type is set to BDADDR_BREDR by default, there is no sense
to check also CID.
This fix le connect which now fails when trying to connect ATT CID on LE
transport.
Szymon Janc [Mon, 16 Jun 2014 14:25:48 +0000 (16:25 +0200)]
android/system-emulator: Allow to run daemon without valgrind
If valgrind is not present on system start bluetoothd directly instead
of failing silently.
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:39 +0000 (18:01 +0300)]
android/health: Notify application deregistration status
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:38 +0000 (18:01 +0300)]
android/health: Notify application registration status
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:37 +0000 (18:01 +0300)]
android/health: Add HDP SDP record
SDP record preparation code copied from profiles/health/hdp_uitl.c.
So applying GSyC copyrights.
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:36 +0000 (18:01 +0300)]
android/health: Perform clean up on app unregister call
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:35 +0000 (18:01 +0300)]
android/health: Cache health application data on app register call
Szymon Janc [Mon, 16 Jun 2014 13:27:36 +0000 (15:27 +0200)]
android/health: Verify register_app command correctness
Make sure that offsets are correct as those will be used to access
command buffer.
Szymon Janc [Mon, 16 Jun 2014 13:27:35 +0000 (15:27 +0200)]
android/hal-health: Fix not setting offsets for empty strings
In register_app command all strings except app name are optional.
Those are passed over IPC concatenated and offsets are used to
determine string presence and length.
Johan Hedberg [Mon, 16 Jun 2014 13:06:49 +0000 (16:06 +0300)]
sdp: Fix missing sdp_xml_parse_string_decode() NULL return check
Vikrampal Yadav [Mon, 16 Jun 2014 10:46:47 +0000 (16:16 +0530)]
sdp: Fix memory issues to avoid potential crash
NULL pointer check added to handle memory allocation
failure scenarios.
Szymon Janc [Mon, 16 Jun 2014 10:57:47 +0000 (12:57 +0200)]
shared/gatt: Use proper type in attribute_destroy parameter
This function is not called as a callback so there is no need to have
it accept void pointer.
Andrzej Kaczmarek [Wed, 14 May 2014 13:18:00 +0000 (15:18 +0200)]
doc: Fix bit numbering in mgmt-api
Ravi kumar Veeramally [Thu, 12 Jun 2014 13:10:13 +0000 (16:10 +0300)]
android/hal-health: Add channel state event handler
Lukasz Rymanowski [Thu, 12 Jun 2014 11:12:30 +0000 (13:12 +0200)]
android/gatt: Allow signed write only on non encrypted link
Jakub Tyszkowski [Thu, 12 Jun 2014 08:44:43 +0000 (10:44 +0200)]
android/pts: Add PICS and PIXIT for HOGP
Sebastian Chlad [Thu, 12 Jun 2014 06:28:29 +0000 (08:28 +0200)]
android/pts: Adjust PICS for L2CAP
Luiz Augusto von Dentz [Fri, 13 Jun 2014 09:53:15 +0000 (12:53 +0300)]
android/gatt: Fix not setting medium security for paired devices
Always use medium security when connecting devices already paired since
some profiles like HoG do require encryption.
Luiz Augusto von Dentz [Thu, 12 Jun 2014 09:45:57 +0000 (12:45 +0300)]
android/bluetooth: Fix not setting expected discovery type
The code was not setting the expected discovery type for the next round
when discovering is active.
Luiz Augusto von Dentz [Thu, 12 Jun 2014 09:43:27 +0000 (12:43 +0300)]
android/hidhost: Add support for re-connecting HoG
Once HoG disconnects scanning should be turned on so that once the
device starts advertising again it should connected automatically.
Luiz Augusto von Dentz [Tue, 10 Jun 2014 12:46:34 +0000 (15:46 +0300)]
android/gatt: Do not disconnect immediately after discovering primaries
This is needed in Android in order react to services found.