OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agomonitor: Add data structure for advertising channel TX power
Marcel Holtmann [Thu, 1 Nov 2012 01:41:57 +0000 (18:41 -0700)]
monitor: Add data structure for advertising channel TX power

11 years agomonitor: Add support for reading btsnoop trace files
Marcel Holtmann [Thu, 1 Nov 2012 01:28:41 +0000 (18:28 -0700)]
monitor: Add support for reading btsnoop trace files

11 years agohcitool: Retrieve names from cache directory
Frédéric Danis [Tue, 30 Oct 2012 17:05:28 +0000 (18:05 +0100)]
hcitool: Retrieve names from cache directory

11 years agoinput: Retrieve device name from device object
Frédéric Danis [Tue, 30 Oct 2012 17:05:27 +0000 (18:05 +0100)]
input: Retrieve device name from device object

11 years agodbusoob: Set device name in device object
Frédéric Danis [Tue, 30 Oct 2012 17:05:26 +0000 (18:05 +0100)]
dbusoob: Set device name in device object

11 years agocore: Make btd_event_remote_name local parameter const
Johan Hedberg [Wed, 31 Oct 2012 09:04:31 +0000 (11:04 +0200)]
core: Make btd_event_remote_name local parameter const

11 years agocore: Fix coding style in event.h (long lines)
Johan Hedberg [Wed, 31 Oct 2012 08:58:42 +0000 (10:58 +0200)]
core: Fix coding style in event.h (long lines)

11 years agocore: Make remote name event parameters const
Johan Hedberg [Wed, 31 Oct 2012 08:57:18 +0000 (10:57 +0200)]
core: Make remote name event parameters const

11 years agodevice: Retrieve name from storage
Frédéric Danis [Tue, 30 Oct 2012 17:05:25 +0000 (18:05 +0100)]
device: Retrieve name from storage

Try to retrieve name from device info file.
If that fails fall back to the cache and save it to device info file.

When device name is updated, save it.

11 years agodoc: Update settings-storage.txt
Frédéric Danis [Tue, 30 Oct 2012 17:05:24 +0000 (18:05 +0100)]
doc: Update settings-storage.txt

Device name should be saved in device info file.

11 years agoadapter: Simplify cached name storage
Frédéric Danis [Tue, 30 Oct 2012 17:05:23 +0000 (18:05 +0100)]
adapter: Simplify cached name storage

11 years agotest: Add support for using external player
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:49 +0000 (16:41 +0200)]
test: Add support for using external player

This add support for passing a device player object which is then
registered as a local one in a loopback fashion.

11 years agotest: Fix using Number instead of Track in mpris-player
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:48 +0000 (16:41 +0200)]
test: Fix using Number instead of Track in mpris-player

11 years agotest: Fix using Number instead of Track in simple-player
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:47 +0000 (16:41 +0200)]
test: Fix using Number instead of Track in simple-player

11 years agoAVRCP: Remove conversions inside media.c
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:46 +0000 (16:41 +0200)]
AVRCP: Remove conversions inside media.c

The conversion should be done in avrcp.c as it is already doing for
controller players.

11 years agoplayer: Add support for SetProperty
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:45 +0000 (16:41 +0200)]
player: Add support for SetProperty

Properties Equalizer, Repeat, Shuffle and Scan can be set by user
application.

11 years agoaudio: Export remote player as children object path of device
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:44 +0000 (16:41 +0200)]
audio: Export remote player as children object path of device

The object implements org.bluez.MediaPlayer similar to the target role.

11 years agoAVRCP: Add initial support for controller player
Luiz Augusto von Dentz [Mon, 29 Oct 2012 14:41:43 +0000 (16:41 +0200)]
AVRCP: Add initial support for controller player

This also bump controller record to 1.3.

11 years agomonitor: Store traces with new data link format
Marcel Holtmann [Wed, 31 Oct 2012 03:03:06 +0000 (20:03 -0700)]
monitor: Store traces with new data link format

11 years agomonitor: Add support for server channels
Marcel Holtmann [Wed, 31 Oct 2012 01:57:16 +0000 (18:57 -0700)]
monitor: Add support for server channels

11 years agoemulator: Add version and usage information
Marcel Holtmann [Wed, 31 Oct 2012 01:14:06 +0000 (18:14 -0700)]
emulator: Add version and usage information

11 years agoemulator: Fix issue with remote disconnects
Marcel Holtmann [Wed, 31 Oct 2012 01:07:30 +0000 (18:07 -0700)]
emulator: Fix issue with remote disconnects

11 years agobuild: Fix selecting HoG suspend backend
João Paulo Rechi Vita [Mon, 29 Oct 2012 20:33:57 +0000 (17:33 -0300)]
build: Fix selecting HoG suspend backend

The dummy backend was always being compiled and the --with-hog-suspend
option was not being accepted by configure. Now the backend can be
selected with --with-hog-suspend and the suspend implementation file is
generated during compile time.

11 years agoemulator: Handle the local AMP info command
Marcel Holtmann [Mon, 29 Oct 2012 23:09:38 +0000 (16:09 -0700)]
emulator: Handle the local AMP info command

11 years agomonitor: Add packet information for local AMP info response
Marcel Holtmann [Mon, 29 Oct 2012 23:09:14 +0000 (16:09 -0700)]
monitor: Add packet information for local AMP info response

11 years agoemulator: Create support for enabling AMP controllers
Marcel Holtmann [Mon, 29 Oct 2012 22:49:30 +0000 (15:49 -0700)]
emulator: Create support for enabling AMP controllers

11 years agohciattach: Allow creating AMP controller over UART
Marcel Holtmann [Mon, 29 Oct 2012 22:48:52 +0000 (15:48 -0700)]
hciattach: Allow creating AMP controller over UART

11 years agoemulator: Add type definition for AMP controller
Marcel Holtmann [Mon, 29 Oct 2012 22:29:15 +0000 (15:29 -0700)]
emulator: Add type definition for AMP controller

11 years agoemulator: Add stub for LE single mode devices
Marcel Holtmann [Mon, 29 Oct 2012 22:12:03 +0000 (15:12 -0700)]
emulator: Add stub for LE single mode devices

11 years agoemulator: Allow specifying controller type
Marcel Holtmann [Mon, 29 Oct 2012 22:01:43 +0000 (15:01 -0700)]
emulator: Allow specifying controller type

11 years agoemulator: Create unique addresses accross devices
Marcel Holtmann [Mon, 29 Oct 2012 21:54:54 +0000 (14:54 -0700)]
emulator: Create unique addresses accross devices

11 years agoemulator: Ignore failures for device transports
Marcel Holtmann [Mon, 29 Oct 2012 21:44:16 +0000 (14:44 -0700)]
emulator: Ignore failures for device transports

11 years agoemulator: Add support for TCP server connections
Marcel Holtmann [Mon, 29 Oct 2012 21:42:03 +0000 (14:42 -0700)]
emulator: Add support for TCP server connections

11 years agoAVDTP: Do not keep a internal reference
Luiz Augusto von Dentz [Fri, 26 Oct 2012 13:44:29 +0000 (16:44 +0300)]
AVDTP: Do not keep a internal reference

Don't initialize reference with 1, instead always start disconnect timer
when reference drops to 0, so in case nobody reclaims the session it
automatically disconnect after 1 second and frees the memory.

11 years agocore: Do not call the callback on btd_cancel_authorization
Luiz Augusto von Dentz [Fri, 26 Oct 2012 11:48:09 +0000 (14:48 +0300)]
core: Do not call the callback on btd_cancel_authorization

btd_cancel_authorization should work like g_source_remove and not attempt
to reach the callback as its maybe already invalid or lead to double free
situations such as this:

Invalid write of size 4
   at 0x13D480: connection_lost (avdtp.c:1102)
   by 0x13F37A: session_cb (avdtp.c:2281)
   by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x122B21: main (main.c:551)
 Address 0x6512ac0 is 32 bytes inside a block of size 1,184 free'd
   at 0x4A07786: free (vg_replace_malloc.c:446)
   by 0x4C8150E: g_free (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x13D4A9: connection_lost (avdtp.c:1216)
   by 0x13D55E: auth_cb (avdtp.c:2471)
   by 0x17E99A: service_auth_cancel (adapter.c:1021)
   by 0x183C67: btd_cancel_authorization (adapter.c:3358)
   by 0x13D477: connection_lost (avdtp.c:1098)
   by 0x13F37A: session_cb (avdtp.c:2281)
   by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x122B21: main (main.c:551)

11 years agocore: Fix memory leak
Luiz Augusto von Dentz [Fri, 26 Oct 2012 07:56:56 +0000 (10:56 +0300)]
core: Fix memory leak

1,262 (64 direct, 1,198 indirect) bytes in 1 blocks are definitely lost in loss record 280 of 290
   at 0x4A0881C: malloc (vg_replace_malloc.c:270)
   by 0x4C813FE: g_malloc (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C95801: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C95D55: g_slice_alloc0 (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C746AA: g_key_file_new (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x18136C: load_config (adapter.c:2620)
   by 0x18353B: adapter_init (adapter.c:2708)
   by 0x17E62E: btd_manager_register_adapter (manager.c:337)
   by 0x191171: mgmt_event.part.36 (mgmt.c:1081)
   by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)

11 years agoAVRCP: Add support for settings changed event
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:09 +0000 (16:59 +0300)]
AVRCP: Add support for settings changed event

This event can be registered by the CT to get notified when any setting
is changed.

Per spec every single setting must be sent so the CT can track settings
being added or removed.

11 years agoAVCTP: Reduce verbosity of PDU parsing
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:08 +0000 (16:59 +0300)]
AVCTP: Reduce verbosity of PDU parsing

This information is not really useful as debug and there are better
tools for sniffing traffic such as hcidump and wireshark.

11 years agoAVRCP: Fix not adding session to player's list of sessions
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:07 +0000 (16:59 +0300)]
AVRCP: Fix not adding session to player's list of sessions

If the session is not added in the list if the player gets
unregistered it will not be cleared from the session which might cause a
crash if the tries to access it.

11 years agoAVRCP: Don't respond with errors when no player is registered
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:06 +0000 (16:59 +0300)]
AVRCP: Don't respond with errors when no player is registered

Some devices w.g. Sony MW600 will stop using certain commands if an
error happen, so the code now just fake a player and once a real
player is registered it takes place of the fake one.

11 years agoAVRCP: Fix using void * for metadata values
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:05 +0000 (16:59 +0300)]
AVRCP: Fix using void * for metadata values

This replaces get_metadata callback with get_string and get_uint32
which uses proper types as return.

11 years agocontrol: Fix Control.Disconnect not generating any reply
Luiz Augusto von Dentz [Thu, 25 Oct 2012 13:59:04 +0000 (16:59 +0300)]
control: Fix Control.Disconnect not generating any reply

avctp_disconnect does disconnect immediatelly so there is no time to
set the pending message.

11 years agonetwork: Remove unnecessary field from connect_req
Mikel Astiz [Fri, 26 Oct 2012 05:55:29 +0000 (07:55 +0200)]
network: Remove unnecessary field from connect_req

The device pointer in struct connect_req can be completely removed since
the callback already receives such pointer, and the network_peer takes
care of the device refcounting.

11 years agosystemd: prevent duplicate logging messages in journal
Marti Raudsepp [Wed, 10 Oct 2012 15:59:29 +0000 (18:59 +0300)]
systemd: prevent duplicate logging messages in journal

By default, both stdout and syslog messages go to the systemd journal,
which results in duplicate messages being logged.

11 years agonetwork: Add missing btd_device reference counting
Johan Hedberg [Thu, 25 Oct 2012 10:41:22 +0000 (13:41 +0300)]
network: Add missing btd_device reference counting

11 years agoinput: Add profile .disconnect
Mikel Astiz [Fri, 19 Oct 2012 15:39:29 +0000 (17:39 +0200)]
input: Add profile .disconnect

Add the disconnect hook to the btd_profile.

11 years agoinput: Expose internal disconnection API
Mikel Astiz [Fri, 19 Oct 2012 15:39:28 +0000 (17:39 +0200)]
input: Expose internal disconnection API

Expose the same API exposed in D-Bus to disconnect devices.

11 years agoinput: Trivial function rename
Mikel Astiz [Fri, 19 Oct 2012 15:39:27 +0000 (17:39 +0200)]
input: Trivial function rename

Use the local_ name prefix for functions implementing the D-Bus API.

11 years agonetwork: Add network .connect and .disconnect
Mikel Astiz [Fri, 19 Oct 2012 15:39:22 +0000 (17:39 +0200)]
network: Add network .connect and .disconnect

Add the btd_profile hooks to connect and disconnect all three network
roles.

11 years agonetwork: Split Network into three btd_profile
Mikel Astiz [Fri, 19 Oct 2012 15:39:21 +0000 (17:39 +0200)]
network: Split Network into three btd_profile

Split the possible roles into three different btd_profile instances, one
role each, in accordance with the rest of the existing profiles.

11 years agonetwork: Expose internal connection API
Mikel Astiz [Fri, 19 Oct 2012 15:39:20 +0000 (17:39 +0200)]
network: 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 agonetwork: Trivial function rename
Mikel Astiz [Fri, 19 Oct 2012 15:39:19 +0000 (17:39 +0200)]
network: Trivial function rename

Avoid the connection_ prefix for local functions implementing the D-Bus
API.

11 years agonetwork: Specify id while registering server
Mikel Astiz [Fri, 19 Oct 2012 15:39:18 +0000 (17:39 +0200)]
network: Specify id while registering server

Only one type of server is being installed (BNEP_SVC_NAP), but the
server API actually supports having several of them. Therefore, it is
more accurate to specify BNEP_SVC_NAP in the manager's side.

11 years agoevent: Remove write of LastSeen info
Frédéric Danis [Wed, 24 Oct 2012 14:34:14 +0000 (16:34 +0200)]
event: Remove write of LastSeen info

11 years agoadapter: Move storage names to cache directory
Frédéric Danis [Wed, 24 Oct 2012 14:34:13 +0000 (16:34 +0200)]
adapter: Move storage names to cache directory

11 years agoTODO: Add entry to remove storage convertion function
Frédéric Danis [Wed, 24 Oct 2012 14:34:12 +0000 (16:34 +0200)]
TODO: Add entry to remove storage convertion function

11 years agoadapter: Move saved config to ini-file format
Frédéric Danis [Wed, 24 Oct 2012 14:34:11 +0000 (16:34 +0200)]
adapter: Move saved config to ini-file format

Read and write config file in ini-file format.
If the file can not be loaded, try to convert legacy configuration.

11 years agoadapter: Read mode in storage at init
Frédéric Danis [Wed, 24 Oct 2012 14:34:10 +0000 (16:34 +0200)]
adapter: Read mode in storage at init

Mgmt interface allows to change connectable and discoverable adapter
status even if the adapter is off. So both status are changed during
adapter init.
Remove on_mode from btd_adapter_get_mode(), as it is no more used.
Update src/mgmt.c and plugins/neard.c

11 years agoadapter: Read discoverable timeout in storage at init
Frédéric Danis [Wed, 24 Oct 2012 14:34:09 +0000 (16:34 +0200)]
adapter: Read discoverable timeout in storage at init

11 years agoadapter: Read pairable timeout in storage at init
Frédéric Danis [Wed, 24 Oct 2012 14:34:08 +0000 (16:34 +0200)]
adapter: Read pairable timeout in storage at init

11 years agoadapter: Move pairable read to load_config()
Frédéric Danis [Wed, 24 Oct 2012 14:34:07 +0000 (16:34 +0200)]
adapter: Move pairable read to load_config()

11 years agoadapter: Remove device class storage
Frédéric Danis [Wed, 24 Oct 2012 14:34:06 +0000 (16:34 +0200)]
adapter: Remove device class storage

11 years agoadaptername: Retrieve config name from adapter
Frédéric Danis [Wed, 24 Oct 2012 14:34:05 +0000 (16:34 +0200)]
adaptername: Retrieve config name from adapter

11 years agoadapter: Read name in storage at init
Frédéric Danis [Wed, 24 Oct 2012 14:34:04 +0000 (16:34 +0200)]
adapter: Read name in storage at init

11 years agodoc: Add settings storage documentation
Frédéric Danis [Wed, 24 Oct 2012 14:34:03 +0000 (16:34 +0200)]
doc: Add settings storage documentation

11 years agodoc: Fix typo in media API
Michael Knudsen [Tue, 23 Oct 2012 12:02:42 +0000 (14:02 +0200)]
doc: Fix typo in media API

11 years agodoc: Add missing info of peripheral setting to mgmt API
Johan Hedberg [Mon, 22 Oct 2012 15:53:37 +0000 (18:53 +0300)]
doc: Add missing info of peripheral setting to mgmt API

11 years agomgmt: Remove LE prefix from the peripheral setting
Johan Hedberg [Mon, 22 Oct 2012 15:47:43 +0000 (18:47 +0300)]
mgmt: Remove LE prefix from the peripheral setting

11 years agomgmt: Add support for LE peripheral mode
Johan Hedberg [Mon, 22 Oct 2012 09:43:43 +0000 (12:43 +0300)]
mgmt: Add support for LE peripheral mode

11 years agobtmgmt: Add basic EIR parsing
Johan Hedberg [Mon, 22 Oct 2012 10:01:12 +0000 (13:01 +0300)]
btmgmt: Add basic EIR parsing

11 years agocore: Remove unnecessary include from glib-helper.c
Johan Hedberg [Mon, 22 Oct 2012 09:46:28 +0000 (12:46 +0300)]
core: Remove unnecessary include from glib-helper.c

11 years agosap: Fix connected property fetching when not connected
Johan Hedberg [Fri, 19 Oct 2012 16:49:00 +0000 (19:49 +0300)]
sap: Fix connected property fetching when not connected

11 years agoattrib: Fix memory leak if att_data_list_alloc fails
Ludek Finstrle [Thu, 18 Oct 2012 08:39:21 +0000 (10:39 +0200)]
attrib: Fix memory leak if att_data_list_alloc fails

Fix for memory leak which was introduced in commit
f8619bef3406a2134082dc41c208105fe028c09f.

11 years agodoc: Update Health to BlueZ 5
Lucas De Marchi [Thu, 18 Oct 2012 22:03:51 +0000 (19:03 -0300)]
doc: Update Health to BlueZ 5

Adapt to the new DBus.Properties and cleanup the format used in this
documentation to be similar to the other profiles.

11 years agohealth: Convert HealthDevice to DBus.Properties
Lucas De Marchi [Thu, 18 Oct 2012 22:03:50 +0000 (19:03 -0300)]
health: Convert HealthDevice to DBus.Properties

11 years agohealth: Convert HealthChannel to DBus.Properties
Lucas De Marchi [Thu, 18 Oct 2012 22:03:49 +0000 (19:03 -0300)]
health: Convert HealthChannel to DBus.Properties

Also remove a needless strdup to send type property.

11 years agosap: Convert to DBus.Properties
Lucas De Marchi [Thu, 18 Oct 2012 22:03:48 +0000 (19:03 -0300)]
sap: Convert to DBus.Properties

11 years agosap: Fix usage of wrong struct in get_properties()
Lucas De Marchi [Thu, 18 Oct 2012 22:03:47 +0000 (19:03 -0300)]
sap: Fix usage of wrong struct in get_properties()

11 years agoinput: Fix not sending PropertiesChanged signal
Lucas De Marchi [Thu, 18 Oct 2012 22:03:46 +0000 (19:03 -0300)]
input: Fix not sending PropertiesChanged signal

11 years agocore: Update gdbus function calls
Lucas De Marchi [Wed, 17 Oct 2012 15:14:29 +0000 (12:14 -0300)]
core: Update gdbus function calls

Done by the following semantic patch, with manual tweaks afterwards due
to changes in 80-chars line breaks:

// <smpl>
@r1 @
expression E1;
@@
 g_dbus_pending_property_success(
-  E1,
   ...)

@r2 @
expression E1;
@@
 g_dbus_pending_property_error(
-  E1,
   ...)

@r3 @
expression E1;
@@
 g_dbus_pending_property_error_valist(
-  E1,
   ...)
// </smpl>

11 years agogdbus: Remove connection from pending_property functions
Lucas De Marchi [Wed, 17 Oct 2012 15:14:28 +0000 (12:14 -0300)]
gdbus: Remove connection from pending_property functions

The reply to a DBus.Properties.Set() method call should go through the
same D-Bus connection. Thus remove the DBusConnection parameter from the
following functions:

    - g_dbus_pending_property_success()
    - g_dbus_pending_property_error_valist()
    - g_dbus_pending_property_error()

11 years agoadapter: Fix memory leak on discovery cleanup
Anderson Lizardo [Wed, 17 Oct 2012 23:15:09 +0000 (20:15 -0300)]
adapter: Fix memory leak on discovery cleanup

During discovery cleanup, it was attempted to send a DevicesFound()
D-Bus signal for pending found devices, but adapter->discovery was set
to NULL before calling send_devices_found(), therefore it never sent any
signal (and there was a leak of discovery->pending list).

Fixes this memory leak when pairing two LE devices:

==1822== 8 bytes in 1 blocks are definitely lost in loss record 42 of
246
==1822==    at 0x482BE68: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==1822==    by 0x48869AA: standard_malloc (gmem.c:85)
==1822==    by 0x4886E42: g_malloc (gmem.c:159)
==1822==    by 0x489B26D: g_slice_alloc (gslice.c:1003)
==1822==    by 0x489C10A: g_slist_prepend (gslist.c:265)
==1822==    by 0x1855AE: adapter_update_found_devices (adapter.c:2846)
==1822==    by 0x191431: btd_event_device_found (event.c:260)
==1822==    by 0xBC01001A: ???
==1822==

11 years agotest: List only specified adapter's devices in list-devices
Johan Hedberg [Wed, 17 Oct 2012 14:38:38 +0000 (17:38 +0300)]
test: List only specified adapter's devices in list-devices

11 years agodevice: Fix modifying list while iterating
Mikel Astiz [Wed, 17 Oct 2012 10:07:09 +0000 (12:07 +0200)]
device: Fix modifying list while iterating

A list should not be modified while iterating on it, and in this case
the solution is trivial: the code is just trying to free the whole list
with a previous call to profile->device_remove() per list item.

11 years agoheartrate: Always write measurement CCC on discovery
Andrzej Kaczmarek [Wed, 17 Oct 2012 07:51:33 +0000 (09:51 +0200)]
heartrate: Always write measurement CCC on discovery

Measurement CCC is written during discovery only in case watcher is
registered and notifications shall be enabled. However, it may happen
that (e.g. during reconnection scenario) notifications are already
enabled on remote but watcher is no longer registered and we will
be receiving unwanted notifications.

This patch makes sure measurement CCC is written to proper value
every time it's discovered during connection.

11 years agodoc: Update to match latest BlueZ 5 API
Johan Hedberg [Wed, 17 Oct 2012 07:42:41 +0000 (10:42 +0300)]
doc: Update to match latest BlueZ 5 API

11 years agoadapter: Remove not used defines
Szymon Janc [Tue, 16 Oct 2012 10:12:59 +0000 (12:12 +0200)]
adapter: Remove not used defines

check_address and OFF_TIMER are not used anymore.

11 years agolib: Simplify str2ba function
Szymon Janc [Tue, 16 Oct 2012 10:12:58 +0000 (12:12 +0200)]
lib: Simplify str2ba function

Reverse loop iteration so that baswap call is not needed.

11 years agomgmt: Remove not used members from controller_info
Szymon Janc [Tue, 16 Oct 2012 10:12:57 +0000 (12:12 +0200)]
mgmt: Remove not used members from controller_info

notified, version, manufacturer and dev_class were not used for
anything usefull. For debug print reply can be used directly.

11 years agoinput: Remove not needed adapters list in manager
Szymon Janc [Tue, 16 Oct 2012 10:12:56 +0000 (12:12 +0200)]
input: Remove not needed adapters list in manager

adapters list is not used for anything usefull.

11 years agonetwork: Remove redundant struct network_peer members
Szymon Janc [Tue, 16 Oct 2012 10:12:55 +0000 (12:12 +0200)]
network: Remove redundant struct network_peer members

struct network_peer holds reference to btd_device so path, src and dst
can be accessed from it.

11 years agoaudio: Remove path from struct audio_device
Szymon Janc [Tue, 16 Oct 2012 10:12:54 +0000 (12:12 +0200)]
audio: Remove path from struct audio_device

struct audio_device is holding a reference to btd_device and path can
be easily taken from it when needed.

11 years agomgmt: Make mgmt_update_powered return void
Szymon Janc [Tue, 16 Oct 2012 10:12:53 +0000 (12:12 +0200)]
mgmt: Make mgmt_update_powered return void

mgmt_update_powered always returned 0 and this was never checked by
caller.

11 years agoaudio: Move btd_device unref after last use in device_free
Szymon Janc [Tue, 16 Oct 2012 10:12:52 +0000 (12:12 +0200)]
audio: Move btd_device unref after last use in device_free

btd_device should not be used after local reference was dropped.

11 years agodevice: Mark services as resolved also when loading from storage
Johan Hedberg [Tue, 16 Oct 2012 08:51:31 +0000 (11:51 +0300)]
device: Mark services as resolved also when loading from storage

11 years agocontrol: Add Control.Disconnect method
Luiz Augusto von Dentz [Mon, 15 Oct 2012 14:05:36 +0000 (16:05 +0200)]
control: Add Control.Disconnect method

This method can be used to disconnect AVRCP.

11 years agocontrol: Add Control.Connect API
Luiz Augusto von Dentz [Mon, 15 Oct 2012 14:05:35 +0000 (16:05 +0200)]
control: Add Control.Connect API

This method can be used to manually connect AVRCP when acting as a
controller.

11 years agocontrol: Add basic support for AVRCP 1.0 controller
Luiz Augusto von Dentz [Mon, 15 Oct 2012 14:05:34 +0000 (16:05 +0200)]
control: Add basic support for AVRCP 1.0 controller

11 years agoAVRCP: Add proper role init procedure
Luiz Augusto von Dentz [Mon, 15 Oct 2012 14:05:33 +0000 (16:05 +0200)]
AVRCP: Add proper role init procedure

11 years agoAVRCP: Fix handling TG PDUs as they were CT PDUs
Luiz Augusto von Dentz [Mon, 15 Oct 2012 14:05:32 +0000 (16:05 +0200)]
AVRCP: Fix handling TG PDUs as they were CT PDUs

PDU handling needs to different depending on the acting role.