Andrei Emeltchenko
e61fc2565e
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.
2014-06-23 14:37:28 +03:00
Ravi kumar Veeramally
7d4d7bec38
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.
2014-06-23 10:57:59 +02:00
Ravi kumar Veeramally
6d127e3bae
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.
2014-06-23 10:57:59 +02:00
Ravi kumar Veeramally
a61f99c4a3
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.
2014-06-23 10:57:59 +02:00
Ravi kumar Veeramally
ab8a1f1df7
android/health: Notify channel status on channel destroy call
2014-06-23 10:57:59 +02:00
Ravi kumar Veeramally
e5f4e488f4
android/health: Cache remote mdep id on channel connect request
...
Remote mdep is required to initiate MD_CREATE_MDL_REQ request.
2014-06-23 10:57:59 +02:00
Ravi kumar Veeramally
4543ac00e8
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.
2014-06-23 10:57:59 +02:00
Marcel Holtmann
b3bfa3614c
AUTHORS: Mention Arman's contributions
2014-06-23 10:37:21 +02:00
Marcel Holtmann
33f84d58ee
shared/att: Fix a few compiler warnings
2014-06-23 10:36:23 +02:00
Arman Uguray
4f524c86fa
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.
2014-06-23 10:31:49 +02:00
Arman Uguray
661ae6851b
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.
2014-06-23 10:31:44 +02:00
Arman Uguray
f21a18af28
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.
2014-06-23 10:31:40 +02:00
Arman Uguray
8b0625c471
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.
2014-06-23 10:31:32 +02:00
Andrei Emeltchenko
826f869b8b
hciconfig: Fix adding missing break
2014-06-23 10:52:49 +03:00
Andrei Emeltchenko
70b44b1d8a
hcitool: Fix adding missing break
2014-06-23 10:52:02 +03:00
Andrei Emeltchenko
a47543bd5e
bnep: Fix redundant check
2014-06-23 10:50:30 +03:00
Andrei Emeltchenko
55115a71dc
monitor: Fix checking boolean return value
...
Since btsnoop_read_hci() is used from src/shared.
2014-06-23 10:50:13 +03:00
Andrei Emeltchenko
7cd5494b69
tools/csr: Fix wrong error check
2014-06-23 10:44:14 +03:00
Andrei Emeltchenko
2bdc2f2cdd
queue: Fix unreachable code
...
I assume passing function == NULL means using direct_match() so make it
reachable.
2014-06-23 10:43:55 +03:00
Andrei Emeltchenko
797b7fe0f7
tools/mpris-player: Fix overflow before type widening
...
Expression is evaluated using 32-bit arithmetic before conversion to
64-bit.
2014-06-23 10:43:45 +03:00
Andrei Emeltchenko
d62395d895
android/ipc-tester: Fix possible double close
...
I case of error we may close fd and pipe twice.
2014-06-23 10:43:31 +03:00
Marcel Holtmann
cdbee918b9
doc: Add comment for single mode controllers without public address
2014-06-23 08:56:15 +02:00
Johan Hedberg
155780f210
doc/mgmt-api: Fix a couple of typos
2014-06-23 08:05:13 +03:00
Marcel Holtmann
0df3313c07
doc: Add extra mode for a reduced LE privacy mode
2014-06-22 22:05:51 +02:00
Marcel Holtmann
5b77287e01
doc: Add management support for handling connection parameters
2014-06-22 22:00:42 +02:00
Marcel Holtmann
38b0958aab
doc: Add mode for enabling generation of debug keys
2014-06-22 17:31:03 +03:00
Johan Hedberg
1d6621087b
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.
2014-06-22 12:17:21 +03:00
Ravi kumar Veeramally
8ec0f87fea
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.
2014-06-21 15:31:04 +02:00
Marcel Holtmann
8050837e01
Release 5.20
2014-06-20 20:32:08 +02:00
Marcel Holtmann
72db1adb9d
build: Update library version
2014-06-20 20:26:51 +02:00
Lukasz Rymanowski
7d9a1daf31
android/pts: Update GAP PTS status
...
After enabling privacy for peripheral one more test gets enabled in PTS
2014-06-20 17:32:39 +02:00
Lukasz Rymanowski
d6d1077c43
android/pics: Enable privacy for peripheral
2014-06-20 17:32:39 +02:00
Szymon Janc
cf639b0639
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.
2014-06-20 17:27:57 +02:00
Szymon Janc
96352023d5
android/bluetooth: Pass device to send_device_property function
2014-06-20 17:26:17 +02:00
Szymon Janc
60afcc6e5a
android/socket: Convert service UUID to 16 or 32 bits if possible
2014-06-18 20:06:57 +02:00
Jakub Tyszkowski
ea7c480d14
android/pts: Update GAP results
2014-06-18 20:06:26 +02:00
Jakub Tyszkowski
4262f0ab85
android/pts: Update GAP results
2014-06-18 16:30:07 +02:00
Jakub Tyszkowski
a2178814e7
android/gatt: Minor coding style fix
2014-06-18 15:37:44 +02:00
Jakub Tyszkowski
4a939b5e8a
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)
2014-06-18 15:37:44 +02:00
Marcin Kraglak
a0b7ee93a2
android/pts: Update PTS GAP results
2014-06-18 15:30:28 +02:00
Marcin Kraglak
fc848cd619
android/gatt: Add test command to increase security on link
2014-06-18 15:30:21 +02:00
Marcin Kraglak
bdd9cb38f0
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.
2014-06-18 15:30:19 +02:00
Marcin Kraglak
a58be0ee06
android/hal-msg: Add defines of HAL_GATT_AUTHENTICATION values
...
These values are are used in read characteristic/write characteristic
functions in gatt_client.
2014-06-18 15:28:05 +02:00
Sebastian Chlad
b8b7e26531
android/pts: Add PTS tests for HoG
2014-06-18 15:22:29 +02:00
Marcel Holtmann
0d8eab2a17
lib: Update company identifiers
2014-06-18 13:52:43 +02:00
Andrei Emeltchenko
a4f7b14016
android/hal-health: trivial: Remove empty line
2014-06-18 00:05:41 +02:00
Andrei Emeltchenko
6bab8b0b88
android/gatt: Fix error check
2014-06-18 00:05:41 +02:00
Andrei Emeltchenko
f6ccdc2c16
android/avrcp: Fix adding missing breaks
2014-06-18 00:05:41 +02:00
Andrei Emeltchenko
dc0b16f00e
android/ipc-tester: Fix closing invalid fd
...
Is socket() fails we jumps to failed label.
2014-06-18 00:05:40 +02:00
Andrei Emeltchenko
0518048263
HDP: Add length check
...
Fixes static analyzer warnings related to casting possible error code to
unsigned.
2014-06-18 00:05:40 +02:00