OSDN Git Service
Andrei Emeltchenko [Tue, 10 Sep 2013 13:11:37 +0000 (16:11 +0300)]
codingstyle: Change __FUNCTION__ to __func__
The __func__ macro is part of the C99 standard whereas __FUNCTION__ is a
legacy gcc specific alias for it:
http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
Additionally, checkpatch.pl that's commonly used to verify coding style
also recommends to use __func__ instead of __FUNCTION__.
Johan Hedberg [Wed, 11 Sep 2013 07:54:41 +0000 (10:54 +0300)]
emulator: Add missing HCI commands to the supported commands response
Johan Hedberg [Wed, 11 Sep 2013 07:54:22 +0000 (10:54 +0300)]
emulator: Disallow SCO HCI commands on LE-only controllers
Johan Hedberg [Wed, 11 Sep 2013 07:53:56 +0000 (10:53 +0300)]
emulator: Disallow HCI_Write_Current_IAP_LAP for LE-only controllers
Marcel Holtmann [Wed, 11 Sep 2013 07:04:35 +0000 (00:04 -0700)]
emulator: Add support for reading local out-of-band data
Marcel Holtmann [Wed, 11 Sep 2013 04:12:05 +0000 (21:12 -0700)]
emulator: Add options to usage description
Luiz Augusto von Dentz [Tue, 10 Sep 2013 11:38:55 +0000 (14:38 +0300)]
obexd/bluetooth: Fix error on register_profile
The error happens whenever RegisterProfile fails the interface is not
unregistered causing any subsequent call to register_profile function
to fail:
obexd[944]: D-Bus failed to register /org/bluez/obex/00005005_0000_1000_8000_0002ee000001
obexd[944]: bluetooth: Failed to register profile (null)
Marcel Holtmann [Mon, 9 Sep 2013 21:21:49 +0000 (14:21 -0700)]
build: Check for clock_gettime with -lrt
Luiz Augusto von Dentz [Mon, 19 Aug 2013 14:12:04 +0000 (17:12 +0300)]
obexd: Make use of g_dbus_send_message*
This replaces dbus_connection_send* with g_dbus_send_message* which do
not alter message order.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 12:45:11 +0000 (15:45 +0300)]
audio/media: Make use of g_dbus_send_message_with_reply
This replaces dbus_connection_send_with_reply with
g_dbus_send_message_with_reply which does not alter message order.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 14:17:17 +0000 (17:17 +0300)]
neard: Make use of g_dbus_send_message_with_reply
This replaces dbus_connection_send_with_reply with
g_dbus_send_message_with_reply which does not alter message order.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 12:41:49 +0000 (15:41 +0300)]
core: Make use of g_dbus_send_message_with_reply
This replaces dbus_connection_send_with_reply with
g_dbus_send_message_with_reply which does not alter message order.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 13:54:35 +0000 (16:54 +0300)]
gdbus: Fix emitting PropertiesChanged twice
This fixes double emission of PropertiesChanged introduced by flushing
changes, the flushing can happen during the pending processing so the
pending_prop flag needs to be updated in the beginning and the list of
properties can be freed before g_dbus_send_message as it is not required
anymore.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 13:05:15 +0000 (16:05 +0300)]
gdbus: Avoid calling dbus_connection_send*
dbus_connection_send* should not be called directly except by
g_dbus_send_message.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 12:25:57 +0000 (15:25 +0300)]
gdbus: Add g_dbus_send_message_with_reply
g_dbus_send_message_with_reply flushes pending signals before calling
dbus_connection_send_with_reply so it does not alter the message order
Luiz Augusto von Dentz [Mon, 19 Aug 2013 11:39:28 +0000 (14:39 +0300)]
gdbus: Fix sending ObjectManager/Properties signals out of order
In some cases the order of the messages is altered when a message is
sent without processing the pending signals first, currently this affect
client_check_order unit test:
/gdbus/client_check_order: **
ERROR:unit/test-gdbus-client.c:795:property_check_order: assertion failed: (g_strcmp0(string, "value1") == 0)
As can be observed the value of the property is not yet updated because the
signal it is still pending, once this fix is applied the test pass:
/gdbus/client_check_order: OK
Note that the flushing only works when g_dbus_send_message is used so
places where dbus_connection_send and other variants are called directly
may still change the order.
Luiz Augusto von Dentz [Mon, 19 Aug 2013 11:38:46 +0000 (14:38 +0300)]
unit: Add gdbus/client_check_order
Luiz Augusto von Dentz [Mon, 19 Aug 2013 13:49:51 +0000 (16:49 +0300)]
build: Fix not rebuilding bluetoothd if gdbus changes
src_bluetoothd_DEPENDENCIES should list all local libraries including gdbus
otherwise it does not get relinked whenever gdbus changes.
Frédéric Dalleau [Fri, 9 Aug 2013 15:42:55 +0000 (17:42 +0200)]
sco-tester: Update ECONNABORTED to EOPNOTSUPP
Kernel interface has evolved in between.
Marcel Holtmann [Mon, 9 Sep 2013 05:29:19 +0000 (22:29 -0700)]
monitor: Decode page scan and page scan period mode commands
Marcel Holtmann [Mon, 9 Sep 2013 05:28:55 +0000 (22:28 -0700)]
monitor: Add definitions for page scan and page scan period mode
Marcel Holtmann [Mon, 9 Sep 2013 05:15:15 +0000 (22:15 -0700)]
monitor: Add more details to Set Event Filter decoding
Marcel Holtmann [Sun, 8 Sep 2013 08:51:15 +0000 (01:51 -0700)]
monitor: Add decoding for number of supported IAC command
Marcel Holtmann [Sun, 8 Sep 2013 08:48:30 +0000 (01:48 -0700)]
monitor: Add definition for number of supported IAC command
Marcel Holtmann [Sun, 8 Sep 2013 08:48:06 +0000 (01:48 -0700)]
monitor: Add decoding for link supervision timeout commands
Marcel Holtmann [Sun, 8 Sep 2013 08:47:42 +0000 (01:47 -0700)]
monitor: Add definitions for link supervision timeout commands
Marcel Holtmann [Sun, 8 Sep 2013 08:30:59 +0000 (01:30 -0700)]
monitor: Fix decoding of link policy settings command
Marcel Holtmann [Sun, 8 Sep 2013 04:36:38 +0000 (21:36 -0700)]
emulator: Add support for LE test commands
Marcel Holtmann [Sun, 8 Sep 2013 04:28:34 +0000 (21:28 -0700)]
emulator: Add emulation a few more HCI commands
Marcel Holtmann [Sun, 8 Sep 2013 04:27:59 +0000 (21:27 -0700)]
monitor: Decode host buffer size and device under test commands
Marcel Holtmann [Sun, 8 Sep 2013 04:27:36 +0000 (21:27 -0700)]
monitor: Decode inquiry scan activity commands
Marcel Holtmann [Sun, 8 Sep 2013 04:26:47 +0000 (21:26 -0700)]
monitor: Decode security mode 3 auth and encrypt commands
Marcel Holtmann [Sun, 8 Sep 2013 04:23:52 +0000 (21:23 -0700)]
monitor: Add some missing HCI command definitions
Marcel Holtmann [Sat, 7 Sep 2013 23:35:22 +0000 (16:35 -0700)]
emulator: Add support for host buffer size and LE rand commands
Marcel Holtmann [Sat, 7 Sep 2013 23:34:24 +0000 (16:34 -0700)]
monitor: Add definition for host buffer size command
David Herrmann [Mon, 2 Sep 2013 11:58:09 +0000 (13:58 +0200)]
hog: ignore UHID-setup events and document why
The UHID_{START,STOP,OPEN,CLOSE} events should be ignored by us to avoid
triggering the warn(). It is safe to do that. Add few comments that
explain why we don't have to handle these.
Johan Hedberg [Thu, 5 Sep 2013 11:24:07 +0000 (14:24 +0300)]
monitor: Fix minor white space issues in header
Marcel Holtmann [Wed, 4 Sep 2013 04:59:45 +0000 (21:59 -0700)]
tools: Add example utility to demonstrate user channel usage
Marcel Holtmann [Wed, 4 Sep 2013 02:04:54 +0000 (19:04 -0700)]
tools: Make parameter argument variables const
Luiz Augusto von Dentz [Wed, 21 Aug 2013 11:06:09 +0000 (14:06 +0300)]
core: Fix emitting empty Device1.UUIDs property
In case there is a incoming connection but services has not been
resolved the UUID of the profile being connected is automatically added
using btd_device_add_uuid which does update uuids not eir_uuids which is
used if svc_resolved is false.
To fix this the code will now fallback to uuids field whenever eir_uuids is
empty so uuids added with btd_device_add_uuid previous to services being
resolved should appear in UUIDs property.
Marcel Holtmann [Mon, 2 Sep 2013 21:33:30 +0000 (14:33 -0700)]
tools: Add command line options for btattach utility
Marcel Holtmann [Mon, 2 Sep 2013 18:47:27 +0000 (11:47 -0700)]
build: Add test-driver to maintainer clean process
Marcel Holtmann [Mon, 2 Sep 2013 18:44:27 +0000 (11:44 -0700)]
monitor: Add support for printing UUID-128 in ATT
Marcel Holtmann [Mon, 2 Sep 2013 18:43:57 +0000 (11:43 -0700)]
monitor: Fix format string for UUID-128 print out
Marcel Holtmann [Mon, 2 Sep 2013 18:25:54 +0000 (11:25 -0700)]
build: Check for clock_gettime and pthread_create
Marcel Holtmann [Mon, 2 Sep 2013 18:17:05 +0000 (11:17 -0700)]
lib: Add definition for HCI_CHANNEL_USER
Marcel Holtmann [Mon, 2 Sep 2013 17:31:22 +0000 (10:31 -0700)]
emulator: Filter for valid packet types from /dev/vhci
Luiz Augusto von Dentz [Mon, 2 Sep 2013 08:13:40 +0000 (11:13 +0300)]
obexd: Fix disconnecting underline transport before processing operations
The transport connection should only be dropped once all references to
the session are released otherwise some pending operations may not be
processed and the session will not be freed.
Christian Fetzer [Thu, 22 Aug 2013 16:08:41 +0000 (18:08 +0200)]
obexd: Add property changed signals for 'org.bluez.obex.Message1'
This patch adds property changed signal emissions in case message properties
change on the server.
Christian Fetzer [Fri, 30 Aug 2013 12:45:12 +0000 (14:45 +0200)]
obexd: Add property Folder to MAP message
Christian Fetzer [Fri, 30 Aug 2013 12:45:11 +0000 (14:45 +0200)]
obexd: Add obc_session_get_folder function
This patch extends client session by the tracking of the current folder.
The current folder can be accessed by obc_session_get_current_folder.
This allows drivers to add a folder property to browsed objects so that
the application doesn't have to keep track of the folder an object
belongs to.
Marcel Holtmann [Wed, 28 Aug 2013 21:15:22 +0000 (14:15 -0700)]
build: Remove all checks for USB library support
Marcel Holtmann [Wed, 28 Aug 2013 21:11:28 +0000 (14:11 -0700)]
tools: Remove libusb dependency from hid2hci
Marcel Holtmann [Wed, 28 Aug 2013 21:10:59 +0000 (14:10 -0700)]
tools: Fix a few USB handling issues within bccmd utility
Marcel Holtmann [Wed, 28 Aug 2013 20:21:44 +0000 (13:21 -0700)]
build: Remove extra checks for libusb usage of bccmd
Marcel Holtmann [Wed, 28 Aug 2013 20:21:02 +0000 (13:21 -0700)]
tools: Access USB device directly from bccmd without libusb
Marcel Holtmann [Wed, 28 Aug 2013 04:26:48 +0000 (21:26 -0700)]
shared: Fix constants for extended btsnoop types
Marcel Holtmann [Wed, 28 Aug 2013 02:39:05 +0000 (19:39 -0700)]
monitor: Fix minor typo in command description
Marcel Holtmann [Wed, 28 Aug 2013 02:36:59 +0000 (19:36 -0700)]
monitor: Remove some confusing comments
Marcel Holtmann [Wed, 28 Aug 2013 02:31:43 +0000 (19:31 -0700)]
monitor: Add support for decoding inquiry scan type commands
Marcel Holtmann [Wed, 28 Aug 2013 02:31:15 +0000 (19:31 -0700)]
monitor: Add structures for inquiry scan type commands
Marcel Holtmann [Wed, 28 Aug 2013 02:22:00 +0000 (19:22 -0700)]
monitor: Add support for AFH classification and assessment commands
Marcel Holtmann [Wed, 28 Aug 2013 02:21:28 +0000 (19:21 -0700)]
emulator: Fix up AFH channel assessment structures
Marcel Holtmann [Wed, 28 Aug 2013 01:57:10 +0000 (18:57 -0700)]
monitor: Add support for decoding Write Inquiry TX Power Level command
Marcel Holtmann [Wed, 28 Aug 2013 01:56:32 +0000 (18:56 -0700)]
monitor: Add structure for writing inquiry tx power level
Marcel Holtmann [Wed, 28 Aug 2013 01:44:28 +0000 (18:44 -0700)]
monitor: Add support for decoding HCI Read Local OOB Data command
Marcel Holtmann [Wed, 28 Aug 2013 01:43:57 +0000 (18:43 -0700)]
monitor: Add structure for local out-of-band data details
Marcel Holtmann [Tue, 27 Aug 2013 23:42:56 +0000 (16:42 -0700)]
monitor: Add support for decoding failed contact counter commands
Marcel Holtmann [Tue, 27 Aug 2013 23:42:37 +0000 (16:42 -0700)]
monitor: Add structures for failed contact counters
Marcel Holtmann [Tue, 27 Aug 2013 21:56:34 +0000 (14:56 -0700)]
monitor: Add support for decoding HCI Read Channel Map command
Marcel Holtmann [Tue, 27 Aug 2013 21:55:52 +0000 (14:55 -0700)]
monitor: Add structures for HCI channel map command
Marcel Holtmann [Tue, 27 Aug 2013 21:32:15 +0000 (14:32 -0700)]
monitor: Add support for decoding Read RSSI and Read Link Quality
Marcel Holtmann [Tue, 27 Aug 2013 21:31:44 +0000 (14:31 -0700)]
monitor: Add structures for RSSI and link quality commands
Marcel Holtmann [Tue, 27 Aug 2013 21:12:59 +0000 (14:12 -0700)]
monitor: Add support for decoding HCI Read Clock command
Marcel Holtmann [Tue, 27 Aug 2013 21:12:25 +0000 (14:12 -0700)]
monitor: Add structures for HCI read clock command
Christian Fetzer [Thu, 22 Aug 2013 16:08:40 +0000 (18:08 +0200)]
obexd: Use g_dbus_get_properties when parsing MAP-msg-listing
Currently the message D-Bus properties for the ListMessages response are put
together manually in the parse_* functions unsing obex_dbus_dict_append.
This patch simplifies it by calling g_dbus_get_properties for every message.
Christian Fetzer [Thu, 22 Aug 2013 16:07:49 +0000 (18:07 +0200)]
obexd: Fix memleak when unregistering MAP event handler
96 bytes in 3 blocks are definitely lost in loss record 217 of 310
at 0x4C29E84: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x5977858: g_malloc0 (in /usr/lib/libglib-2.0.so.0.3600.3)
by 0x433A87: map_register_event_handler (map-event.c:76)
by 0x4324C1: set_notification_registration (map.c:1722)
by 0x4325BB: map_probe (map.c:1801)
by 0x42D55C: obc_session_register (session.c:862)
by 0x42BE4B: create_callback (manager.c:100)
by 0x42CA0D: connect_cb (session.c:281)
by 0x4191CB: handle_response (gobex.c:949)
by 0x4196F0: incoming_data (gobex.c:1192)
by 0x5971DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
by 0x59720F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
Marcel Holtmann [Mon, 26 Aug 2013 03:17:23 +0000 (20:17 -0700)]
monitor: Decode missing fields of link layer connect request
Marcel Holtmann [Mon, 26 Aug 2013 02:45:46 +0000 (19:45 -0700)]
monitor: Add complete decoding of LL control PDUs
Marcel Holtmann [Mon, 26 Aug 2013 02:45:08 +0000 (19:45 -0700)]
monitor: Add LL control PDU constants and structures
Marcel Holtmann [Mon, 26 Aug 2013 02:41:28 +0000 (19:41 -0700)]
monitor: Export printing functions for LL features and channel map
Marcel Holtmann [Mon, 26 Aug 2013 01:59:35 +0000 (18:59 -0700)]
monitor: Export printing functions for version and company strings
Marcel Holtmann [Sun, 25 Aug 2013 23:12:17 +0000 (16:12 -0700)]
monitor: Use Bluetooth monitor type for HCI traces
Marcel Holtmann [Sun, 25 Aug 2013 19:20:57 +0000 (12:20 -0700)]
tools: Update magic definition for BTSnoop file format
Marcel Holtmann [Sun, 25 Aug 2013 18:20:20 +0000 (11:20 -0700)]
tools: Fix typo in error message
Marcel Holtmann [Sun, 25 Aug 2013 18:19:05 +0000 (11:19 -0700)]
build: Include btsnoop and PCAP file handling functions
Marcel Holtmann [Sun, 25 Aug 2013 18:18:22 +0000 (11:18 -0700)]
shared: Add functions for PCAP file handling
Marcel Holtmann [Sun, 25 Aug 2013 18:17:04 +0000 (11:17 -0700)]
shared: Add functions for btsnoop file handling
Marcel Holtmann [Sun, 25 Aug 2013 18:11:46 +0000 (11:11 -0700)]
monitor: Overwrite existing link layer access addresses
Marcel Holtmann [Sat, 24 Aug 2013 03:43:01 +0000 (20:43 -0700)]
monitor: Add support for LMP decoding
Marcel Holtmann [Sat, 24 Aug 2013 03:35:15 +0000 (20:35 -0700)]
monitor: Add support for decoding link layer packets
Marcel Holtmann [Sat, 24 Aug 2013 03:33:57 +0000 (20:33 -0700)]
monitor: Fix printing of physical packet from simulation
Marcel Holtmann [Sat, 24 Aug 2013 03:33:01 +0000 (20:33 -0700)]
monitor: Add label parameter to address printing function
Marcel Holtmann [Fri, 23 Aug 2013 17:58:52 +0000 (10:58 -0700)]
monitor: Move btsnoop file creating into control handling
Marcel Holtmann [Fri, 23 Aug 2013 16:52:49 +0000 (09:52 -0700)]
tools: Use btsnoop constants in conversion utility
Marcel Holtmann [Fri, 23 Aug 2013 08:05:49 +0000 (01:05 -0700)]
monitor: Export function for printing LE addresses
Marcel Holtmann [Fri, 23 Aug 2013 07:54:51 +0000 (00:54 -0700)]
monitor: Export function for print advertising data
Marcel Holtmann [Thu, 22 Aug 2013 06:06:02 +0000 (23:06 -0700)]
unit: Add test case for link layer CRC functions
Marcel Holtmann [Thu, 22 Aug 2013 06:04:59 +0000 (23:04 -0700)]
monitor: Add functions for link layer CRC calculations
Luiz Augusto von Dentz [Wed, 21 Aug 2013 10:49:09 +0000 (13:49 +0300)]
test/test-nap: Fix interface name