Commit Graph

19410 Commits

Author SHA1 Message Date
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
Andrei Emeltchenko
5050a95c01 HDP: trivial: Make code more readable 2014-06-18 00:05:40 +02:00
Andrei Emeltchenko
09e69f80ef android/hal-health: Change scope of mdep
Make code cleaner lowering scope for mdep to the place it is actually
used.
2014-06-18 00:05:40 +02:00
Andrei Emeltchenko
a02c369627 android/health: Fix using uninitialized value err 2014-06-17 22:01:49 +02:00
Marcin Kraglak
407b7299f2 android/gatt: Move get_sec_level function
This will be used in read and write handlers functions.
2014-06-17 21:53:11 +02:00
Andrei Emeltchenko
b294530216 android/health: trivial: Remove unneeded NULL assignment 2014-06-17 20:55:48 +02:00
Grzegorz Kolodziejczyk
4fd1a95dbc android/health: Make coding style consistent for array parameter 2014-06-17 20:55:48 +02:00
Sebastian Chlad
f410131600 android/pts: Adjust PICS for HDP 2014-06-17 20:23:33 +02:00
Sebastian Chlad
bdb60bf2fc android/pts: PTS test results for HDP 2014-06-17 20:22:32 +02:00
Szymon Janc
ae46116aca android/pts: Make PTS erratas style consistent 2014-06-17 16:00:27 +02:00
Marcin Kraglak
796db204de android/pts: Update PTS GAP test results 2014-06-17 15:27:14 +02:00
Ravi kumar Veeramally
035df43eb3 android/health: Fix wrong parameter passing to android2bdaddr 2014-06-17 15:07:18 +02:00
Lukasz Rymanowski
edd14132dc android/pts: Update SM PTS results 2014-06-17 14:37:29 +02:00
Lukasz Rymanowski
edacff8687 android/pts: Disable OOB from Secure Manager PICS 2014-06-17 14:37:29 +02:00
Ravi kumar Veeramally
b4e45354b7 android/health: Notify channel connection status 2014-06-17 14:27:31 +02:00
Ravi kumar Veeramally
ed311048b5 android/health: Initial connect channel implementation
Fetches remote sdp record and initiates MCL connection.
2014-06-17 14:27:31 +02:00
Ravi kumar Veeramally
eabbbe29fd 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.
2014-06-17 14:27:31 +02:00
Ravi kumar Veeramally
7eeb611f56 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)
2014-06-17 14:27:31 +02:00
Marcin Kraglak
b6c68a1da1 android/bluetooth: Update bonding state after receiving new CSRK.
Set bonded state if received new CSRK.
2014-06-17 14:20:31 +02:00
Marcin Kraglak
74d70a1548 android/bluetooth: Clear CSRK information after unpair
CSRK information should be removed when unpaired.
2014-06-17 14:20:30 +02:00