OSDN Git Service
Marcel Holtmann [Fri, 2 Nov 2012 10:08:57 +0000 (11:08 +0100)]
monitor: Add a few more LE commands to the decoding
Marcel Holtmann [Fri, 2 Nov 2012 09:36:52 +0000 (10:36 +0100)]
monitor: Enable simple coloring
Marcel Holtmann [Fri, 2 Nov 2012 07:51:22 +0000 (08:51 +0100)]
monitor: Fix two minor typos
Marcel Holtmann [Fri, 2 Nov 2012 07:39:33 +0000 (08:39 +0100)]
monitor: Add more decoding of HCI commands and events
Marcel Holtmann [Fri, 2 Nov 2012 03:47:58 +0000 (04:47 +0100)]
lib: Fix EVT_CONN_COMPLETE_SIZE constant
Marcel Holtmann [Fri, 2 Nov 2012 02:29:50 +0000 (03:29 +0100)]
monitor: Add complete list for error descriptions
Luiz Augusto von Dentz [Wed, 31 Oct 2012 10:04:57 +0000 (12:04 +0200)]
AVCTP: Fix scope of transactions to be per channel
As per AVRCP spec:
"It should be noted that transaction labels are scoped to an AVCTP
channel, so an AVRCP specific AV/C command and an AVRCP specific
browsing command may be outstanding at the same time with the same
transaction label."
Marcel Holtmann [Thu, 1 Nov 2012 07:10:32 +0000 (08:10 +0100)]
monitor: Add some basic HCI command and event parsing
Marcel Holtmann [Thu, 1 Nov 2012 04:24:50 +0000 (21:24 -0700)]
monitor: Add support for full client handling and printing
Marcel Holtmann [Thu, 1 Nov 2012 01:42:50 +0000 (18:42 -0700)]
emulator: Handle requests 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
Marcel Holtmann [Thu, 1 Nov 2012 01:28:41 +0000 (18:28 -0700)]
monitor: Add support for reading btsnoop trace files
Frédéric Danis [Tue, 30 Oct 2012 17:05:28 +0000 (18:05 +0100)]
hcitool: Retrieve names from cache directory
Frédéric Danis [Tue, 30 Oct 2012 17:05:27 +0000 (18:05 +0100)]
input: Retrieve device name from device object
Frédéric Danis [Tue, 30 Oct 2012 17:05:26 +0000 (18:05 +0100)]
dbusoob: Set device name in device object
Johan Hedberg [Wed, 31 Oct 2012 09:04:31 +0000 (11:04 +0200)]
core: Make btd_event_remote_name local parameter const
Johan Hedberg [Wed, 31 Oct 2012 08:58:42 +0000 (10:58 +0200)]
core: Fix coding style in event.h (long lines)
Johan Hedberg [Wed, 31 Oct 2012 08:57:18 +0000 (10:57 +0200)]
core: Make remote name event parameters const
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.
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.
Frédéric Danis [Tue, 30 Oct 2012 17:05:23 +0000 (18:05 +0100)]
adapter: Simplify cached name storage
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.
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
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
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.
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.
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.
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.
Marcel Holtmann [Wed, 31 Oct 2012 03:03:06 +0000 (20:03 -0700)]
monitor: Store traces with new data link format
Marcel Holtmann [Wed, 31 Oct 2012 01:57:16 +0000 (18:57 -0700)]
monitor: Add support for server channels
Marcel Holtmann [Wed, 31 Oct 2012 01:14:06 +0000 (18:14 -0700)]
emulator: Add version and usage information
Marcel Holtmann [Wed, 31 Oct 2012 01:07:30 +0000 (18:07 -0700)]
emulator: Fix issue with remote disconnects
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.
Marcel Holtmann [Mon, 29 Oct 2012 23:09:38 +0000 (16:09 -0700)]
emulator: Handle the local AMP info command
Marcel Holtmann [Mon, 29 Oct 2012 23:09:14 +0000 (16:09 -0700)]
monitor: Add packet information for local AMP info response
Marcel Holtmann [Mon, 29 Oct 2012 22:49:30 +0000 (15:49 -0700)]
emulator: Create support for enabling AMP controllers
Marcel Holtmann [Mon, 29 Oct 2012 22:48:52 +0000 (15:48 -0700)]
hciattach: Allow creating AMP controller over UART
Marcel Holtmann [Mon, 29 Oct 2012 22:29:15 +0000 (15:29 -0700)]
emulator: Add type definition for AMP controller
Marcel Holtmann [Mon, 29 Oct 2012 22:12:03 +0000 (15:12 -0700)]
emulator: Add stub for LE single mode devices
Marcel Holtmann [Mon, 29 Oct 2012 22:01:43 +0000 (15:01 -0700)]
emulator: Allow specifying controller type
Marcel Holtmann [Mon, 29 Oct 2012 21:54:54 +0000 (14:54 -0700)]
emulator: Create unique addresses accross devices
Marcel Holtmann [Mon, 29 Oct 2012 21:44:16 +0000 (14:44 -0700)]
emulator: Ignore failures for device transports
Marcel Holtmann [Mon, 29 Oct 2012 21:42:03 +0000 (14:42 -0700)]
emulator: Add support for TCP server connections
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.
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)
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)
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.
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.
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.
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.
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.
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.
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.
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.
Johan Hedberg [Thu, 25 Oct 2012 10:41:22 +0000 (13:41 +0300)]
network: Add missing btd_device reference counting
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.
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.
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.
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.
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.
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.
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.
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.
Frédéric Danis [Wed, 24 Oct 2012 14:34:14 +0000 (16:34 +0200)]
event: Remove write of LastSeen info
Frédéric Danis [Wed, 24 Oct 2012 14:34:13 +0000 (16:34 +0200)]
adapter: Move storage names to cache directory
Frédéric Danis [Wed, 24 Oct 2012 14:34:12 +0000 (16:34 +0200)]
TODO: Add entry to remove storage convertion function
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.
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
Frédéric Danis [Wed, 24 Oct 2012 14:34:09 +0000 (16:34 +0200)]
adapter: Read discoverable 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
Frédéric Danis [Wed, 24 Oct 2012 14:34:07 +0000 (16:34 +0200)]
adapter: Move pairable read to load_config()
Frédéric Danis [Wed, 24 Oct 2012 14:34:06 +0000 (16:34 +0200)]
adapter: Remove device class storage
Frédéric Danis [Wed, 24 Oct 2012 14:34:05 +0000 (16:34 +0200)]
adaptername: Retrieve config name from adapter
Frédéric Danis [Wed, 24 Oct 2012 14:34:04 +0000 (16:34 +0200)]
adapter: Read name in storage at init
Frédéric Danis [Wed, 24 Oct 2012 14:34:03 +0000 (16:34 +0200)]
doc: Add settings storage documentation
Michael Knudsen [Tue, 23 Oct 2012 12:02:42 +0000 (14:02 +0200)]
doc: Fix typo in media API
Johan Hedberg [Mon, 22 Oct 2012 15:53:37 +0000 (18:53 +0300)]
doc: Add missing info of peripheral setting to mgmt API
Johan Hedberg [Mon, 22 Oct 2012 15:47:43 +0000 (18:47 +0300)]
mgmt: Remove LE prefix from the peripheral setting
Johan Hedberg [Mon, 22 Oct 2012 09:43:43 +0000 (12:43 +0300)]
mgmt: Add support for LE peripheral mode
Johan Hedberg [Mon, 22 Oct 2012 10:01:12 +0000 (13:01 +0300)]
btmgmt: Add basic EIR parsing
Johan Hedberg [Mon, 22 Oct 2012 09:46:28 +0000 (12:46 +0300)]
core: Remove unnecessary include from glib-helper.c
Johan Hedberg [Fri, 19 Oct 2012 16:49:00 +0000 (19:49 +0300)]
sap: Fix connected property fetching when not connected
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.
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.
Lucas De Marchi [Thu, 18 Oct 2012 22:03:50 +0000 (19:03 -0300)]
health: Convert HealthDevice 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.
Lucas De Marchi [Thu, 18 Oct 2012 22:03:48 +0000 (19:03 -0300)]
sap: Convert to DBus.Properties
Lucas De Marchi [Thu, 18 Oct 2012 22:03:47 +0000 (19:03 -0300)]
sap: Fix usage of wrong struct in get_properties()
Lucas De Marchi [Thu, 18 Oct 2012 22:03:46 +0000 (19:03 -0300)]
input: Fix not sending PropertiesChanged signal
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>
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()
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==
Johan Hedberg [Wed, 17 Oct 2012 14:38:38 +0000 (17:38 +0300)]
test: List only specified adapter's devices in list-devices
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.
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.
Johan Hedberg [Wed, 17 Oct 2012 07:42:41 +0000 (10:42 +0300)]
doc: Update to match latest BlueZ 5 API
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.
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.
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.
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.