OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agoobexd: Fix infinite loop in ListMessages with filter "Types"
Christian Fetzer [Fri, 11 Jan 2013 15:55:52 +0000 (16:55 +0100)]
obexd: Fix infinite loop in ListMessages with filter "Types"

Calls to ListMessages with filter 'Types' make obexd hang in an infinite loop.
This is caused by a missing dbus_message_iter_next in parse_filter_type.

0  0x00007ffff7304ca7 in dbus_message_iter_get_basic ()
   from /usr/lib/libdbus-1.so.3
1  0x0000000000434fba in parse_filter_type (iter=0x7fffffffd7d0, apparam=
    0x6987f0) at obexd/client/map.c:1086
2  parse_message_filters (iter=0x7fffffffd730, apparam=0x6987f0)
    at obexd/client/map.c:1222
3  map_list_messages (connection=<optimized out>, message=0x669ae0, user_data=
    0x698a60) at obexd/client/map.c:1273
4  0x00000000004109a1 in process_message (connection=0x662b20,
    message=<optimized out>, iface_user_data=<optimized out>,
    method=<optimized out>, method=<optimized out>) at gdbus/object.c:285
5  0x00007ffff7308e15 in ?? () from /usr/lib/libdbus-1.so.3
6  0x00007ffff72fb070 in dbus_connection_dispatch ()
   from /usr/lib/libdbus-1.so.3
7  0x000000000040e3d8 in message_dispatch (data=0x662b20)
    at gdbus/mainloop.c:76
8  0x00007ffff703d3cb in ?? () from /usr/lib/libglib-2.0.so.0
9  0x00007ffff703c845 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
10 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
11 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
12 0x000000000040df82 in main (argc=1, argv=0x7fffffffdd88)
    at obexd/src/main.c:323

11 years agoobexd: Add property exist functions to map client
Christian Fetzer [Fri, 11 Jan 2013 15:55:51 +0000 (16:55 +0100)]
obexd: Add property exist functions to map client

This fixes crashes in MAP client when the server does not send optional properties.

0  0x00007ffff6a792c5 in raise () from /usr/lib/libc.so.6
1  0x00007ffff6a7a748 in abort () from /usr/lib/libc.so.6
2  0x00007ffff731c145 in ?? () from /usr/lib/libdbus-1.so.3
3  0x00007ffff7312a25 in ?? () from /usr/lib/libdbus-1.so.3
4  0x00007ffff73050d6 in dbus_message_iter_append_basic () from /usr/lib/libdbus-1.so.3
5  0x0000000000433cc5 in get_replyto (property=<optimized out>, iter=<optimized out>,
    data=<optimized out>) at obexd/client/map.c:484
6  0x00000000004103b6 in append_property (p=p@entry=0x6594c0 <map_msg_properties+192>,
    dict=dict@entry=0x7fffffffd8e0, iface=0x6a3720) at gdbus/object.c:547
7  0x0000000000410472 in append_properties (data=data@entry=0x6a3720, iter=iter@entry=
    0x7fffffffd960) at gdbus/object.c:576
8  0x00000000004104d1 in append_interface (data=0x6a3720, user_data=0x7fffffffda40)
    at gdbus/object.c:591
9  0x00007ffff7058a4d in g_slist_foreach () from /usr/lib/libglib-2.0.so.0
10 0x0000000000411d05 in emit_interfaces_added (data=0x6a2ff0) at gdbus/object.c:623
11 process_changes (user_data=0x6a2ff0) at gdbus/object.c:1006
12 0x00007ffff703c845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
13 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
14 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
15 0x000000000040df82 in main (argc=1, argv=0x7fffffffdd88) at obexd/src/main.c:323

11 years agoobexd: Handle empty path name in SetPath
Christian Fetzer [Fri, 11 Jan 2013 15:55:50 +0000 (16:55 +0100)]
obexd: Handle empty path name in SetPath

If the empty path is given, an empty name should be sent via OBEX.
Currently the name field is not set at all and later checks which
depend on data->index will access invalid memory regions as g_strsplit
returns NULL when an empty string is given.

0  0x000000000041a181 in g_obex_setpath (obex=obex@entry=0x662eb0, path=
    0x20 <Address 0x20 out of bounds>, func=func@entry=0x42d300 <setpath_cb>,
    user_data=user_data@entry=0x668f10, err=err@entry=0x7fffffffda08)
    at gobex/gobex.c:1397
1  0x000000000042d395 in setpath_cb (obex=0x662eb0, err=0x0, rsp=<optimized out>,
    user_data=0x668f10) at obexd/client/session.c:902
2  0x0000000000418e54 in handle_response (obex=obex@entry=0x662eb0, err=err@entry=0x0,
    rsp=rsp@entry=0x668f40) at gobex/gobex.c:948
3  0x0000000000419d7a in incoming_data (io=<optimized out>, cond=<optimized out>,
    user_data=0x662eb0) at gobex/gobex.c:1191
4  0x00007ffff703c845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
5  0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
6  0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
7  0x000000000040def2 in main (argc=1, argv=0x7fffffffdd88) at obexd/src/main.c:323

11 years agodoc: Fix trivial typo in adapter-api
Mikel Astiz [Mon, 14 Jan 2013 07:44:41 +0000 (08:44 +0100)]
doc: Fix trivial typo in adapter-api

11 years agomonitor: Add decoding for minor class for wearable major class
Marcel Holtmann [Mon, 14 Jan 2013 07:48:29 +0000 (23:48 -0800)]
monitor: Add decoding for minor class for wearable major class

11 years agocore: Rename adapter->disc_sessions to discov_sessions for clarity
Johan Hedberg [Mon, 14 Jan 2013 07:24:56 +0000 (09:24 +0200)]
core: Rename adapter->disc_sessions to discov_sessions for clarity

11 years agomonitor: Add GATT-based Service UUIDs
Marcel Holtmann [Mon, 14 Jan 2013 02:47:49 +0000 (18:47 -0800)]
monitor: Add GATT-based Service UUIDs

11 years agomonitor: Add UUID values for Characteristic Descriptors
Marcel Holtmann [Mon, 14 Jan 2013 02:39:31 +0000 (18:39 -0800)]
monitor: Add UUID values for Characteristic Descriptors

11 years agomonitor: Add UUID values for Characteristic Descriptions
Marcel Holtmann [Mon, 14 Jan 2013 02:37:37 +0000 (18:37 -0800)]
monitor: Add UUID values for Characteristic Descriptions

11 years agomonitor: Fix the singular entry vs plural entries
Marcel Holtmann [Mon, 14 Jan 2013 02:07:46 +0000 (18:07 -0800)]
monitor: Fix the singular entry vs plural entries

11 years agomonitor: Decode the minor class field for major class phone
Marcel Holtmann [Mon, 14 Jan 2013 02:03:37 +0000 (18:03 -0800)]
monitor: Decode the minor class field for major class phone

11 years agomonitor: Decode 16-bit and 32-bit UUID values from EIR data
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

11 years agomonitor: Add more ATT protocol decodings
Marcel Holtmann [Mon, 14 Jan 2013 01:45:44 +0000 (17:45 -0800)]
monitor: Add more ATT protocol decodings

11 years agomonitor: Print manufacturer name from EIR data
Marcel Holtmann [Sun, 13 Jan 2013 23:57:40 +0000 (15:57 -0800)]
monitor: Print manufacturer name from EIR data

11 years agomonitor: Print detailed class of device 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

11 years agomonitor: Print strings for advertising data flags
Marcel Holtmann [Sun, 13 Jan 2013 23:47:41 +0000 (15:47 -0800)]
monitor: Print strings for advertising data flags

11 years agolib: Update list of company identifiers
Marcel Holtmann [Sun, 13 Jan 2013 23:17:53 +0000 (15:17 -0800)]
lib: Update list of company identifiers

11 years agotools: Add entry for COOKOO watch product ID
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.

11 years agoemulator: Add command line switch for local HCI virtual device
Marcel Holtmann [Sun, 13 Jan 2013 23:12:34 +0000 (15:12 -0800)]
emulator: Add command line switch for local HCI virtual device

11 years agounit: Add advertising data from Citizen Proximity watch for testing
Marcel Holtmann [Sun, 13 Jan 2013 03:00:10 +0000 (19:00 -0800)]
unit: Add advertising data from Citizen Proximity watch for testing

11 years agoshared: Resetting watch identifier is done in the destroy handler
Marcel Holtmann [Sat, 12 Jan 2013 01:53:03 +0000 (17:53 -0800)]
shared: Resetting watch identifier is done in the destroy handler

11 years agoshared: Use protocol family constant instead of address family
Marcel Holtmann [Sat, 12 Jan 2013 00:02:37 +0000 (16:02 -0800)]
shared: Use protocol family constant instead of address family

11 years agotester: Add -l command line switch for listing test cases
Johan Hedberg [Fri, 11 Jan 2013 22:12:25 +0000 (00:12 +0200)]
tester: Add -l command line switch for listing test cases

11 years agotester: Add -p option to filter which test to be executed
Johan Hedberg [Fri, 11 Jan 2013 21:48:36 +0000 (23:48 +0200)]
tester: Add -p option to filter which test to be executed

11 years agoshared: Remove line with one single empty space in it
Marcel Holtmann [Fri, 11 Jan 2013 21:54:30 +0000 (13:54 -0800)]
shared: Remove line with one single empty space in it

11 years agoRelease 5.1
Marcel Holtmann [Fri, 11 Jan 2013 19:07:49 +0000 (11:07 -0800)]
Release 5.1

11 years agocore: Add comment about loading empty key lists into the kernel
Marcel Holtmann [Fri, 11 Jan 2013 19:01:32 +0000 (11:01 -0800)]
core: Add comment about loading empty key lists into the kernel

11 years agobuild: Update library version
Marcel Holtmann [Fri, 11 Jan 2013 18:37:24 +0000 (10:37 -0800)]
build: Update library version

11 years agoobexd: Don't bother with trying to handle SIGPIPE
Marcel Holtmann [Fri, 11 Jan 2013 17:45:40 +0000 (09:45 -0800)]
obexd: Don't bother with trying to handle SIGPIPE

11 years agoAVRCP: Fix crash when MediaPlayer1 is disabled
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.

11 years agoemulator: Add support for HCI_LE_Set_Advertising_Data command
Johan Hedberg [Fri, 11 Jan 2013 14:00:01 +0000 (16:00 +0200)]
emulator: Add support for HCI_LE_Set_Advertising_Data command

11 years agotools: Add HCI command monitoring for mgmt link security test
Johan Hedberg [Fri, 11 Jan 2013 13:40:10 +0000 (15:40 +0200)]
tools: Add HCI command monitoring for mgmt link security test

11 years agotools: Add mgmt test case for link security when powered on
Johan Hedberg [Fri, 11 Jan 2013 13:35:27 +0000 (15:35 +0200)]
tools: Add mgmt test case for link security when powered on

11 years agotools: Add HCI command monitoring to discoverable on/off tests
Johan Hedberg [Fri, 11 Jan 2013 13:10:30 +0000 (15:10 +0200)]
tools: Add HCI command monitoring to discoverable on/off tests

11 years agotools: Add mgmt test case for discoverable off while powered
Johan Hedberg [Fri, 11 Jan 2013 12:38:08 +0000 (14:38 +0200)]
tools: Add mgmt test case for discoverable off while powered

11 years agotools: Fix discoverable off test case name in logs
Johan Hedberg [Fri, 11 Jan 2013 12:31:44 +0000 (14:31 +0200)]
tools: Fix discoverable off test case name in logs

11 years agotools: Add mgmt test for setting connectable when powered on
Johan Hedberg [Fri, 11 Jan 2013 12:21:39 +0000 (14:21 +0200)]
tools: Add mgmt test for setting connectable when powered on

11 years agotools: Add basic HCI command monitoring callback to mgmt-tester
Johan Hedberg [Fri, 11 Jan 2013 11:15:29 +0000 (13:15 +0200)]
tools: Add basic HCI command monitoring callback to mgmt-tester

11 years agotools: Add set_link_security tests 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

11 years agounit: Providing empty info() implementation is no longer needed
Marcel Holtmann [Fri, 11 Jan 2013 04:06:14 +0000 (20:06 -0800)]
unit: Providing empty info() implementation is no longer needed

11 years agocore: Turn message about device id into debug statement
Marcel Holtmann [Fri, 11 Jan 2013 04:05:51 +0000 (20:05 -0800)]
core: Turn message about device id into debug statement

11 years agobuild: Fix --disable-optimization configure option
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.

11 years agoattrib: Fix compilation errors when compiled without optimization
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]

11 years agotools: Fix using DBusBasicValue
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

11 years agotools: Update mpris-player to register using MPRIS interface
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.

11 years agomedia: Implement new RegisterPlayer API
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

11 years agotest: Update test-player to register using MPRIS interface
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:47:55 +0000 (10:47 +0200)]
test: Update test-player to register using MPRIS interface

11 years agomedia-api: Change RegisterPlayer to use MPRIS spec
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/

11 years agotools: Adapt mpris-player to new API of MediaPlayer1
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

11 years agotest: Adapt simple-player to the new API of MediaPlayer1
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

11 years agomedia: Adapt RegisterPlayer to changes in 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.

11 years agoplayer: Add Device property
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.

11 years agoAVRCP: Always create a controller player even for version 1.0
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.

11 years agoplayer: Fix documentation to use TrackNumber in track metadata
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.

11 years agoplayer: Add support for button controls
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

11 years agoplayer: Remove GetTrack and TrackChanged
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

11 years agomedia-api: Add playback control methods to 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.

11 years agounit: Fix remaining references to bluetooth/uuid.h
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".

11 years agoattrib: Fix remaining references to bluetooth/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".

11 years agoproximity: Fix remaining references to bluetooth/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".

11 years agotime: Fix remaining references to bluetooth/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".

11 years agoalert: Fix remaining references to bluetooth/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".

11 years agoscanparam: Fix remaining references to bluetooth/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".

11 years agogatt: Fix remaining references to bluetooth/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".

11 years agoinput: Fix remaining references to bluetooth/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".

11 years agoplugins: Fix remaining references to bluetooth/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".

11 years agocore: Fix remaining references to bluetooth/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".

11 years agounit: Avoid D-Bus calling _exit() during SDP tests
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.

11 years agotools: Fix up testing of discoverable management command
Marcel Holtmann [Thu, 10 Jan 2013 07:11:44 +0000 (23:11 -0800)]
tools: Fix up testing of discoverable management command

11 years agodoc: Clarify the error codes of some management commands
Marcel Holtmann [Thu, 10 Jan 2013 06:59:34 +0000 (22:59 -0800)]
doc: Clarify the error codes of some management commands

11 years agobuild: Enable Bluetooth library for distribution builds
Marcel Holtmann [Thu, 10 Jan 2013 04:32:40 +0000 (20:32 -0800)]
build: Enable Bluetooth library for distribution builds

11 years agobuild: Only install old legacy Bluetooth library headers
Marcel Holtmann [Thu, 10 Jan 2013 04:32:12 +0000 (20:32 -0800)]
build: Only install old legacy Bluetooth library headers

11 years agomonitor: Fix includes from Bluetooth library
Marcel Holtmann [Thu, 10 Jan 2013 04:31:18 +0000 (20:31 -0800)]
monitor: Fix includes from Bluetooth library

11 years agotools: Fix includes for mgmt.h
Marcel Holtmann [Thu, 10 Jan 2013 04:31:07 +0000 (20:31 -0800)]
tools: Fix includes for mgmt.h

11 years agoobexd: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:43 +0000 (20:30 -0800)]
obexd: Fix includes for uuid.h

11 years agoprofiles: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:30 +0000 (20:30 -0800)]
profiles: Fix includes for uuid.h

11 years agocore: Fix includes for mgmt.h and uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:09 +0000 (20:30 -0800)]
core: Fix includes for mgmt.h and uuid.h

11 years agoshared: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:59 +0000 (19:45 -0800)]
shared: Remove redundant include

11 years agotools: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:17 +0000 (19:45 -0800)]
tools: Remove redundant include

11 years agolib: Remove all management settings helpers since they are unused now
Marcel Holtmann [Thu, 10 Jan 2013 03:44:00 +0000 (19:44 -0800)]
lib: Remove all management settings helpers since they are unused now

11 years agocore: Fix setting up discoverable from stored settings on power on
Marcel Holtmann [Thu, 10 Jan 2013 03:43:19 +0000 (19:43 -0800)]
core: Fix setting up discoverable from stored settings on power on

11 years agolib: Remove current unused management settings helpers
Marcel Holtmann [Thu, 10 Jan 2013 03:13:07 +0000 (19:13 -0800)]
lib: Remove current unused management settings helpers

11 years agoshared: Use < for management commands and > for events
Marcel Holtmann [Thu, 10 Jan 2013 03:00:45 +0000 (19:00 -0800)]
shared: Use < for management commands and > for events

11 years agocore: Add support for graceful shutdown of adapters
Marcel Holtmann [Thu, 10 Jan 2013 02:56:31 +0000 (18:56 -0800)]
core: Add support for graceful shutdown of adapters

11 years agounit: Print D-Bus error message in verbose mode
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.

11 years agocore: Don't bother with return value for setting device class
Marcel Holtmann [Thu, 10 Jan 2013 00:55:05 +0000 (16:55 -0800)]
core: Don't bother with return value for setting device class

11 years agocore: Don't bother with major and minor class for LE only adapters
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.

11 years agocore: Load link keys and long term keys only when controller supports it
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.

11 years agodoc: Add missing empty return parameters for load long term keys
Marcel Holtmann [Wed, 9 Jan 2013 20:03:45 +0000 (12:03 -0800)]
doc: Add missing empty return parameters for load long term keys

11 years agounit: Add advertising data from Cookoo watch for testing
Marcel Holtmann [Wed, 9 Jan 2013 19:35:33 +0000 (11:35 -0800)]
unit: Add advertising data from Cookoo watch for testing

11 years agounit: Rename x_pdu() macro on SDP test program
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 }

11 years agounit: Reuse define_test() macro for /TP/SERVER/BRW/* tests
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.

11 years agocore: Fix canceling all types of agent requests
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.

11 years agosdp-xml: Remove newline before EOF
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:49 +0000 (17:07 +0530)]
sdp-xml: Remove newline before EOF

11 years agoaudio: Remove unused struct audio_adapter
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:48 +0000 (17:07 +0530)]
audio: Remove unused struct audio_adapter

11 years agounit: Replace g_test_fail() with g_assert_not_reached()
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

11 years agohealth: Fix possible use after free
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.

11 years agohealth: Fix pointer to local variable out-of-scope
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.

11 years agounit: Fix hardcoded test for complete name in EIR
Johan Hedberg [Wed, 9 Jan 2013 08:27:05 +0000 (10:27 +0200)]
unit: Fix hardcoded test for complete name in EIR

11 years agotools: Add helper for extracting advertising data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 06:30:48 +0000 (22:30 -0800)]
tools: Add helper for extracting advertising data out of btsnoop files