Commit Graph

17671 Commits

Author SHA1 Message Date
Marcel Holtmann
01cf316648 lib: Add strings for new mgmt commands and events 2014-02-21 21:29:37 -08:00
Marcel Holtmann
78f3e8f00e tools: Add string for privacy management setting 2014-02-21 21:27:09 -08:00
Marcel Holtmann
35a564d981 core: Only load IRKs when support for LE Privacy is available 2014-02-21 21:25:47 -08:00
Marcel Holtmann
1bde19d427 lib: Add constant for management privacy setting 2014-02-21 21:25:16 -08:00
Marcel Holtmann
ac03584d41 core: Don't bother loading IRKs when LE is not supported 2014-02-21 11:23:22 -08:00
Marcel Holtmann
1fb4f90818 android: Fix copy&paste issue in error message 2014-02-21 10:20:35 -08:00
Sebastian Chlad
b1dd7119df android/pts: Update test results for A2DP 2014-02-21 17:54:36 +01:00
Johan Hedberg
d9294d6449 core: Add support for merging duplicate device object data 2014-02-21 18:04:26 +02:00
Andrzej Kaczmarek
8648ed970e android/socket: Fix calling cleanup with invalid pointer 2014-02-21 15:29:09 +01:00
Johan Hedberg
a9f523e0c3 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.
2014-02-21 16:15:56 +02:00
Johan Hedberg
e87dadbe1b btio: Add missing BT_IO_OPT_DEST_TYPE getting support 2014-02-21 15:36:35 +02:00
Johan Hedberg
9846bd9ef1 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.
2014-02-21 15:06:38 +02:00
Johan Hedberg
c65c8bf645 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.
2014-02-21 15:06:38 +02:00
Anderson Lizardo
cb7a38247e lib/sdp: Fix printing of multiple record fields
If there are multiple fields to print, sdp_record_print() was missing a
newline between entries.
2014-02-21 14:05:28 +02:00
Anderson Lizardo
ad65832b96 tools/sdptool: Fix output formatting
Print 8-bit and 16-bit integers with in a more readable format.
2014-02-21 14:05:28 +02:00
Anderson Lizardo
a0d40b384a lib/sdp: Add missing Service Class ID for GAP
Also reorder last ID so the list remains ordered.
2014-02-21 14:05:28 +02:00
Andrzej Kaczmarek
f68a71a4d4 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.
2014-02-21 13:01:50 +01:00
Grzegorz Kolodziejczyk
fd25ce76a2 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.
2014-02-21 12:53:22 +01:00
Grzegorz Kolodziejczyk
dc8221d63d 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.
2014-02-21 12:53:22 +01:00
Lukasz Rymanowski
240eec7fed 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.
2014-02-21 11:45:12 +01:00
Lukasz Rymanowski
be76f91c20 android: Add resolve_name parameter to confirm_device_name 2014-02-21 11:45:11 +01:00
Sebastian Chlad
42698720dd android/pts: PTS test results for PAN
This adds initial PTS test results for PAN profile.
2014-02-21 11:18:37 +01:00
Sebastian Chlad
37178ee0d9 android/pixit: correct PIXIT value
It is important for NAP role to set proper PTS btaddr in PIXIT
2014-02-21 11:18:37 +01:00
Szymon Janc
46246ab913 android/hal-handsfree: Use fixed size buffers for commands
This make code follow same conventions for all commands and simplify
code.
2014-02-21 11:18:37 +01:00
Szymon Janc
4d28eb85b7 android/hal-bluetooth: Use fixed size buffers for commands
This make code follow same conventions for all commands.
2014-02-21 11:18:37 +01:00
Johan Hedberg
da732e4f15 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.
2014-02-20 18:40:52 +02:00
Johan Hedberg
4a76f6a186 core: Fix updating BR/EDR support from AD flags 2014-02-20 18:40:21 +02:00
Johan Hedberg
dfa781684a 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.
2014-02-20 17:48:34 +02:00
Johan Hedberg
93d07e9442 core: Fix storing SupportedTechnologies for dual mode devices 2014-02-20 16:19:22 +02:00
Johan Hedberg
466180ee95 core: Fix loading SupportedTechnologies values from storage 2014-02-20 15:17:18 +02:00
Johan Hedberg
5834e96ad4 core: Remove unneeded device_is_le() function 2014-02-20 15:13:15 +02:00
Johan Hedberg
5df4331346 core: Use addr type from device found event to determine LE support 2014-02-20 15:10:54 +02:00
Johan Hedberg
3d3907609c core: Fix checking for BR/EDR support 2014-02-20 15:08:14 +02:00
Johan Hedberg
dbdb49795b core: Track LE & BR/EDR support separately for devices 2014-02-20 15:05:56 +02:00
Johan Hedberg
ef32444241 core: device_is_bredr() doesn't need to be exported 2014-02-20 15:01:16 +02:00
Andrei Emeltchenko
4351d46804 android: Add initial AVRCP common code
The patch makes AVRCP to be transport agnostic so that it can be used in
with socket pair to build unit tests.

The idea is that all AVRCP specific logic will stay on avrcp-lib until it
receives proper unit tests and then eventually will be used by audio
plugin as well.
2014-02-20 13:57:55 +02:00
Luiz Augusto von Dentz
da0a820a64 doc/obex-api: Update documentation
This adds Suspend and Resume methods and 'suspended' value as status in
the Transfer interface documentation.
2014-02-20 13:57:55 +02:00
Luiz Augusto von Dentz
8a0fb5f525 gobex: Handle suspending/resuming for GET when SRM is active
This adds support for suspending/resuming GET requests GET when SRM is
active, in this case suspending the TX queue wont stop the remote
to continue sending packets, to do that SRMP header should be set to wait
so the remote should wait.
2014-02-20 13:43:08 +02:00
Luiz Augusto von Dentz
7b43cc9e4f gobex: Fix not handling SRM properly
SRM can be enabled but while not active with use of SRMP header so the
handling of this states needs to be separated.
2014-02-20 13:43:08 +02:00
Luiz Augusto von Dentz
fa0701592b unit/test-gobex-transfer: Add /gobex/test_packet_get_req_suspend_resume
This adds a test to call g_obex_suspend and latter g_obex_resume while
SRM is enabled.
2014-02-20 13:43:08 +02:00
Luiz Augusto von Dentz
7c862eb533 unit/test-gobex-transfer: Add /gobex/test_packet_put_req_suspend_resume
This adds a test to call g_obex_suspend and latter g_obex_resume while
SRM is enabled.
2014-02-20 13:43:08 +02:00
Luiz Augusto von Dentz
7cbdb40a88 tools/obexctl: Add resume command
Add support for resume command which can be used to resume ongoing
transfers.
2014-02-20 12:45:59 +02:00
Luiz Augusto von Dentz
1ada23b015 tools/obexctl: Add suspend command
Add support for suspend command which can be used to suspend ongoing
transfers.
2014-02-20 12:45:59 +02:00
Luiz Augusto von Dentz
d4390c088c obexd/transfer: Add Transfer.Resume method
This method can be used to resume ongoing transfers.
2014-02-20 12:45:59 +02:00
Luiz Augusto von Dentz
ff10649bd2 obexd/transfer: Add Transfer.Suspend method
This method can be used to suspend ongoing transfers.
2014-02-20 12:45:59 +02:00
Johan Hedberg
abb4afcde7 core: Add support for loading IRKs 2014-02-20 11:32:35 +02:00
Johan Hedberg
29ca586950 core: Listen for New IRK events and store the values 2014-02-20 11:32:12 +02:00
Johan Hedberg
b0bca6d02c core: Add convenience function for lookup up device address type 2014-02-20 11:30:43 +02:00
Johan Hedberg
b48572be30 core: Add function for updating the address of a device 2014-02-20 11:27:57 +02:00
Johan Hedberg
0161a7c9bb core: Move private structs from adapter.h to adapter.c 2014-02-20 11:07:33 +02:00