OSDN Git Service
Marcel Holtmann [Mon, 14 Jan 2013 02:39:31 +0000 (18:39 -0800)]
monitor: Add UUID values for Characteristic Descriptors
Marcel Holtmann [Mon, 14 Jan 2013 02:37:37 +0000 (18:37 -0800)]
monitor: Add UUID values for Characteristic Descriptions
Marcel Holtmann [Mon, 14 Jan 2013 02:07:46 +0000 (18:07 -0800)]
monitor: Fix the singular entry vs plural entries
Marcel Holtmann [Mon, 14 Jan 2013 02:03:37 +0000 (18:03 -0800)]
monitor: Decode the minor class field for major class phone
Marcel Holtmann [Mon, 14 Jan 2013 01:59:24 +0000 (17:59 -0800)]
monitor: Decode 16-bit and 32-bit UUID values from EIR data
Marcel Holtmann [Mon, 14 Jan 2013 01:45:44 +0000 (17:45 -0800)]
monitor: Add more ATT protocol decodings
Marcel Holtmann [Sun, 13 Jan 2013 23:57:40 +0000 (15:57 -0800)]
monitor: Print manufacturer name from EIR data
Marcel Holtmann [Sun, 13 Jan 2013 23:49:39 +0000 (15:49 -0800)]
monitor: Print detailed class of device from EIR data
Marcel Holtmann [Sun, 13 Jan 2013 23:47:41 +0000 (15:47 -0800)]
monitor: Print strings for advertising data flags
Marcel Holtmann [Sun, 13 Jan 2013 23:17:53 +0000 (15:17 -0800)]
lib: Update list of company identifiers
Marcel Holtmann [Sun, 13 Jan 2013 23:13:24 +0000 (15:13 -0800)]
tools: Add entry for COOKOO watch product ID
The product ID for the COOKOO watch is from the Bluetrek manufacturer ID
and it is a little bit weird. It is assumed this is on purpose and not
some leftover from potential Bluetrek example code they used.
Marcel Holtmann [Sun, 13 Jan 2013 23:12:34 +0000 (15:12 -0800)]
emulator: Add command line switch for local HCI virtual device
Marcel Holtmann [Sun, 13 Jan 2013 03:00:10 +0000 (19:00 -0800)]
unit: Add advertising data from Citizen Proximity watch for testing
Marcel Holtmann [Sat, 12 Jan 2013 01:53:03 +0000 (17:53 -0800)]
shared: Resetting watch identifier is done in the destroy handler
Marcel Holtmann [Sat, 12 Jan 2013 00:02:37 +0000 (16:02 -0800)]
shared: Use protocol family constant instead of address family
Johan Hedberg [Fri, 11 Jan 2013 22:12:25 +0000 (00:12 +0200)]
tester: Add -l command line switch for listing test cases
Johan Hedberg [Fri, 11 Jan 2013 21:48:36 +0000 (23:48 +0200)]
tester: Add -p option to filter which test to be executed
Marcel Holtmann [Fri, 11 Jan 2013 21:54:30 +0000 (13:54 -0800)]
shared: Remove line with one single empty space in it
Marcel Holtmann [Fri, 11 Jan 2013 19:07:49 +0000 (11:07 -0800)]
Release 5.1
Marcel Holtmann [Fri, 11 Jan 2013 19:01:32 +0000 (11:01 -0800)]
core: Add comment about loading empty key lists into the kernel
Marcel Holtmann [Fri, 11 Jan 2013 18:37:24 +0000 (10:37 -0800)]
build: Update library version
Marcel Holtmann [Fri, 11 Jan 2013 17:45:40 +0000 (09:45 -0800)]
obexd: Don't bother with trying to handle SIGPIPE
Luiz Augusto von Dentz [Fri, 11 Jan 2013 14:19:09 +0000 (16:19 +0200)]
AVRCP: Fix crash when MediaPlayer1 is disabled
When MediaPlayer1 is disabled we should not proceed with getting
remote capabilities but switch back to 1.0 mode.
Johan Hedberg [Fri, 11 Jan 2013 14:00:01 +0000 (16:00 +0200)]
emulator: Add support for HCI_LE_Set_Advertising_Data command
Johan Hedberg [Fri, 11 Jan 2013 13:40:10 +0000 (15:40 +0200)]
tools: Add HCI command monitoring for mgmt link security test
Johan Hedberg [Fri, 11 Jan 2013 13:35:27 +0000 (15:35 +0200)]
tools: Add mgmt test case for link security when powered on
Johan Hedberg [Fri, 11 Jan 2013 13:10:30 +0000 (15:10 +0200)]
tools: Add HCI command monitoring to discoverable on/off tests
Johan Hedberg [Fri, 11 Jan 2013 12:38:08 +0000 (14:38 +0200)]
tools: Add mgmt test case for discoverable off while powered
Johan Hedberg [Fri, 11 Jan 2013 12:31:44 +0000 (14:31 +0200)]
tools: Fix discoverable off test case name in logs
Johan Hedberg [Fri, 11 Jan 2013 12:21:39 +0000 (14:21 +0200)]
tools: Add mgmt test for setting connectable when powered on
Johan Hedberg [Fri, 11 Jan 2013 11:15:29 +0000 (13:15 +0200)]
tools: Add basic HCI command monitoring callback to mgmt-tester
Johan Hedberg [Fri, 11 Jan 2013 10:43:27 +0000 (12:43 +0200)]
tools: Add set_link_security tests to mgmt-tester
Marcel Holtmann [Fri, 11 Jan 2013 04:06:14 +0000 (20:06 -0800)]
unit: Providing empty info() implementation is no longer needed
Marcel Holtmann [Fri, 11 Jan 2013 04:05:51 +0000 (20:05 -0800)]
core: Turn message about device id into debug statement
Anderson Lizardo [Tue, 8 Jan 2013 15:46:26 +0000 (11:46 -0400)]
build: Fix --disable-optimization configure option
On commit
cc9e4e7cae0379864ea06038d92bf7ecc192bba7, this flag was
mistakenly replaced with the behavior of the old --enable-fortify
option.
This patch restores the "-O0" flag when --disable-optimization is used.
Unfortunately, this is not enough to disable build optimization. By
default, autoconf adds -O2 to CFLAGS if the compiler is GCC. AM_CFLAGS
(where -O0 is added with --disable-optimization) is passed as argument
to GCC before autoconf CFLAGS, so it is not possible to override the
default -O2. One solution is to use:
CFLAGS= ./configure --disable-optimization
i.e. remove -O2 from CFLAGS, and let autoconf add -O0.
Anderson Lizardo [Tue, 8 Jan 2013 15:46:27 +0000 (11:46 -0400)]
attrib: Fix compilation errors when compiled without optimization
Fix these build errors:
attrib/att.c: In function ‘dec_read_by_grp_req’:
attrib/att.c:165:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c:170:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c: In function ‘dec_read_by_type_req’:
attrib/att.c:393:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c:402:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
Luiz Augusto von Dentz [Thu, 10 Jan 2013 16:59:53 +0000 (18:59 +0200)]
tools: Fix using DBusBasicValue
DBusBasicValue needs a more recent libdbus so use const void * instead
Luiz Augusto von Dentz [Tue, 8 Jan 2013 12:30:41 +0000 (14:30 +0200)]
tools: Update mpris-player to register using MPRIS interface
In addition fix not supporting new APIs for getting the adapter.
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:54:12 +0000 (10:54 +0200)]
media: Implement new RegisterPlayer API
RegisterPlayer now uses MPRIS spec
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:47:55 +0000 (10:47 +0200)]
test: Update test-player to register using MPRIS interface
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:43:03 +0000 (10:43 +0200)]
media-api: Change RegisterPlayer to use MPRIS spec
RegisterPlayer now expect registered paths to implement
org.mpris.MediaPlayer2.player interface accourding to MPRIS spec:
http://specifications.freedesktop.org/mpris-spec/latest/
Luiz Augusto von Dentz [Sat, 5 Jan 2013 13:25:49 +0000 (15:25 +0200)]
tools: Adapt mpris-player to new API of MediaPlayer1
In addition fix using Manager1 interface which no longer exists
Luiz Augusto von Dentz [Sat, 5 Jan 2013 11:51:13 +0000 (13:51 +0200)]
test: Adapt simple-player to the new API of MediaPlayer1
Luiz Augusto von Dentz [Sat, 5 Jan 2013 11:44:19 +0000 (13:44 +0200)]
media: Adapt RegisterPlayer to changes in MediaPlayer1
This adds support for Track being a property and the removal of
GetTrack and TrackChanged.
Luiz Augusto von Dentz [Fri, 4 Jan 2013 12:10:49 +0000 (14:10 +0200)]
player: Add Device property
Device property indicates which device object the player belongs to.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 15:08:21 +0000 (17:08 +0200)]
AVRCP: Always create a controller player even for version 1.0
Since the buttons controls are now part of the MediaPlayer1 it can be used
even with AVRCP version 1.0.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:51:00 +0000 (16:51 +0200)]
player: Fix documentation to use TrackNumber in track metadata
Using Track key inside a Track property would be pointless, despite the
documentation and code where also inconsistent.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:39:33 +0000 (16:39 +0200)]
player: Add support for button controls
This adds support for buttons controls in MediaPlayer1
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:36:37 +0000 (16:36 +0200)]
player: Remove GetTrack and TrackChanged
This turn track metadata into a property called "Track" of MediaPlayer1
Luiz Augusto von Dentz [Wed, 2 Jan 2013 12:09:41 +0000 (14:09 +0200)]
media-api: Add playback control methods to MediaPlayer1
This adds methods such as Play, Pause directly in MediaPlayer1, in
addition to that Track is now turn into a property to take advantage of
ObjectManager and document the interface as experimental.
Anderson Lizardo [Thu, 10 Jan 2013 13:15:09 +0000 (09:15 -0400)]
unit: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:08 +0000 (09:15 -0400)]
attrib: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:07 +0000 (09:15 -0400)]
proximity: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:06 +0000 (09:15 -0400)]
time: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:05 +0000 (09:15 -0400)]
alert: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:04 +0000 (09:15 -0400)]
scanparam: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:03 +0000 (09:15 -0400)]
gatt: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:02 +0000 (09:15 -0400)]
input: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:01 +0000 (09:15 -0400)]
plugins: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:00 +0000 (09:15 -0400)]
core: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 12:30:30 +0000 (08:30 -0400)]
unit: Avoid D-Bus calling _exit() during SDP tests
While running tests, the D-Bus library was set to call _exit() when the
client leaves the bus. This caused the second test to be interrupted
without providing a PASS/FAIL result. This was confirmed by running
test-sdp with DBUS_VERBOSE=1.
This commit disables this behavior, which does not exist on BlueZ
because g_dbus_set_disconnect_function() implicitly does this.
Marcel Holtmann [Thu, 10 Jan 2013 07:11:44 +0000 (23:11 -0800)]
tools: Fix up testing of discoverable management command
Marcel Holtmann [Thu, 10 Jan 2013 06:59:34 +0000 (22:59 -0800)]
doc: Clarify the error codes of some management commands
Marcel Holtmann [Thu, 10 Jan 2013 04:32:40 +0000 (20:32 -0800)]
build: Enable Bluetooth library for distribution builds
Marcel Holtmann [Thu, 10 Jan 2013 04:32:12 +0000 (20:32 -0800)]
build: Only install old legacy Bluetooth library headers
Marcel Holtmann [Thu, 10 Jan 2013 04:31:18 +0000 (20:31 -0800)]
monitor: Fix includes from Bluetooth library
Marcel Holtmann [Thu, 10 Jan 2013 04:31:07 +0000 (20:31 -0800)]
tools: Fix includes for mgmt.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:43 +0000 (20:30 -0800)]
obexd: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:30 +0000 (20:30 -0800)]
profiles: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:09 +0000 (20:30 -0800)]
core: Fix includes for mgmt.h and uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 03:45:59 +0000 (19:45 -0800)]
shared: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:17 +0000 (19:45 -0800)]
tools: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:44:00 +0000 (19:44 -0800)]
lib: Remove all management settings helpers since they are unused now
Marcel Holtmann [Thu, 10 Jan 2013 03:43:19 +0000 (19:43 -0800)]
core: Fix setting up discoverable from stored settings on power on
Marcel Holtmann [Thu, 10 Jan 2013 03:13:07 +0000 (19:13 -0800)]
lib: Remove current unused management settings helpers
Marcel Holtmann [Thu, 10 Jan 2013 03:00:45 +0000 (19:00 -0800)]
shared: Use < for management commands and > for events
Marcel Holtmann [Thu, 10 Jan 2013 02:56:31 +0000 (18:56 -0800)]
core: Add support for graceful shutdown of adapters
Anderson Lizardo [Thu, 10 Jan 2013 01:03:28 +0000 (21:03 -0400)]
unit: Print D-Bus error message in verbose mode
If g_dbus_setup_private() fails (e.g. a session bus is not available,
and there is no X11 for dbus-launch to work), the tests are silently
skipped.
With this commit, the D-Bus error message is also printed if verbose
mode is enabled. The test is still skipped as before.
Marcel Holtmann [Thu, 10 Jan 2013 00:55:05 +0000 (16:55 -0800)]
core: Don't bother with return value for setting device class
Marcel Holtmann [Thu, 10 Jan 2013 00:50:04 +0000 (16:50 -0800)]
core: Don't bother with major and minor class for LE only adapters
In case the adapter supports only Low Energy, don't even try to set
major and minor classes for the kernel.
Marcel Holtmann [Thu, 10 Jan 2013 00:01:12 +0000 (16:01 -0800)]
core: Load link keys and long term keys only when controller supports it
Check for BR/EDR support before loading link keys and check for LE support
before loading long term keys.
This has the nice benefit that for BR/EDR only controllers the warning
message from the kernel bug for loading long term keys is gone now. And
only systems with dual mode controllers will expierence it. Makes it a
little bit less confusing.
Marcel Holtmann [Wed, 9 Jan 2013 20:03:45 +0000 (12:03 -0800)]
doc: Add missing empty return parameters for load long term keys
Marcel Holtmann [Wed, 9 Jan 2013 19:35:33 +0000 (11:35 -0800)]
unit: Add advertising data from Cookoo watch for testing
Anderson Lizardo [Wed, 9 Jan 2013 15:19:21 +0000 (11:19 -0400)]
unit: Rename x_pdu() macro on SDP test program
Using the "raw_data" name makes sense, given the macro is just casting
input (raw) data. It will also be reused in other tests with raw input
data.
Also fix this minor checkpatch.pl error:
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in
parenthesis
+#define raw_data(args...) (const unsigned char[]) { args }
Anderson Lizardo [Wed, 9 Jan 2013 15:19:20 +0000 (11:19 -0400)]
unit: Reuse define_test() macro for /TP/SERVER/BRW/* tests
This is made possible by adding the mtu parameter, given
/TP/SERVER/BRW/* tests use MTU of 672.
Johan Hedberg [Wed, 9 Jan 2013 11:02:39 +0000 (13:02 +0200)]
core: Fix canceling all types of agent requests
When we get a bonding complete we should take care to cancel any kind of
potential pending agent requests. This can (and will) particularly
occur if there are multiple mgmt sockets around and some other mgmt
socket responded to the authentication request.
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:49 +0000 (17:07 +0530)]
sdp-xml: Remove newline before EOF
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:48 +0000 (17:07 +0530)]
audio: Remove unused struct audio_adapter
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:47 +0000 (17:07 +0530)]
unit: Replace g_test_fail() with g_assert_not_reached()
g_test_fail() is introduced in Glib v2.30 and we are using Glib v2.28 as
the minimum requirement for the build. This patch resolves the
compilation error that happen with Glib v2.28.
Error log:
CC unit/test-mgmt.o
unit/test-mgmt.c: In function ‘check_actions’:
unit/test-mgmt.c:100:2: error: implicit declaration of
function ‘g_test_fail’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [unit/test-mgmt.o] Error 1
make: *** [all] Error 2
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:46 +0000 (17:07 +0530)]
health: Fix possible use after free
A pointer to freed memory is dereferenced if we call function
channel_acquire_continue() with out any earlier reference.
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:45 +0000 (17:07 +0530)]
health: Fix pointer to local variable out-of-scope
The address of the local variable is used outside the scope.
Johan Hedberg [Wed, 9 Jan 2013 08:27:05 +0000 (10:27 +0200)]
unit: Fix hardcoded test for complete name in EIR
Marcel Holtmann [Wed, 9 Jan 2013 06:30:48 +0000 (22:30 -0800)]
tools: Add helper for extracting advertising data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 06:30:01 +0000 (22:30 -0800)]
unit: Add advertising data from Wahoo BlueSC for testing
Marcel Holtmann [Wed, 9 Jan 2013 04:10:02 +0000 (20:10 -0800)]
unit: Add inquiry data from Nike+ FuelBand for testing
Marcel Holtmann [Wed, 9 Jan 2013 04:05:53 +0000 (20:05 -0800)]
unit: Add inquiry data from iPhone 5 and iPad mini for testing
Marcel Holtmann [Wed, 9 Jan 2013 03:46:29 +0000 (19:46 -0800)]
tools: Add helper for extracting EIR data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 03:45:28 +0000 (19:45 -0800)]
unit: Add inquiry data from MacBook Air for testing
Marcel Holtmann [Wed, 9 Jan 2013 02:50:42 +0000 (18:50 -0800)]
tools: Add helper for extracting SDP PDUs out of btsnoop files
Anderson Lizardo [Tue, 8 Jan 2013 23:05:25 +0000 (19:05 -0400)]
lib: Fix SDP_TEXT_STR16/SDP_URL_STR16 parsing
sdp_extract_attr() uses the "size" parameter to return the number of
bytes consumed when parsing SDP Data Elements. This size is used to
advance a buffer pointer to parse next element.
This size was being incorrectly calculated for SDP_{TEXT,URL}_STR16 in
extract_str(), where the string length was added twice. The string
length is already added later in the function for {TEXT,URL}_STR{8,16}
by this statement:
*len += n;