OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agodevice: Retrieve device pnp ids from storage
Frédéric Danis [Wed, 21 Nov 2012 13:49:51 +0000 (14:49 +0100)]
device: Retrieve device pnp ids from storage

When device pnp ids are updated, save them and emit property
changed signals.

11 years agoadapter: Convert storage did file
Frédéric Danis [Wed, 21 Nov 2012 13:49:50 +0000 (14:49 +0100)]
adapter: Convert storage did file

11 years agodevice: Retrieve device blocked from storage
Frédéric Danis [Wed, 21 Nov 2012 13:49:49 +0000 (14:49 +0100)]
device: Retrieve device blocked from storage

11 years agoadapter: Convert storage device blocked
Frédéric Danis [Wed, 21 Nov 2012 13:49:48 +0000 (14:49 +0100)]
adapter: Convert storage device blocked

An entry exists in blocked file only when a device is blocked.
So, we do not need to check entry value and set device (entry key) as
blocked.

11 years agodoc: Update settings-storage.txt
Frédéric Danis [Wed, 21 Nov 2012 13:49:47 +0000 (14:49 +0100)]
doc: Update settings-storage.txt

Remote features are not available from user space,
so replace Features entry by SupportedTechnologies.

Device blocked should be saved in device info file.

11 years agocore: Use UUID-16 or UUID-32 when possible when resolving profiles
Johan Hedberg [Wed, 21 Nov 2012 13:40:00 +0000 (15:40 +0200)]
core: Use UUID-16 or UUID-32 when possible when resolving profiles

11 years agocontrol: Add profile .connect and .disconnect
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:18 +0000 (14:10 +0200)]
control: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the avrcp btd_profile.

11 years agocontrol: Expose internal connection API
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:17 +0000 (14:10 +0200)]
control: Expose internal connection API

Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.

11 years agosink: Add profile .connect and .disconnect
Mikel Astiz [Wed, 21 Nov 2012 12:10:16 +0000 (14:10 +0200)]
sink: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the a2dp_sink btd_profile.

11 years agosource: Add profile .connect and .disconnect
Mikel Astiz [Wed, 21 Nov 2012 12:10:15 +0000 (14:10 +0200)]
source: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the a2dp_source
btd_profile.

11 years agoaudio: Split A2DP into two btd_profile
Mikel Astiz [Wed, 21 Nov 2012 12:10:14 +0000 (14:10 +0200)]
audio: Split A2DP into two btd_profile

Merging the three audio profiles (AVDTP, A2DP sink and A2DP source)
into one was convenient in the past was doesn't fit very well the new
btd_profile approach. The split is also more consistent with other
existing profiles.

11 years agocore: Fix connection order of Device.Connect
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:13 +0000 (14:10 +0200)]
core: Fix connection order of Device.Connect

We should with higher priority first.

11 years agoneard: Be more consistent in error handling and variable naming
Johan Hedberg [Wed, 21 Nov 2012 12:33:33 +0000 (14:33 +0200)]
neard: Be more consistent in error handling and variable naming

11 years agoneard: Set device class in device object
Frédéric Danis [Wed, 21 Nov 2012 11:59:23 +0000 (12:59 +0100)]
neard: Set device class in device object

As soon as we have info related to a new device,
device object will be created if it does not exist yet.

Change check_device() to use this device object and
remove call to adapter_remove_device() in it.

11 years agoaudio: Remove another leftover of HFP code
Luiz Augusto von Dentz [Tue, 20 Nov 2012 14:50:57 +0000 (16:50 +0200)]
audio: Remove another leftover of HFP code

11 years agodoc: Add HFP design document
Frédéric Danis [Thu, 15 Nov 2012 17:35:39 +0000 (18:35 +0100)]
doc: Add HFP design document

11 years agogdbus: Remove not needed NULL pointer checks
Szymon Janc [Wed, 21 Nov 2012 10:21:03 +0000 (11:21 +0100)]
gdbus: Remove not needed NULL pointer checks

g_strdup returns NULL if argument passed is NULL and there is no need
to double check that.

11 years agomonitor: Handle attribute lists for SDP records
Marcel Holtmann [Wed, 21 Nov 2012 05:26:45 +0000 (06:26 +0100)]
monitor: Handle attribute lists for SDP records

11 years agomonitor: Track SDP continuation for attribute lists
Marcel Holtmann [Wed, 21 Nov 2012 04:35:27 +0000 (05:35 +0100)]
monitor: Track SDP continuation for attribute lists

11 years agomonitor: Handle UUID-32 and UUID-128 values
Marcel Holtmann [Tue, 20 Nov 2012 17:01:01 +0000 (18:01 +0100)]
monitor: Handle UUID-32 and UUID-128 values

11 years agomonitor: Decode SDP element data structures
Marcel Holtmann [Tue, 20 Nov 2012 15:10:44 +0000 (16:10 +0100)]
monitor: Decode SDP element data structures

11 years agomonitor: Add basic attribute UUID decoding
Marcel Holtmann [Tue, 20 Nov 2012 10:56:05 +0000 (11:56 +0100)]
monitor: Add basic attribute UUID decoding

11 years agobuild: Remove stupid -I directives
Marcel Holtmann [Tue, 20 Nov 2012 10:50:48 +0000 (11:50 +0100)]
build: Remove stupid -I directives

11 years agosdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256
Bart Westgeest [Mon, 19 Nov 2012 19:04:32 +0000 (14:04 -0500)]
sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256

Fixes a bug where the complete sequence data is written, but the size
is truncated to one byte.

11 years agosdp: Limit side effects of sdp_get_data_type and sdp_get_data_size
Bart Westgeest [Mon, 19 Nov 2012 19:04:31 +0000 (14:04 -0500)]
sdp: Limit side effects of sdp_get_data_type and sdp_get_data_size

Remove modification of buf->buf_size in 'get' functions. Data is
still indirectly modified due to recursive nature of code.

Renamed sdp_get_data_type to sdp_get_data_type_size.

11 years agosdp: Inlined single use of function sdp_set_data_type
Bart Westgeest [Mon, 19 Nov 2012 19:04:30 +0000 (14:04 -0500)]
sdp: Inlined single use of function sdp_set_data_type

Inlining single use of sdp_set_data_type to improve code readability,
since the function was doing more than just setting the data type.

11 years agohid2hci: change subsystem in udev rule from usb to usb*
Alexander Holler [Tue, 20 Nov 2012 11:47:08 +0000 (12:47 +0100)]
hid2hci: change subsystem in udev rule from usb to usb*

With kernel 3.6 (commit 7e97243c2080ecae7129e83635227fdebd4feef6) the
class for some devices (e.g. dongles from Logitech) were changed from
usb to usbmisc. As consequence the udev rule for hid2hci didn't work
anymore with kernels >= 3.6.

Changing the subsystem from "usb" to "usb*" matches both "usb" and
"usbmisc" and works with all kernels.

11 years agocore: Fix freeing pending profile messages in device_free
Johan Hedberg [Tue, 20 Nov 2012 12:15:26 +0000 (14:15 +0200)]
core: Fix freeing pending profile messages in device_free

11 years agocore: Implement Device.DisconnectProfile method
Johan Hedberg [Tue, 20 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Implement Device.DisconnectProfile method

11 years agocore: Add external profile disconnection support
Johan Hedberg [Tue, 20 Nov 2012 12:14:41 +0000 (14:14 +0200)]
core: Add external profile disconnection support

11 years agotest: Add RequestDisconnection support to test-profile
Johan Hedberg [Tue, 20 Nov 2012 12:14:08 +0000 (14:14 +0200)]
test: Add RequestDisconnection support to test-profile

11 years agoaudio: Remove leftover of HFP profile
Luiz Augusto von Dentz [Tue, 20 Nov 2012 11:58:13 +0000 (13:58 +0200)]
audio: Remove leftover of HFP profile

11 years agosink: Expose internal connection API
Mikel Astiz [Thu, 15 Nov 2012 07:27:37 +0000 (08:27 +0100)]
sink: Expose internal connection API

Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.

11 years agosource: Expose internal connection API
Mikel Astiz [Thu, 15 Nov 2012 07:27:36 +0000 (08:27 +0100)]
source: Expose internal connection API

Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.

11 years agosource: Add missing code in source_disconnect()
Mikel Astiz [Thu, 15 Nov 2012 07:27:35 +0000 (08:27 +0100)]
source: Add missing code in source_disconnect()

Use the implementation in sink_disconnect() as a template to implement
the missing code in source_disconnect(). Both functions should be
equivalent.

11 years agosink: Generalize disconnection function
Mikel Astiz [Thu, 15 Nov 2012 07:27:34 +0000 (08:27 +0100)]
sink: Generalize disconnection function

Extend the function for a more general usage other than full device
disconnection. Besides, return error code instead of a boolean.

11 years agoaudio: Trivial function renames
Mikel Astiz [Thu, 15 Nov 2012 07:27:33 +0000 (08:27 +0100)]
audio: Trivial function renames

Rename functions to be consistent with the rest of the code.

11 years agogaptest: Update to use D-Bus properties
Johan Hedberg [Tue, 20 Nov 2012 11:10:52 +0000 (13:10 +0200)]
gaptest: Update to use D-Bus properties

11 years agonetwork: Add missing local_uuid values
Johan Hedberg [Tue, 20 Nov 2012 11:04:52 +0000 (13:04 +0200)]
network: Add missing local_uuid values

11 years agoinput: Add missing local_uuid entry
Johan Hedberg [Tue, 20 Nov 2012 11:02:05 +0000 (13:02 +0200)]
input: Add missing local_uuid entry

11 years agoneard: Append hash/randomizer in EIR only if remote provided it
Szymon Janc [Mon, 19 Nov 2012 15:03:58 +0000 (16:03 +0100)]
neard: Append hash/randomizer in EIR only if remote provided it

Read local OOB data for RequestOOB reply only if remote also provided
hash and randomizer in EIR. This will allow for faster reply when only
discovery is done OOB. It is also required to pass NFC handover test
related to Bluetooth just-works pairing.

11 years agoneard: Add support for nokia.com:bt type
Szymon Janc [Mon, 19 Nov 2012 15:03:57 +0000 (16:03 +0100)]
neard: Add support for nokia.com:bt type

This adds support for parsing nokia.com:bt type supported by some Nokia
NFC enabled devices. This is not fully documented Nokia extension so
to keep implementation sane and simple only PushOOB method suports
this type so only static handover is possible.

11 years agoneard: Move device object checking into separate helper
Szymon Janc [Mon, 19 Nov 2012 15:03:56 +0000 (16:03 +0100)]
neard: Move device object checking into separate helper

This will also be used by 'nokia.com:bt' handler.

11 years agoneard: Use ENONET error when adapter is not enabled
Szymon Janc [Mon, 19 Nov 2012 15:03:55 +0000 (16:03 +0100)]
neard: Use ENONET error when adapter is not enabled

This results in returning error 'Disabled' instead of 'No such Device'.
Will allow neard to properly set power state of Bluetooth carrier.

11 years agobtiotest: Enable deferred setup for sco sockets
Frédéric Dalleau [Mon, 19 Nov 2012 15:50:44 +0000 (16:50 +0100)]
btiotest: Enable deferred setup for sco sockets

11 years agoscotest: Add deferred setup option
Frédéric Dalleau [Mon, 19 Nov 2012 15:50:43 +0000 (16:50 +0100)]
scotest: Add deferred setup option

11 years agoaudio: Auto connect AVRCP in case of A2DP source is connected
Luiz Augusto von Dentz [Tue, 20 Nov 2012 09:13:01 +0000 (11:13 +0200)]
audio: Auto connect AVRCP in case of A2DP source is connected

This enables the same logic used for A2DP sink, so it attempt to
connect AVRCP if remote device support it.

Note this is necessary for some devices e.g. WP7 that don't connect
even when being the initiator because it is not mandatory for target
to do so even though it is recommended to avoid collisions while trying
to estabilish the connection.

11 years agotest: Add simple HFP test script
Johan Hedberg [Mon, 19 Nov 2012 18:46:31 +0000 (20:46 +0200)]
test: Add simple HFP test script

11 years agodevice: Fix minor whitespace issues
Szymon Janc [Mon, 19 Nov 2012 15:02:46 +0000 (16:02 +0100)]
device: Fix minor whitespace issues

11 years agodevice: Remove not really used auto_id member from btd_device
Szymon Janc [Mon, 19 Nov 2012 15:02:45 +0000 (16:02 +0100)]
device: Remove not really used auto_id member from btd_device

auto_id is not used anymore as LE device connect is now done by
adapter autoconnect list.

11 years agoadapter: Minor whitespace fix in btd_adapter_set_class
Szymon Janc [Mon, 19 Nov 2012 15:02:44 +0000 (16:02 +0100)]
adapter: Minor whitespace fix in btd_adapter_set_class

Indent with tab not spaces.

11 years agoadapter: Remove not needed variable from btd_adapter_start
Szymon Janc [Mon, 19 Nov 2012 15:02:43 +0000 (16:02 +0100)]
adapter: Remove not needed variable from btd_adapter_start

address is no longer used and can be removed.

11 years agoadapter: Remove not needed variable from btd_adapter_get_mode
Szymon Janc [Mon, 19 Nov 2012 15:02:42 +0000 (16:02 +0100)]
adapter: Remove not needed variable from btd_adapter_get_mode

address is no longer used and can be removed.

11 years agocore: Fix checking profiles with no local_uuid
Johan Hedberg [Sun, 18 Nov 2012 21:16:28 +0000 (23:16 +0200)]
core: Fix checking profiles with no local_uuid

11 years agomonitor: Decode a few Attribute PDUs
Marcel Holtmann [Sat, 17 Nov 2012 09:38:24 +0000 (18:38 +0900)]
monitor: Decode a few Attribute PDUs

11 years agocore: Fix SDP registration when staring server sockets fails
Johan Hedberg [Sat, 17 Nov 2012 09:37:19 +0000 (11:37 +0200)]
core: Fix SDP registration when staring server sockets fails

11 years agocore: Add support for generic L2CAP & RFCOMM profiles
Johan Hedberg [Sat, 17 Nov 2012 04:53:30 +0000 (06:53 +0200)]
core: Add support for generic L2CAP & RFCOMM profiles

11 years agocore: Fix external profile remote UUID setting
Johan Hedberg [Sat, 17 Nov 2012 04:52:46 +0000 (06:52 +0200)]
core: Fix external profile remote UUID setting

11 years agotest: Add support for dynamic channels and PSMs to test-profile
Johan Hedberg [Sat, 17 Nov 2012 04:50:45 +0000 (06:50 +0200)]
test: Add support for dynamic channels and PSMs to test-profile

11 years agotest: Add random UUID support to test-profile
Johan Hedberg [Sat, 17 Nov 2012 04:48:52 +0000 (06:48 +0200)]
test: Add random UUID support to test-profile

11 years agosdp-xml: Fix parsing of unknown elements
Johan Hedberg [Sat, 17 Nov 2012 04:47:43 +0000 (06:47 +0200)]
sdp-xml: Fix parsing of unknown elements

11 years agomonitor: Fix some AMP controller decodings
Marcel Holtmann [Sat, 17 Nov 2012 04:32:18 +0000 (13:32 +0900)]
monitor: Fix some AMP controller decodings

11 years agomonitor: Decode Security Manager Protocol
Marcel Holtmann [Sat, 17 Nov 2012 04:24:19 +0000 (13:24 +0900)]
monitor: Decode Security Manager Protocol

11 years agomonitor: Use callback tables for ATT and SMP
Marcel Holtmann [Sat, 17 Nov 2012 03:21:07 +0000 (12:21 +0900)]
monitor: Use callback tables for ATT and SMP

11 years agomonitor: Decode AMP Manager Protocol packets
Marcel Holtmann [Sat, 17 Nov 2012 03:09:16 +0000 (12:09 +0900)]
monitor: Decode AMP Manager Protocol packets

11 years agomonitor: Fix typo with Read Stored Link Keys command
Marcel Holtmann [Fri, 16 Nov 2012 16:54:19 +0000 (01:54 +0900)]
monitor: Fix typo with Read Stored Link Keys command

11 years agomonitor: Add basic decoding for SDP transactions
Marcel Holtmann [Fri, 16 Nov 2012 16:52:12 +0000 (01:52 +0900)]
monitor: Add basic decoding for SDP transactions

11 years agoaudio: Bump A2DP version to 1.3
Luiz Augusto von Dentz [Fri, 16 Nov 2012 13:11:53 +0000 (15:11 +0200)]
audio: Bump A2DP version to 1.3

In addition remove support of setting DelayReporting in audio.conf as
it should always be supported in the service record since it doesn't
mean the endpoint must support it because it is actually negotiated
during the stream configuration.

11 years agocore: Add support for custom SPP service UUIDs
Johan Hedberg [Fri, 16 Nov 2012 13:48:09 +0000 (15:48 +0200)]
core: Add support for custom SPP service UUIDs

11 years agotest: Add support for profile Service property
Johan Hedberg [Fri, 16 Nov 2012 13:47:31 +0000 (15:47 +0200)]
test: Add support for profile Service property

11 years agocore: Add default PBAP Server service record
Johan Hedberg [Fri, 16 Nov 2012 13:37:29 +0000 (15:37 +0200)]
core: Add default PBAP Server service record

11 years agocore: Add default entry for PBAP Client
Johan Hedberg [Fri, 16 Nov 2012 13:26:47 +0000 (15:26 +0200)]
core: Add default entry for PBAP Client

11 years agocore: Move external profile record handles into a common structure
Johan Hedberg [Fri, 16 Nov 2012 13:26:35 +0000 (15:26 +0200)]
core: Move external profile record handles into a common structure

11 years agocore: Add Service property for external profiles
Johan Hedberg [Fri, 16 Nov 2012 10:31:11 +0000 (12:31 +0200)]
core: Add Service property for external profiles

This property is used to distinguish the service class UUID from the
actual profile UUID.

11 years agodbusoob: Set device class in device object
Frédéric Danis [Thu, 15 Nov 2012 17:31:40 +0000 (18:31 +0100)]
dbusoob: Set device class in device object

11 years agoevent: Set device class in device object
Frédéric Danis [Thu, 15 Nov 2012 17:31:39 +0000 (18:31 +0100)]
event: Set device class in device object

11 years agoadapter: Set device class in device object
Frédéric Danis [Thu, 15 Nov 2012 17:31:38 +0000 (18:31 +0100)]
adapter: Set device class in device object

Move storage of device class after device object creation.

11 years agodevice: Retrieve class from storage
Frédéric Danis [Thu, 15 Nov 2012 17:31:37 +0000 (18:31 +0100)]
device: Retrieve class from storage

When device class is updated, save it and emit property changed signal.

11 years agoadapter: Convert storage classes
Frédéric Danis [Thu, 15 Nov 2012 17:31:36 +0000 (18:31 +0100)]
adapter: Convert storage classes

11 years agodevice: Device_remove_stored removes device directory
Frédéric Danis [Thu, 15 Nov 2012 17:31:35 +0000 (18:31 +0100)]
device: Device_remove_stored removes device directory

When a device is removed we should remove the device info
file and storage directory.

11 years agodevice: Remove storage path #defines
Frédéric Danis [Thu, 15 Nov 2012 17:31:34 +0000 (18:31 +0100)]
device: Remove storage path #defines

INFO_PATH and CACHE_PATH will be static for the
entire 5.x series

11 years agogdbus: Replace leading spaces with tabs
Syam Sidhardhan [Tue, 23 Oct 2012 13:57:06 +0000 (19:27 +0530)]
gdbus: Replace leading spaces with tabs

Trivial formatting fix.

11 years agomonitor: Track L2CAP channel modes
Marcel Holtmann [Fri, 16 Nov 2012 00:24:22 +0000 (09:24 +0900)]
monitor: Track L2CAP channel modes

11 years agomonitor: Handle PSM assignment for AMP controllers
Marcel Holtmann [Thu, 15 Nov 2012 23:49:20 +0000 (08:49 +0900)]
monitor: Handle PSM assignment for AMP controllers

11 years agomonitor: Track L2CAP PSM assignment
Marcel Holtmann [Thu, 15 Nov 2012 23:26:51 +0000 (08:26 +0900)]
monitor: Track L2CAP PSM assignment

11 years agomonitor: Use L2CAP frame structure for extended information
Marcel Holtmann [Thu, 15 Nov 2012 22:15:43 +0000 (07:15 +0900)]
monitor: Use L2CAP frame structure for extended information

11 years agocore: Use ext_io for client PSM/channel lookups
Johan Hedberg [Thu, 15 Nov 2012 14:38:50 +0000 (16:38 +0200)]
core: Use ext_io for client PSM/channel lookups

11 years agocore: Make exit sequence consistent with init
Luiz Augusto von Dentz [Thu, 15 Nov 2012 14:05:22 +0000 (16:05 +0200)]
core: Make exit sequence consistent with init

manager_cleanup should be called after plugin_cleanup on exit as
manager_init is called before plugin_init on the init sequence.

11 years agocore: Fix registering '/org/bluez' path before '/'
Luiz Augusto von Dentz [Thu, 15 Nov 2012 14:05:21 +0000 (16:05 +0200)]
core: Fix registering '/org/bluez' path before '/'

This cause problems with ObjectManager being exported in both paths

11 years agocore: Add common synonyms to to MAP MSE and MCE roles
Johan Hedberg [Thu, 15 Nov 2012 13:36:15 +0000 (15:36 +0200)]
core: Add common synonyms to to MAP MSE and MCE roles

11 years agocore: Add default SDP record for FTP
Johan Hedberg [Thu, 15 Nov 2012 13:32:15 +0000 (15:32 +0200)]
core: Add default SDP record for FTP

11 years agocore: Use "real" channel from ext_io for SDP records
Johan Hedberg [Thu, 15 Nov 2012 13:24:22 +0000 (15:24 +0200)]
core: Use "real" channel from ext_io for SDP records

11 years agocore: Add support for default OPP record
Johan Hedberg [Thu, 15 Nov 2012 13:04:48 +0000 (15:04 +0200)]
core: Add support for default OPP record

11 years agocore: Allow dynamically allocated PSMs and Channels for profiles
Johan Hedberg [Thu, 15 Nov 2012 13:00:13 +0000 (15:00 +0200)]
core: Allow dynamically allocated PSMs and Channels for profiles

11 years agocore: Keep local and remote channel/PSM info separate to avoid confusion
Johan Hedberg [Thu, 15 Nov 2012 12:27:07 +0000 (14:27 +0200)]
core: Keep local and remote channel/PSM info separate to avoid confusion

11 years agocore: Add default DUN record for external profiles
Johan Hedberg [Thu, 15 Nov 2012 11:59:37 +0000 (13:59 +0200)]
core: Add default DUN record for external profiles

11 years agocore: Add default SPP record for external profiles
Johan Hedberg [Thu, 15 Nov 2012 11:52:16 +0000 (13:52 +0200)]
core: Add default SPP record for external profiles

11 years agotest: Remove hardcoded default name from test-profile
Johan Hedberg [Thu, 15 Nov 2012 11:32:46 +0000 (13:32 +0200)]
test: Remove hardcoded default name from test-profile

11 years agocore: Add default names for known profiles
Johan Hedberg [Thu, 15 Nov 2012 11:32:06 +0000 (13:32 +0200)]
core: Add default names for known profiles

11 years agocore: Remove useless ext_get_record function
Johan Hedberg [Thu, 15 Nov 2012 10:43:04 +0000 (12:43 +0200)]
core: Remove useless ext_get_record function