OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoandroid/client: Fix coding style
Ravi kumar Veeramally [Mon, 23 Jun 2014 15:06:02 +0000 (18:06 +0300)]
android/client: Fix coding style

10 years agoandroid/health: Fix error messages
Ravi kumar Veeramally [Mon, 23 Jun 2014 15:06:01 +0000 (18:06 +0300)]
android/health: Fix error messages

10 years agoandroid/health: Fix wrong mdep config index
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.

10 years agoandroid/pics: Do not set Suspend feature in HOGP
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.

10 years agoandroid/pics: Fix having both types of discover set in HOGP
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.

10 years agoandroid/client: Fix closing wrong FD in health HAL
Szymon Janc [Mon, 23 Jun 2014 13:24:09 +0000 (15:24 +0200)]
android/client: Fix closing wrong FD in health HAL

10 years agocore: Fix using address of array instead of size
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.

10 years agoanrdroid/client/health: Cache fd and close on channel disconnection
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.

10 years agoandroid/health: Implement mcap_mdl_deleted_cb
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.

10 years agoandroid/health: Create and connect MDL
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.

10 years agoandroid/health: Notify channel status on channel destroy call
Ravi kumar Veeramally [Sun, 22 Jun 2014 11:58:58 +0000 (14:58 +0300)]
android/health: Notify channel status on channel destroy call

10 years agoandroid/health: Cache remote mdep id on channel connect request
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.

10 years agoandroid/health: Check if device and channel already exists or not
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.

10 years agoAUTHORS: Mention Arman's contributions
Marcel Holtmann [Mon, 23 Jun 2014 08:37:11 +0000 (10:37 +0200)]
AUTHORS: Mention Arman's contributions

10 years agoshared/att: Fix a few compiler warnings
Marcel Holtmann [Mon, 23 Jun 2014 08:36:23 +0000 (10:36 +0200)]
shared/att: Fix a few compiler warnings

10 years agoshared/att: Handle incoming response PDUs
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.

10 years agoshared/att: Implement write handler and bt_att_send.
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.

10 years agoshared/att: Implement basic boilerplate.
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.

10 years agoshared/att: Introduce struct bt_att.
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.

10 years agohciconfig: Fix adding missing break
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:35 +0000 (16:55 +0300)]
hciconfig: Fix adding missing break

10 years agohcitool: Fix adding missing break
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:34 +0000 (16:55 +0300)]
hcitool: Fix adding missing break

10 years agobnep: Fix redundant check
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:33 +0000 (16:55 +0300)]
bnep: Fix redundant check

10 years agomonitor: Fix checking boolean return value
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.

10 years agotools/csr: Fix wrong error check
Andrei Emeltchenko [Thu, 19 Jun 2014 13:55:31 +0000 (16:55 +0300)]
tools/csr: Fix wrong error check

10 years agoqueue: Fix unreachable code
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.

10 years agotools/mpris-player: Fix overflow before type widening
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.

10 years agoandroid/ipc-tester: Fix possible double close
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.

10 years agodoc: Add comment for single mode controllers without public address
Marcel Holtmann [Mon, 23 Jun 2014 06:56:15 +0000 (08:56 +0200)]
doc: Add comment for single mode controllers without public address

10 years agodoc/mgmt-api: Fix a couple of typos
Johan Hedberg [Mon, 23 Jun 2014 05:05:13 +0000 (08:05 +0300)]
doc/mgmt-api: Fix a couple of typos

10 years agodoc: Add extra mode for a reduced LE privacy mode
Marcel Holtmann [Sun, 22 Jun 2014 20:05:51 +0000 (22:05 +0200)]
doc: Add extra mode for a reduced LE privacy mode

10 years agodoc: Add management support for handling connection parameters
Marcel Holtmann [Sun, 22 Jun 2014 20:00:42 +0000 (22:00 +0200)]
doc: Add management support for handling connection parameters

10 years agodoc: Add mode for enabling generation of debug keys
Marcel Holtmann [Sat, 21 Jun 2014 02:21:08 +0000 (04:21 +0200)]
doc: Add mode for enabling generation of debug keys

10 years agoclient: Wait for D-Bus before processing stdin
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.

10 years agoandroid/health: Fix queue creation for mdeps and devices
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.

10 years agoRelease 5.20
Marcel Holtmann [Fri, 20 Jun 2014 18:32:08 +0000 (20:32 +0200)]
Release 5.20

10 years agobuild: Update library version
Marcel Holtmann [Fri, 20 Jun 2014 18:26:51 +0000 (20:26 +0200)]
build: Update library version

10 years agoandroid/pts: Update GAP PTS status
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

10 years agoandroid/pics: Enable privacy for peripheral
Lukasz Rymanowski [Thu, 19 Jun 2014 22:50:33 +0000 (00:50 +0200)]
android/pics: Enable privacy for peripheral

10 years agoandroid/bluetooth: Fix loading device address type from storage
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.

10 years agoandroid/bluetooth: Pass device to send_device_property function
Szymon Janc [Fri, 20 Jun 2014 15:22:15 +0000 (17:22 +0200)]
android/bluetooth: Pass device to send_device_property function

10 years agoandroid/socket: Convert service UUID to 16 or 32 bits if possible
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

10 years agoandroid/pts: Update GAP results
Jakub Tyszkowski [Wed, 18 Jun 2014 15:29:46 +0000 (17:29 +0200)]
android/pts: Update GAP results

10 years agoandroid/pts: Update GAP results
Jakub Tyszkowski [Wed, 18 Jun 2014 14:09:21 +0000 (16:09 +0200)]
android/pts: Update GAP results

10 years agoandroid/gatt: Minor coding style fix
Jakub Tyszkowski [Wed, 18 Jun 2014 12:58:54 +0000 (14:58 +0200)]
android/gatt: Minor coding style fix

10 years agoandroid/gatt: Fix not freeing discover_srvc_data
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)

10 years agoandroid/pts: Update PTS GAP results
Marcin Kraglak [Wed, 18 Jun 2014 09:08:19 +0000 (11:08 +0200)]
android/pts: Update PTS GAP results

10 years agoandroid/gatt: Add test command to increase security on link
Marcin Kraglak [Wed, 18 Jun 2014 09:08:18 +0000 (11:08 +0200)]
android/gatt: Add test command to increase security on link

10 years agoandroid/gatt: Set security level if user requested
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.

10 years agoandroid/hal-msg: Add defines of HAL_GATT_AUTHENTICATION values
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.

10 years agoandroid/pts: Add PTS tests for HoG
Sebastian Chlad [Wed, 18 Jun 2014 07:08:42 +0000 (10:08 +0300)]
android/pts: Add PTS tests for HoG

10 years agolib: Update company identifiers
Marcel Holtmann [Wed, 18 Jun 2014 11:52:43 +0000 (13:52 +0200)]
lib: Update company identifiers

10 years agoandroid/hal-health: trivial: Remove empty line
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:52 +0000 (10:57 +0300)]
android/hal-health: trivial: Remove empty line

10 years agoandroid/gatt: Fix error check
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:49 +0000 (10:57 +0300)]
android/gatt: Fix error check

10 years agoandroid/avrcp: Fix adding missing breaks
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:47 +0000 (10:57 +0300)]
android/avrcp: Fix adding missing breaks

10 years agoandroid/ipc-tester: Fix closing invalid fd
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.

10 years agoHDP: Add length check
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.

10 years agoHDP: trivial: Make code more readable
Andrei Emeltchenko [Mon, 16 Jun 2014 07:57:41 +0000 (10:57 +0300)]
HDP: trivial: Make code more readable

10 years agoandroid/hal-health: Change scope of mdep
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.

10 years agoandroid/health: Fix using uninitialized value err
Andrei Emeltchenko [Tue, 17 Jun 2014 07:34:07 +0000 (10:34 +0300)]
android/health: Fix using uninitialized value err

10 years agoandroid/gatt: Move get_sec_level function
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.

10 years agoandroid/health: trivial: Remove unneeded NULL assignment
Andrei Emeltchenko [Tue, 17 Jun 2014 13:56:07 +0000 (16:56 +0300)]
android/health: trivial: Remove unneeded NULL assignment

10 years agoandroid/health: Make coding style consistent for array parameter
Grzegorz Kolodziejczyk [Tue, 17 Jun 2014 13:47:14 +0000 (15:47 +0200)]
android/health: Make coding style consistent for array parameter

10 years agoandroid/pts: Adjust PICS for HDP
Sebastian Chlad [Tue, 17 Jun 2014 15:13:54 +0000 (18:13 +0300)]
android/pts: Adjust PICS for HDP

10 years agoandroid/pts: PTS test results for HDP
Sebastian Chlad [Tue, 17 Jun 2014 14:53:27 +0000 (17:53 +0300)]
android/pts: PTS test results for HDP

10 years agoandroid/pts: Make PTS erratas style consistent
Szymon Janc [Tue, 17 Jun 2014 13:53:33 +0000 (15:53 +0200)]
android/pts: Make PTS erratas style consistent

10 years agoandroid/pts: Update PTS GAP test results
Marcin Kraglak [Tue, 17 Jun 2014 13:14:37 +0000 (15:14 +0200)]
android/pts: Update PTS GAP test results

10 years agoandroid/health: Fix wrong parameter passing to android2bdaddr
Ravi kumar Veeramally [Tue, 17 Jun 2014 12:53:27 +0000 (15:53 +0300)]
android/health: Fix wrong parameter passing to android2bdaddr

10 years agoandroid/pts: Update SM PTS results
Lukasz Rymanowski [Tue, 17 Jun 2014 12:22:50 +0000 (14:22 +0200)]
android/pts: Update SM PTS results

10 years agoandroid/pts: Disable OOB from Secure Manager PICS
Lukasz Rymanowski [Mon, 16 Jun 2014 22:39:56 +0000 (00:39 +0200)]
android/pts: Disable OOB from Secure Manager PICS

10 years agoandroid/health: Notify channel connection status
Ravi kumar Veeramally [Tue, 17 Jun 2014 11:19:30 +0000 (14:19 +0300)]
android/health: Notify channel connection status

10 years agoandroid/health: Initial connect channel implementation
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.

10 years agoanrdoid/health: Fix wrong channel type defines
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.

10 years agoprofiles/health/hdp: Fix memory leak in SDP record preparation
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)

10 years agoandroid/bluetooth: Update bonding state after receiving new CSRK.
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.

10 years agoandroid/bluetooth: Clear CSRK information after unpair
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.

10 years agodoc: Update test coverage for mgmt-tester
Johan Hedberg [Tue, 17 Jun 2014 12:14:06 +0000 (15:14 +0300)]
doc: Update test coverage for mgmt-tester

10 years agotools/mgmt-tester: Add invalid IO capability tests
Johan Hedberg [Tue, 17 Jun 2014 12:11:44 +0000 (15:11 +0300)]
tools/mgmt-tester: Add invalid IO capability tests

10 years agodoc/mgmt-api: Specify valid IO Capability values
Johan Hedberg [Tue, 17 Jun 2014 11:55:07 +0000 (14:55 +0300)]
doc/mgmt-api: Specify valid IO Capability values

10 years agoandroid/gatt: Add test command for sign write
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.

10 years agotools/l2test: Fix setopts and getopts functions
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.

10 years agoandroid/system-emulator: Allow to run daemon without valgrind
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.

10 years agoandroid/health: Notify application deregistration status
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:39 +0000 (18:01 +0300)]
android/health: Notify application deregistration status

10 years agoandroid/health: Notify application registration status
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:38 +0000 (18:01 +0300)]
android/health: Notify application registration status

10 years agoandroid/health: Add HDP SDP record
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.

10 years agoandroid/health: Perform clean up on app unregister call
Ravi kumar Veeramally [Mon, 16 Jun 2014 15:01:36 +0000 (18:01 +0300)]
android/health: Perform clean up on app unregister call

10 years agoandroid/health: Cache health application data on app register 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

10 years agoandroid/health: Verify register_app command correctness
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.

10 years agoandroid/hal-health: Fix not setting offsets for empty strings
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.

10 years agosdp: Fix missing sdp_xml_parse_string_decode() NULL return check
Johan Hedberg [Mon, 16 Jun 2014 13:06:49 +0000 (16:06 +0300)]
sdp: Fix missing sdp_xml_parse_string_decode() NULL return check

10 years agosdp: Fix memory issues to avoid potential crash
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.

10 years agoshared/gatt: Use proper type in attribute_destroy parameter
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.

10 years agodoc: Fix bit numbering in mgmt-api
Andrzej Kaczmarek [Wed, 14 May 2014 13:18:00 +0000 (15:18 +0200)]
doc: Fix bit numbering in mgmt-api

10 years agoandroid/hal-health: Add channel state event handler
Ravi kumar Veeramally [Thu, 12 Jun 2014 13:10:13 +0000 (16:10 +0300)]
android/hal-health: Add channel state event handler

10 years agoandroid/gatt: Allow signed write only on non encrypted link
Lukasz Rymanowski [Thu, 12 Jun 2014 11:12:30 +0000 (13:12 +0200)]
android/gatt: Allow signed write only on non encrypted link

10 years agoandroid/pts: Add PICS and PIXIT for HOGP
Jakub Tyszkowski [Thu, 12 Jun 2014 08:44:43 +0000 (10:44 +0200)]
android/pts: Add PICS and PIXIT for HOGP

10 years agoandroid/pts: Adjust PICS for L2CAP
Sebastian Chlad [Thu, 12 Jun 2014 06:28:29 +0000 (08:28 +0200)]
android/pts: Adjust PICS for L2CAP

10 years agoandroid/gatt: Fix not setting medium security for paired devices
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.

10 years agoandroid/bluetooth: Fix not setting expected discovery type
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.

10 years agoandroid/hidhost: Add support for re-connecting HoG
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.

10 years agoandroid/gatt: Do not disconnect immediately after discovering primaries
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.