OSDN Git Service

android-x86/external-bluetooth-bluez.git
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

11 years agocore: Add HFP AG defautl record for external profiles
Johan Hedberg [Thu, 15 Nov 2012 10:42:19 +0000 (12:42 +0200)]
core: Add HFP AG defautl record for external profiles

11 years agolib: Add new Network attribute define for HFP 1.6 AG record
Johan Hedberg [Thu, 15 Nov 2012 10:40:43 +0000 (12:40 +0200)]
lib: Add new Network attribute define for HFP 1.6 AG record

11 years agocore: Remove unneeded line in XML record definition
Johan Hedberg [Thu, 15 Nov 2012 10:14:50 +0000 (12:14 +0200)]
core: Remove unneeded line in XML record definition

11 years agomonitor: Add decoding of L2CAP configuration options
Marcel Holtmann [Thu, 15 Nov 2012 09:30:49 +0000 (18:30 +0900)]
monitor: Add decoding of L2CAP configuration options

11 years agogdbus: Fix compilation error due to missing #defines
Syam Sidhardhan [Wed, 14 Nov 2012 13:07:10 +0000 (18:37 +0530)]
gdbus: Fix compilation error due to missing #defines

Since these are simple #define strings, we are defining it here
instead of upgrading to D-Bus 1.5 or later.

Log:
  CC     gdbus/object.o
gdbus/object.c: In function ‘properties_set’:
gdbus/object.c:876:7: error: ‘DBUS_ERROR_UNKNOWN_PROPERTY’ undeclared
 (first use in this function)
gdbus/object.c:876:7: note: each undeclared identifier is reported
 only once for each function it appears in
gdbus/object.c:881:6: error: ‘DBUS_ERROR_PROPERTY_READ_ONLY’
 undeclared (first use in this function)
make[1]: *** [gdbus/object.o] Error 1
make: *** [all] Error 2

11 years agodoc: Add Version and Features parameters for RegisterProfile
Johan Hedberg [Wed, 14 Nov 2012 14:03:02 +0000 (16:03 +0200)]
doc: Add Version and Features parameters for RegisterProfile

11 years agotest: Remove unneeded XML record from test-profile
Johan Hedberg [Wed, 14 Nov 2012 13:59:41 +0000 (15:59 +0200)]
test: Remove unneeded XML record from test-profile

11 years agocore: Add automatic SDP record generation for external profiles
Johan Hedberg [Wed, 14 Nov 2012 13:58:08 +0000 (15:58 +0200)]
core: Add automatic SDP record generation for external profiles

11 years agotest: Remove useless record handle from test-profile record XML
Johan Hedberg [Wed, 14 Nov 2012 13:36:51 +0000 (15:36 +0200)]
test: Remove useless record handle from test-profile record XML

11 years agobtio: Fix type detection for L2CAP fixed channels
Luiz Augusto von Dentz [Wed, 14 Nov 2012 13:19:46 +0000 (15:19 +0200)]
btio: Fix type detection for L2CAP fixed channels

11 years agotest: Remove test-telephony
Luiz Augusto von Dentz [Wed, 14 Nov 2012 12:52:25 +0000 (14:52 +0200)]
test: Remove test-telephony

This API is now gone so there is no reason to keep this around

11 years agohfp-api: Remove HandsfreeGateway interface
Luiz Augusto von Dentz [Wed, 14 Nov 2012 12:45:56 +0000 (14:45 +0200)]
hfp-api: Remove HandsfreeGateway interface

This API is not longer supported

11 years agoaudio-api: Remove Headset and HeadsetGateway APIs
Luiz Augusto von Dentz [Wed, 14 Nov 2012 12:43:52 +0000 (14:43 +0200)]
audio-api: Remove Headset and HeadsetGateway APIs

11 years agobtio: Fix type detection when psm or channel are 0
Luiz Augusto von Dentz [Wed, 14 Nov 2012 12:20:36 +0000 (14:20 +0200)]
btio: Fix type detection when psm or channel are 0

They could be set to 0 on purpose so the kernel would automatically pick
one available.

To fix this now the detection is done while parsing the options, so in
case the user set the option to 0 it will automatically set the type
as well.

11 years agocore: Add proper defaults database for external profiles
Johan Hedberg [Wed, 14 Nov 2012 13:06:17 +0000 (15:06 +0200)]
core: Add proper defaults database for external profiles

11 years agocore: Add default RFCOMM channel definitions to profile.c
Johan Hedberg [Wed, 14 Nov 2012 12:50:38 +0000 (14:50 +0200)]
core: Add default RFCOMM channel definitions to profile.c

11 years agolib: Add missing OBEX UUID strings to uuid.h
Johan Hedberg [Wed, 14 Nov 2012 12:50:05 +0000 (14:50 +0200)]
lib: Add missing OBEX UUID strings to uuid.h

11 years agoassigned-numbers: Add MAP MAS (Message Notification Service) channel
Johan Hedberg [Wed, 14 Nov 2012 12:00:27 +0000 (14:00 +0200)]
assigned-numbers: Add MAP MAS (Message Notification Service) channel

11 years agocore: Minor coding style fixes
Johan Hedberg [Wed, 14 Nov 2012 11:54:17 +0000 (13:54 +0200)]
core: Minor coding style fixes

11 years agoadapter: Remove storage path #defines
Frédéric Danis [Wed, 14 Nov 2012 11:28:53 +0000 (12:28 +0100)]
adapter: Remove storage path #defines

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

11 years agodevice: Use new storage for device trust
Frédéric Danis [Wed, 14 Nov 2012 11:28:52 +0000 (12:28 +0100)]
device: Use new storage for device trust

As set_trust() changes value in device structure and write to
storage is deferred, property set could not return failure.

11 years agoadapter: Convert storage trusts
Frédéric Danis [Wed, 14 Nov 2012 11:28:51 +0000 (12:28 +0100)]
adapter: Convert storage trusts

All entry in trusts file are set to [all] (if a device is not trusted
it does not have entry in this file).
So, we do not need to check entry value and set device (entry key) as
trusted.

11 years agodevice: Use new storage for device alias
Frédéric Danis [Wed, 14 Nov 2012 11:28:50 +0000 (12:28 +0100)]
device: Use new storage for device alias

As set_alias() changes value in device structure and write to
storage is deferred, property set could not return failure.

11 years agoadapter: Convert storage aliases
Frédéric Danis [Wed, 14 Nov 2012 11:28:49 +0000 (12:28 +0100)]
adapter: Convert storage aliases

11 years agoTODO: Split completed BlueZ 5 items into a separate list for clarity
Johan Hedberg [Wed, 14 Nov 2012 11:30:36 +0000 (13:30 +0200)]
TODO: Split completed BlueZ 5 items into a separate list for clarity

11 years agocore: Use int instead of gint
Johan Hedberg [Wed, 14 Nov 2012 10:59:19 +0000 (12:59 +0200)]
core: Use int instead of gint

11 years agocore: Add connection priority to btd_profile
Johan Hedberg [Wed, 14 Nov 2012 10:34:26 +0000 (12:34 +0200)]
core: Add connection priority to btd_profile

11 years agocore: Fix manager_cleanup order
Johan Hedberg [Wed, 14 Nov 2012 08:58:08 +0000 (10:58 +0200)]
core: Fix manager_cleanup order

This patch fixes the order in which things are cleaned up in
manager_cleanup. The profiles need to be cleaned up first (since they
are higher level constructs than adapters and devices) and we cannot
remove the adapter from the manager list before calling adapter_remove
since functions within adapter_remove may remove service records which
in turn relies on having the adapter present in the manager list.

11 years agoTODO: Update with current status
Johan Hedberg [Tue, 13 Nov 2012 17:41:16 +0000 (19:41 +0200)]
TODO: Update with current status

11 years agoTODO: Trivial typo fixes
Anderson Lizardo [Tue, 13 Nov 2012 15:49:46 +0000 (11:49 -0400)]
TODO: Trivial typo fixes

11 years agoTODO: Add entry for runtime selection of drivers
Anderson Lizardo [Tue, 13 Nov 2012 15:49:45 +0000 (11:49 -0400)]
TODO: Add entry for runtime selection of drivers

This will allow to drop usage of symlinks to C files, which require
messing with CPPFLAGS so headers can be found by the preprocessor.

It also allows for easier testing, because it is not necessary to
rebuild BlueZ to test different drivers.

11 years agomonitor: Decode missing L2CAP signalling commands
Marcel Holtmann [Tue, 13 Nov 2012 16:22:11 +0000 (01:22 +0900)]
monitor: Decode missing L2CAP signalling commands

11 years agomonitor: Support proper ACL packet fragmentation
Marcel Holtmann [Tue, 13 Nov 2012 15:46:03 +0000 (00:46 +0900)]
monitor: Support proper ACL packet fragmentation

11 years agoaudio: Add support for passing endpoints as custom property
Luiz Augusto von Dentz [Tue, 13 Nov 2012 13:02:07 +0000 (15:02 +0200)]
audio: Add support for passing endpoints as custom property

This adds the possibility to pass the registered endpoints to external
components implementing the same profile.

11 years agoaudio: Move to profiles directory
Luiz Augusto von Dentz [Mon, 12 Nov 2012 17:00:32 +0000 (19:00 +0200)]
audio: Move to profiles directory

11 years agobuild: Remove gateway.c and gateway.h
Luiz Augusto von Dentz [Mon, 12 Nov 2012 15:07:06 +0000 (17:07 +0200)]
build: Remove gateway.c and gateway.h

11 years agoaudio: Remove code HFP and HS gateway role
Luiz Augusto von Dentz [Mon, 12 Nov 2012 15:03:47 +0000 (17:03 +0200)]
audio: Remove code HFP and HS gateway role

This is to be replaced with external profile support.

11 years agobuild: Remove telephony.h
Luiz Augusto von Dentz [Mon, 12 Nov 2012 16:21:12 +0000 (18:21 +0200)]
build: Remove telephony.h

11 years agobuild: Remove headset.c and headset.h
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:49:01 +0000 (16:49 +0200)]
build: Remove headset.c and headset.h

11 years agobuild: Remove telephony-dummy.c
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:48:16 +0000 (16:48 +0200)]
build: Remove telephony-dummy.c

11 years agobuild: Remove telephony-ofono.c
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:38:45 +0000 (16:38 +0200)]
build: Remove telephony-ofono.c

11 years agobuild: Remove telephony-maemo6.c
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:38:16 +0000 (16:38 +0200)]
build: Remove telephony-maemo6.c

11 years agobuild: Remove telephony-maemo5.c
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:36:38 +0000 (16:36 +0200)]
build: Remove telephony-maemo5.c

11 years agoaudio: Remove code using headset
Luiz Augusto von Dentz [Mon, 12 Nov 2012 14:15:07 +0000 (16:15 +0200)]
audio: Remove code using headset

This is to be replaced with external profile support.

11 years agoaudio: Remove HFP option from audio.conf
Luiz Augusto von Dentz [Mon, 12 Nov 2012 13:39:07 +0000 (15:39 +0200)]
audio: Remove HFP option from audio.conf

It is not in use anymore

11 years agoaudio: Remove HFP and HSP headset role support
Luiz Augusto von Dentz [Mon, 12 Nov 2012 13:29:03 +0000 (15:29 +0200)]
audio: Remove HFP and HSP headset role support

The support for these profiles are intended to be external, probably directly
integrated in the telephony stack of the platform in use e.g. oFono.

11 years agonetwork: Fix dead assignment in connect_cb
Szymon Janc [Tue, 13 Nov 2012 12:52:40 +0000 (13:52 +0100)]
network: Fix dead assignment in connect_cb

Value stored to err_msg is never read in case err was not NULL.
Simply remove err_msg and pass strerror() directly where it is used.

11 years agoavrcp: Fix dead assignments in ct_set_setting
Szymon Janc [Tue, 13 Nov 2012 12:52:39 +0000 (13:52 +0100)]
avrcp: Fix dead assignments in ct_set_setting

Value stored in val is never read before writing it again. After
fixing val same applies to attr variable.

11 years agoavctp: Fix dead assignment in control_response
Szymon Janc [Tue, 13 Nov 2012 12:52:38 +0000 (13:52 +0100)]
avctp: Fix dead assignment in control_response

Value stored to req is never read before writing it again.

11 years agocore: Fix profile UUID matching for custom fd properties
Johan Hedberg [Tue, 13 Nov 2012 12:28:42 +0000 (14:28 +0200)]
core: Fix profile UUID matching for custom fd properties

11 years agocore: Always track the device and adapter objects for ext_io
Johan Hedberg [Tue, 13 Nov 2012 12:21:43 +0000 (14:21 +0200)]
core: Always track the device and adapter objects for ext_io

11 years agoneard: Set device name in cache
Frédéric Danis [Wed, 7 Nov 2012 14:40:30 +0000 (15:40 +0100)]
neard: Set device name in cache

If device existed previously, it has been removed before calling of
btd_event_remote_name(), so this just update storage cache and name
property change of device object is not emitted.

11 years agocore: Fix Device.Connect(Profile) error return
Johan Hedberg [Tue, 13 Nov 2012 10:33:18 +0000 (12:33 +0200)]
core: Fix Device.Connect(Profile) error return

11 years agocore: Fix error path for external profile connect
Johan Hedberg [Tue, 13 Nov 2012 09:43:36 +0000 (11:43 +0200)]
core: Fix error path for external profile connect

11 years agocore: Add Device.ConnectProfile method
Johan Hedberg [Mon, 12 Nov 2012 14:41:22 +0000 (16:41 +0200)]
core: Add Device.ConnectProfile method

11 years agotest: Add ConnectProfile and DisconnectProfile support to test-device
Johan Hedberg [Tue, 13 Nov 2012 08:52:26 +0000 (10:52 +0200)]
test: Add ConnectProfile and DisconnectProfile support to test-device

11 years agocore: Fix missing initialization for local_uuid for external profiles
Johan Hedberg [Tue, 13 Nov 2012 09:08:39 +0000 (11:08 +0200)]
core: Fix missing initialization for local_uuid for external profiles

11 years agocore: Include remote version and features in Profile.NewConnection
Johan Hedberg [Mon, 12 Nov 2012 13:07:44 +0000 (15:07 +0200)]
core: Include remote version and features in Profile.NewConnection

11 years agocore: Fix remote_uuids setting for external profiles
Johan Hedberg [Tue, 13 Nov 2012 08:48:36 +0000 (10:48 +0200)]
core: Fix remote_uuids setting for external profiles

11 years agotest: Fix fd_properties printing
Johan Hedberg [Tue, 13 Nov 2012 08:48:06 +0000 (10:48 +0200)]
test: Fix fd_properties printing

11 years agoemulator: Create server channel for LE only device
Marcel Holtmann [Tue, 13 Nov 2012 09:36:40 +0000 (18:36 +0900)]
emulator: Create server channel for LE only device

11 years agotest: Add HFP test case to test-profile
Johan Hedberg [Tue, 13 Nov 2012 08:25:03 +0000 (10:25 +0200)]
test: Add HFP test case to test-profile

11 years agotest: Print fd_properties in test-profile
Johan Hedberg [Tue, 13 Nov 2012 08:24:58 +0000 (10:24 +0200)]
test: Print fd_properties in test-profile

11 years agocore: Fix record handle type for ext_io
Johan Hedberg [Tue, 13 Nov 2012 08:24:03 +0000 (10:24 +0200)]
core: Fix record handle type for ext_io

11 years agogatt: Update characteristic names translation table
Andrzej Kaczmarek [Mon, 12 Nov 2012 12:08:48 +0000 (13:08 +0100)]
gatt: Update characteristic names translation table

11 years agodevice: Defer write to storage
Frédéric Danis [Mon, 12 Nov 2012 15:43:44 +0000 (16:43 +0100)]
device: Defer write to storage

Defer write to storage using g_idle_add() to avoid multiple
open/write/close operations when device properties are changed in
sequence.

11 years agodbusoob: Create device object and return it when adding OOB data
Szymon Janc [Mon, 12 Nov 2012 15:53:15 +0000 (16:53 +0100)]
dbusoob: Create device object and return it when adding OOB data

With recent change on how new device objects are created it is no
longer possible to create device object from string with
org.bluez.Adapter interface. When adding OOB data for specified
address device object is created if it was not yet existing.

Path to object is returned in AddRemoteData to avoid need for extra
FindDevice() call on org.bluez.Adapter to get object maching specified
address.

11 years agobuild: Fix make distcheck for input plugin
Anderson Lizardo [Mon, 12 Nov 2012 21:03:41 +0000 (17:03 -0400)]
build: Fix make distcheck for input plugin

suspend.c is a symlink generated at build time, therefore it should be
created on build directory. Additionally, it is necessary to add
-I$(srcdir)/profiles/input to CPPFLAGS so suspend.h can be found (the
compiler does not follow symlinks prior to resolving #include
directives).

11 years agomonitor: Add some mising AMP controller decodings
Marcel Holtmann [Tue, 13 Nov 2012 07:50:40 +0000 (16:50 +0900)]
monitor: Add some mising AMP controller decodings

11 years agomonitor: Add missing HCI event decodings
Marcel Holtmann [Tue, 13 Nov 2012 07:34:37 +0000 (16:34 +0900)]
monitor: Add missing HCI event decodings

11 years agomonitor: Decode the L2CAP create channel commands
Marcel Holtmann [Sun, 11 Nov 2012 09:42:47 +0000 (18:42 +0900)]
monitor: Decode the L2CAP create channel commands

11 years agomonitor: Decode commands for physical and logical links
Marcel Holtmann [Sun, 11 Nov 2012 02:52:18 +0000 (11:52 +0900)]
monitor: Decode commands for physical and logical links

11 years agomonitor: Use PRIx64 instead of PRIu64
Marcel Holtmann [Sun, 11 Nov 2012 02:26:07 +0000 (11:26 +0900)]
monitor: Use PRIx64 instead of PRIu64

11 years agomonitor: Add some missing LE command decodings
Marcel Holtmann [Sat, 10 Nov 2012 19:27:14 +0000 (20:27 +0100)]
monitor: Add some missing LE command decodings

11 years agomonitor: Use hcidump fallback only if monitor channel is not present
Marcel Holtmann [Sat, 10 Nov 2012 16:57:00 +0000 (17:57 +0100)]
monitor: Use hcidump fallback only if monitor channel is not present

11 years agomonitor: Decode L2CAP features and fixed channels list
Marcel Holtmann [Sat, 10 Nov 2012 14:37:33 +0000 (15:37 +0100)]
monitor: Decode L2CAP features and fixed channels list

11 years agoAdd João Paulo to the AUTHORS file
Gustavo Padovan [Fri, 9 Nov 2012 15:06:11 +0000 (16:06 +0100)]
Add João Paulo to the AUTHORS file

11 years agomonitor: Fix uint64_t format specifier
Johan Hedberg [Sat, 10 Nov 2012 12:16:27 +0000 (14:16 +0200)]
monitor: Fix uint64_t format specifier

To be compilable both on 32 and 64 bit architectures the PRIu64 macro
needs to be used as format specifier for uint64_t. Otherwise we'll get
the following type of error either on 32 bit (for %lx) or 64 bit (for
%llx) :

monitor/l2cap.c: In function 'sig_info_rsp':
monitor/l2cap.c:351:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'uint64_t' [-Werror=format]

11 years agotest: Update get-managed-objects to support Python 3
Johan Hedberg [Sat, 10 Nov 2012 10:05:08 +0000 (12:05 +0200)]
test: Update get-managed-objects to support Python 3

11 years agomonitor: Fix color printing of hexdump
Marcel Holtmann [Fri, 9 Nov 2012 22:54:36 +0000 (23:54 +0100)]
monitor: Fix color printing of hexdump

11 years agomonitor: Use more advanced indent printing
Marcel Holtmann [Fri, 9 Nov 2012 22:46:29 +0000 (23:46 +0100)]
monitor: Use more advanced indent printing