OSDN Git Service
Johan Hedberg [Wed, 26 Feb 2014 17:10:52 +0000 (19:10 +0200)]
emulator: Add HCI_LE_Set_Random_Address support
Johan Hedberg [Wed, 26 Feb 2014 15:58:52 +0000 (17:58 +0200)]
emulator: Use shared crypto code instead of custom functions
Johan Hedberg [Wed, 26 Feb 2014 15:58:17 +0000 (17:58 +0200)]
build: Link crypto code with the emulator
Johan Hedberg [Wed, 26 Feb 2014 15:57:19 +0000 (17:57 +0200)]
shared/crypto: Add key generation function s1
Johan Hedberg [Wed, 26 Feb 2014 15:56:45 +0000 (17:56 +0200)]
shared/crypto: Add confirm value generation function c1
Grzegorz Kolodziejczyk [Tue, 25 Feb 2014 15:50:53 +0000 (16:50 +0100)]
android/hal-ipc-api: Fix Add Set Volume command struct packing
This adds missed packed struct attribute to hal-ipc command.
Andrei Emeltchenko [Tue, 25 Feb 2014 10:09:30 +0000 (12:09 +0200)]
unit/avrcp: Add /TP/PTT/BV-05-I test
Test verifies that the Target reacts to the PASS THROUGH command in
category 1 from the Controller. The command chosen is PLAY (0x44).
The PLAY button is being pressed and released.
Andrei Emeltchenko [Tue, 25 Feb 2014 10:09:29 +0000 (12:09 +0200)]
unit/avrcp: Add /TP/PTT/BV-04-I test
Test verifies that the Target reacts to the PASS THROUGH command in
category 4 from the Controller. The command chosen is SELECT.
Andrei Emeltchenko [Tue, 25 Feb 2014 10:09:28 +0000 (12:09 +0200)]
unit/avrcp: Add /TP/PTT/BV-03-I test
Test verifies that the Target reacts to the PASS THROUGH command in
category 3 from the Controller. The command chosen is CHANNEL_UP.
Andrei Emeltchenko [Tue, 25 Feb 2014 10:09:27 +0000 (12:09 +0200)]
unit/avrcp: Add /TP/PTT/BV-02-I test
Test verifies that the Target reacts to the PASS THROUGH command in
category 2 from the Controller. The command chosen is VOLUME_UP.
Marcel Holtmann [Mon, 24 Feb 2014 22:31:02 +0000 (14:31 -0800)]
doc: Add AVRCP qualification test cases to coverage list
Marcel Holtmann [Mon, 24 Feb 2014 22:29:49 +0000 (14:29 -0800)]
build: Add unit/test-avrcp to .gitignore list
Marcel Holtmann [Mon, 24 Feb 2014 22:28:14 +0000 (14:28 -0800)]
tools: Add utility for emulating iBeacon advertising
Szymon Janc [Mon, 24 Feb 2014 21:23:34 +0000 (22:23 +0100)]
android/pts: Fix lines over 80 characters
Szymon Janc [Mon, 24 Feb 2014 21:12:52 +0000 (22:12 +0100)]
android/pts: Update MAP tests results
Szymon Janc [Fri, 21 Feb 2014 16:49:53 +0000 (17:49 +0100)]
android/hal-ipc: Fix race condition when closing IPC
Protect command socket cleanup with mutex to avoid bogus exit when
stopping notification thread.
Szymon Janc [Fri, 21 Feb 2014 16:49:52 +0000 (17:49 +0100)]
android/bluetooth: Don't set remote name to empty string
If remote device has name but it is empty (0 bytes) just ignore it and
continue using address as name. This will avoid sending remote device
property notification with empty name.
Johan Hedberg [Mon, 24 Feb 2014 19:08:33 +0000 (21:08 +0200)]
doc: Update mgmt-tester test count
Luiz Augusto von Dentz [Mon, 24 Feb 2014 15:50:48 +0000 (16:50 +0100)]
android/avctp: Checks error on send_event
In case of EINTR retry sending the event otherwise print the errno.
Luiz Augusto von Dentz [Mon, 24 Feb 2014 15:01:30 +0000 (16:01 +0100)]
android/avctp: Fix failing silently if uinput is not initialized
This adds a check for uinput before attempting to use send_key and if it
is not initialized response with AVC_CTYPE_NOT_IMPLEMENTED which is the
same code used when a unkown key is received.
Andrei Emeltchenko [Mon, 24 Feb 2014 13:25:18 +0000 (15:25 +0200)]
android/avctp: Set uinput to invalid fd when creating session
When AVCTP session was created uinput was zero which is valid file
descriptor and that was conflicting with socketpair() fds.
Andrei Emeltchenko [Mon, 24 Feb 2014 13:25:17 +0000 (15:25 +0200)]
unit/avrcp: Add /TP/PTT/BV-01-I test
Test verifies that the Target reacts to the PASS THROUGH command in
category 1 from the Controller. The command chosen is PLAY (0x44).
Andrei Emeltchenko [Mon, 24 Feb 2014 13:25:16 +0000 (15:25 +0200)]
unit/avrcp: Refactor tests to use destroy_context()
Szymon Janc [Mon, 24 Feb 2014 12:44:12 +0000 (13:44 +0100)]
android: Update socket service id name to match service name
Luiz Augusto von Dentz [Thu, 20 Feb 2014 14:16:52 +0000 (16:16 +0200)]
android/avrcp-lib: Add avrcp_set_passthrough_handlers
This adds avrcp_set_passthrough_handlers which can be used to set
pass-through PDU handlers table and user data.
Luiz Augusto von Dentz [Thu, 20 Feb 2014 13:50:17 +0000 (15:50 +0200)]
android/avrcp-lib: Add avrcp_set_control_handlers
This adds avrcp_set_control_handlers which can be used to set control
PDU handlers table and user data.
Luiz Augusto von Dentz [Thu, 20 Feb 2014 12:30:56 +0000 (14:30 +0200)]
android/avrcp-lib: Rename AVCTP session to conn
Andrei Emeltchenko [Fri, 21 Feb 2014 15:23:48 +0000 (17:23 +0200)]
android/avrcp: Use NULL for zero pointers
Andrei Emeltchenko [Mon, 24 Feb 2014 09:45:25 +0000 (11:45 +0200)]
unit/avrcp: Add /TP/ICC/BV-02-I test
The test verifies that the Target responds to SUBUNIT INFO command
initiated by Controller.
Andrei Emeltchenko [Mon, 24 Feb 2014 09:45:24 +0000 (11:45 +0200)]
unit/avrcp: Add /TP/ICC/BV-01-I test
Test verifies that the Target responds to UNIT INFO command initiated by
Controller.
Szymon Janc [Mon, 24 Feb 2014 11:07:53 +0000 (12:07 +0100)]
android: Add pts-pan.txt to EXTRA_DIST
Johan Hedberg [Mon, 24 Feb 2014 10:31:26 +0000 (12:31 +0200)]
tools/mgmt-tester: Add Set Privacy invalid parameters test case
Johan Hedberg [Mon, 24 Feb 2014 10:29:05 +0000 (12:29 +0200)]
tools/mgmt-tester: Add Set Privacy rejected response test
Johan Hedberg [Mon, 24 Feb 2014 10:26:00 +0000 (12:26 +0200)]
tools/mgmt-tester: Add basic Set Privacy success test
Johan Hedberg [Mon, 24 Feb 2014 10:16:11 +0000 (12:16 +0200)]
tools/mgmt-tester: Add Load IRKs test for invalid length parameter
Johan Hedberg [Mon, 24 Feb 2014 10:14:23 +0000 (12:14 +0200)]
tools/mgmt-tester: Add Load IRKs test for non-static address
Johan Hedberg [Mon, 24 Feb 2014 10:11:03 +0000 (12:11 +0200)]
tools/mgmt-tester: Add Load IRKs invalid parameters response test
Johan Hedberg [Mon, 24 Feb 2014 10:08:52 +0000 (12:08 +0200)]
tools/mgmt-tester: Add Load IRKs not supported response test
Johan Hedberg [Mon, 24 Feb 2014 09:22:48 +0000 (11:22 +0200)]
tools/mgmt-tester: Add two basic Load IRKs test cases
Johan Hedberg [Mon, 24 Feb 2014 09:22:33 +0000 (11:22 +0200)]
tools/mgmt-tester: Update expected_supported_settings to include privacy
Szymon Janc [Sat, 22 Feb 2014 21:09:25 +0000 (22:09 +0100)]
android/handsfree: Use HFP code for connection handling
HFP code is now able to handle disconnection on its own so just use
this instead of using own watches.
Szymon Janc [Sat, 22 Feb 2014 21:09:24 +0000 (22:09 +0100)]
shared: Add support for local disconnect to HFP
This allows to locally trigger disconnection.
Szymon Janc [Sat, 22 Feb 2014 21:09:23 +0000 (22:09 +0100)]
shared: Add support for shutdown to IO
This allows to locally shutdown IO.
Szymon Janc [Sat, 22 Feb 2014 21:09:22 +0000 (22:09 +0100)]
shared: Add support for disconnect handler in HFP
Szymon Janc [Sat, 22 Feb 2014 21:09:21 +0000 (22:09 +0100)]
shared: Add support for disconnect handler to mainloop based IO
Szymon Janc [Sat, 22 Feb 2014 21:09:20 +0000 (22:09 +0100)]
shared: Minor code style fixes in GLib based IO
Szymon Janc [Sat, 22 Feb 2014 21:09:19 +0000 (22:09 +0100)]
shared: Add support for disconnect handler to GLib based IO handling
Andrei Emeltchenko [Mon, 24 Feb 2014 07:15:44 +0000 (09:15 +0200)]
android/tester: Fix slang "never used" warning
The patch fixes following warning:
...
android/android-tester.c:2185:2: warning: Value stored to
'adapter_status' is never read
adapter_status = data->if_bluetooth->set_adapter_property(prop);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
Andrei Emeltchenko [Fri, 21 Feb 2014 15:23:45 +0000 (17:23 +0200)]
unit/avrcp: First unit test for AVRCP profile
The tests verifies connection establishment for control.
Andre Guedes [Wed, 19 Feb 2014 18:51:28 +0000 (15:51 -0300)]
gatt: Add helper for creating GATT services
This patch adds the btd_gatt_add_service() helper which adds a
GATT Service declaration to the local attribute database.
Claudio Takahasi [Wed, 19 Feb 2014 18:51:27 +0000 (15:51 -0300)]
lib: Move GATT UUID to uuid.h
This patch moves GATT UUIDs definitions to a common header. uuid.h contains
helper functions to manipulate Bluetooth UUIDs and some common BR/EDR services
UUIDs.
Alvaro Silva [Wed, 19 Feb 2014 18:51:26 +0000 (15:51 -0300)]
gatt: Add registering external service
This patch allows external applications register a given service on
Bluez. Applications must provide an object path and a dictionary of
options. Options dictionary will be used later to provide additional
service information.
Alvaro Silva [Wed, 19 Feb 2014 18:51:25 +0000 (15:51 -0300)]
gatt: Register Manager D-Bus Interface
This patch registers GATT Service Manager D-Bus Interface. This
interface implements the methods to allow external application register
and unregister GATT Services.
Alvaro Silva [Wed, 19 Feb 2014 18:51:24 +0000 (15:51 -0300)]
gatt: Add stub for gatt.{c, h} files
These files implement functions to handle ATT transactions, and expose
functions to allow other entities to manage GATT based services. It
is a replacement for src/attrib-server.c.
Claudio Takahasi [Wed, 19 Feb 2014 18:51:23 +0000 (15:51 -0300)]
doc: Add experimental GATT API
This patch proposes an unified GATT API for local and remote services.
Marcel Holtmann [Sat, 22 Feb 2014 22:56:31 +0000 (14:56 -0800)]
monitor: Add support for decoding appearance field
Szymon Janc [Sat, 22 Feb 2014 20:54:45 +0000 (21:54 +0100)]
android: Add --leak-check=full option to valgrin in system-emulator
Szymon Janc [Sat, 22 Feb 2014 20:51:30 +0000 (21:51 +0100)]
android/bluetooth: Fix memory leak in store_link_key
If loading key file from file failed free key file. This fix following:
490 (40 direct, 450 indirect) bytes in 1 blocks are definitely lost in
loss record 122 of 126
at 0x4028B4C: malloc (vg_replace_malloc.c:291)
by 0x40A25B2: g_malloc (in /lib/i386-linux-gnu/
libglib-2.0.so.0.3800.2)
by 0x40B8DB1: g_slice_alloc (in /lib/i386-linux-gnu/
libglib-2.0.so.0.3800.2)
by 0x40B92DC: g_slice_alloc0 (in /lib/i386-linux-gnu/
libglib-2.0.so.0.3800.2)
by 0x40946BB: g_key_file_new (in /lib/i386-linux-gnu/
libglib-2.0.so.0.3800.2)
by 0x8054A84: new_link_key_callback (bluetooth.c:563)
by 0x804FB44: notify_handler (mgmt.c:278)
by 0x804F357: queue_foreach (queue.c:186)
by 0x804FE6C: can_read_data (mgmt.c:290)
by 0x804ED12: read_callback (io-glib.c:168)
by 0x40E0CF4: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.3800.2)
by 0x409CAED: g_main_context_dispatch (in /lib/i386-linux-gnu/
libglib-2.0.so.0.3800.2)
Johan Hedberg [Sat, 22 Feb 2014 15:08:46 +0000 (17:08 +0200)]
monitor: Add privacy setting to string lookup list
Johan Hedberg [Sat, 22 Feb 2014 14:36:53 +0000 (16:36 +0200)]
tools/btmgmt: Add support for Set Privacy command
Johan Hedberg [Sat, 22 Feb 2014 14:36:37 +0000 (16:36 +0200)]
lib/mgmt: Add definition for Set Privacy command
Marcel Holtmann [Sat, 22 Feb 2014 06:10:13 +0000 (22:10 -0800)]
Release 5.15
Marcel Holtmann [Sat, 22 Feb 2014 06:09:21 +0000 (22:09 -0800)]
android: Add extra empty line in API docs
Marcel Holtmann [Sat, 22 Feb 2014 06:08:52 +0000 (22:08 -0800)]
doc: Update test coverage numbers
Marcel Holtmann [Sat, 22 Feb 2014 05:47:02 +0000 (21:47 -0800)]
build: Update library version
Marcel Holtmann [Sat, 22 Feb 2014 05:39:13 +0000 (21:39 -0800)]
lib: Update company identifiers
Marcel Holtmann [Sat, 22 Feb 2014 05:29:37 +0000 (21:29 -0800)]
lib: Add strings for new mgmt commands and events
Marcel Holtmann [Sat, 22 Feb 2014 05:27:09 +0000 (21:27 -0800)]
tools: Add string for privacy management setting
Marcel Holtmann [Sat, 22 Feb 2014 05:25:47 +0000 (21:25 -0800)]
core: Only load IRKs when support for LE Privacy is available
Marcel Holtmann [Sat, 22 Feb 2014 05:25:16 +0000 (21:25 -0800)]
lib: Add constant for management privacy setting
Marcel Holtmann [Fri, 21 Feb 2014 19:23:22 +0000 (11:23 -0800)]
core: Don't bother loading IRKs when LE is not supported
Marcel Holtmann [Fri, 21 Feb 2014 18:20:35 +0000 (10:20 -0800)]
android: Fix copy&paste issue in error message
Sebastian Chlad [Fri, 21 Feb 2014 12:53:24 +0000 (13:53 +0100)]
android/pts: Update test results for A2DP
Johan Hedberg [Fri, 21 Feb 2014 16:04:26 +0000 (18:04 +0200)]
core: Add support for merging duplicate device object data
Andrzej Kaczmarek [Fri, 21 Feb 2014 13:58:49 +0000 (14:58 +0100)]
android/socket: Fix calling cleanup with invalid pointer
Johan Hedberg [Fri, 21 Feb 2014 13:07:35 +0000 (15:07 +0200)]
core: Split LE and BR/EDR states for devices
For dual mode devices there are several state variables that are
independent for each bearer. This patch splits these states up into two
separate variable groups in btd_device and tracks the values based on
what kind of connection is in question.
The information is also used to select which bearer to use with
Device1.Connect and Device1.Pair. The basic rule is that the bearer
that's not connected/paired is selected, or then the bearer over which
the device was last seen is selected.
Johan Hedberg [Fri, 21 Feb 2014 13:33:01 +0000 (15:33 +0200)]
btio: Add missing BT_IO_OPT_DEST_TYPE getting support
Johan Hedberg [Fri, 21 Feb 2014 06:56:10 +0000 (08:56 +0200)]
core: Avoid device_set_bonded for clearing bonding
We'll soon change device_set_bonded to set a per-bearer (LE vs BR/EDR)
bonding statue, so clearing bonding should be done using a different
means.
Johan Hedberg [Fri, 21 Feb 2014 06:49:44 +0000 (08:49 +0200)]
core: Track LE & BR/EDR last seen times
Since we combine LE and BR/EDR into a single device we need a way to
decide which bearer to use when Device1.Pair() or Device1.Connect() are
called. Simplest way is to use the last discovery moment as a factor in
the decision making.
Anderson Lizardo [Fri, 7 Feb 2014 20:14:46 +0000 (16:14 -0400)]
lib/sdp: Fix printing of multiple record fields
If there are multiple fields to print, sdp_record_print() was missing a
newline between entries.
Anderson Lizardo [Fri, 7 Feb 2014 20:14:45 +0000 (16:14 -0400)]
tools/sdptool: Fix output formatting
Print 8-bit and 16-bit integers with in a more readable format.
Anderson Lizardo [Fri, 7 Feb 2014 20:14:44 +0000 (16:14 -0400)]
lib/sdp: Add missing Service Class ID for GAP
Also reorder last ID so the list remains ordered.
Andrzej Kaczmarek [Tue, 4 Feb 2014 13:38:45 +0000 (14:38 +0100)]
android/hal-audio: Add simple downmix to mono
This patch adds simple downmix support from stereo to mono in order to
support mono channel mode as it's mandatory for SBC codec. It uses
simple (L+R)/2 calculation which should be good enough.
Grzegorz Kolodziejczyk [Fri, 21 Feb 2014 11:33:14 +0000 (12:33 +0100)]
android/tester: Fix Discovery Stop - Success test case
This removes start discovery returned status check what derives double
check of expected status. Returned status should be only checked for cancel
discovery.
Grzegorz Kolodziejczyk [Fri, 21 Feb 2014 11:33:13 +0000 (12:33 +0100)]
android/tester: Fix tester setup result set
Tester setup result is set to pass after set to fail because of missing
function return. This adds return from function after setting of setup
result to fail.
Lukasz Rymanowski [Mon, 17 Feb 2014 16:26:30 +0000 (17:26 +0100)]
android: Do not resolve name if we have it in the cache
With this patch, deamon will not ask kernel to resolve name of remote
device during inquiry in case device name is already in the local cache.
Instead Android will be updated with already known device name.
Lukasz Rymanowski [Mon, 17 Feb 2014 16:26:29 +0000 (17:26 +0100)]
android: Add resolve_name parameter to confirm_device_name
Sebastian Chlad [Wed, 19 Feb 2014 14:10:38 +0000 (15:10 +0100)]
android/pts: PTS test results for PAN
This adds initial PTS test results for PAN profile.
Sebastian Chlad [Wed, 19 Feb 2014 14:04:18 +0000 (15:04 +0100)]
android/pixit: correct PIXIT value
It is important for NAP role to set proper PTS btaddr in PIXIT
Szymon Janc [Wed, 19 Feb 2014 20:49:38 +0000 (21:49 +0100)]
android/hal-handsfree: Use fixed size buffers for commands
This make code follow same conventions for all commands and simplify
code.
Szymon Janc [Wed, 19 Feb 2014 20:49:37 +0000 (21:49 +0100)]
android/hal-bluetooth: Use fixed size buffers for commands
This make code follow same conventions for all commands.
Johan Hedberg [Thu, 20 Feb 2014 16:33:40 +0000 (18:33 +0200)]
core: Fix initiating pairing with dual mode devices
The dev->bdaddr_type indicates the LE address type in case a device
suppors LE. If we've determined that we want to pair over BR/EDR we
should just pass an explicit BDADDR_BREDR value.
Johan Hedberg [Thu, 20 Feb 2014 16:40:21 +0000 (18:40 +0200)]
core: Fix updating BR/EDR support from AD flags
Johan Hedberg [Thu, 20 Feb 2014 15:48:34 +0000 (17:48 +0200)]
core: Update storage upon device address change
Typically a device address gets updated when we go from RPA to Identity
Address. Since storing data is not permitted for RPA force the storing
after the address has changed.
Johan Hedberg [Thu, 20 Feb 2014 14:19:22 +0000 (16:19 +0200)]
core: Fix storing SupportedTechnologies for dual mode devices
Johan Hedberg [Thu, 20 Feb 2014 13:17:13 +0000 (15:17 +0200)]
core: Fix loading SupportedTechnologies values from storage
Johan Hedberg [Thu, 20 Feb 2014 13:13:15 +0000 (15:13 +0200)]
core: Remove unneeded device_is_le() function
Johan Hedberg [Thu, 20 Feb 2014 13:10:54 +0000 (15:10 +0200)]
core: Use addr type from device found event to determine LE support
Johan Hedberg [Thu, 20 Feb 2014 13:08:14 +0000 (15:08 +0200)]
core: Fix checking for BR/EDR support
Johan Hedberg [Thu, 20 Feb 2014 13:05:56 +0000 (15:05 +0200)]
core: Track LE & BR/EDR support separately for devices