OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agoadapter: Fix registering adapter with no address
Szymon Janc [Fri, 8 Feb 2013 10:03:13 +0000 (11:03 +0100)]
adapter: Fix registering adapter with no address

adapter->bdaddr is set later in read_info_complete and current check
always returns false. Check against bdaddr received in command response
instead and fail if it is all zeros.

11 years agoA2DP: Fix invalid write
Luiz Augusto von Dentz [Fri, 8 Feb 2013 14:12:08 +0000 (16:12 +0200)]
A2DP: Fix invalid write

Invalid write of size 8
   at 0x41F297: setconf_cfm (a2dp.c:567)
   by 0x42526B: session_cb (avdtp.c:3176)
   by 0x39B0847A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x39B0847D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x39B0848181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x409C3E: main (main.c:583)
 Address 0x555fda8 is 40 bytes inside a block of size 88 free'd
   at 0x4A077A6: free (vg_replace_malloc.c:446)
   by 0x39B084D79E: g_free (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x41E217: setup_cb_free (a2dp.c:191)
   by 0x41E410: finalize_config (a2dp.c:234)
   by 0x41F296: setconf_cfm (a2dp.c:566)
   by 0x42526B: session_cb (avdtp.c:3176)
   by 0x39B0847A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x39B0847D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x39B0848181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x409C3E: main (main.c:583)

11 years agocore: Fix calling profile .connect multiple times
Luiz Augusto von Dentz [Fri, 8 Feb 2013 09:51:28 +0000 (11:51 +0200)]
core: Fix calling profile .connect multiple times

Sometimes profiles may complete the connection in different order
than expected so the code has to check if it was actually the
current pending profile to proceed to the next.

11 years agohostname: Fallback to static hostname if pretty hostname is not set
Szymon Janc [Wed, 6 Feb 2013 21:40:38 +0000 (22:40 +0100)]
hostname: Fallback to static hostname if pretty hostname is not set

If pretty hostname is not set fallback to static hostname (if it is
set). If static or pretty hostname is not set appropriate properties
are empty strings not NULLs. This behaviour is recomended by hostnamed.

11 years agohostname: Fix setting adapter name to empty string
Szymon Janc [Wed, 6 Feb 2013 21:40:37 +0000 (22:40 +0100)]
hostname: Fix setting adapter name to empty string

If pretty hostname is not set empty string is received. Don't update
adapters' names is such case.

11 years agoadapter: Always set new default adapter if current one is removed
Szymon Janc [Wed, 6 Feb 2013 21:40:36 +0000 (22:40 +0100)]
adapter: Always set new default adapter if current one is removed

In case hci_get_route() failed mark first adapter on list as default.
This make sure default adapter is always set and that
btd_adapter_get_default will not return NULL if at least one adapter
is registered.

11 years agoadapter: Mark adapter as default before probing drivers
Szymon Janc [Wed, 6 Feb 2013 21:40:35 +0000 (22:40 +0100)]
adapter: Mark adapter as default before probing drivers

Drivers may depends on adapter being default or not. This fix hostname
plugin setting default adapter name to 'foo #1' instead of 'foo' if
pretty hostname was received before probing adapter drivers.

11 years agoadapter: Add is_default field to struct btd_adapter
Szymon Janc [Wed, 6 Feb 2013 21:40:34 +0000 (22:40 +0100)]
adapter: Add is_default field to struct btd_adapter

Instead of global default_adapter_id variable use is_default field
to indicate if adapter is default one.

11 years agocore: Remove unused code from device_browse_sdp()
Anderson Lizardo [Tue, 5 Feb 2013 00:32:36 +0000 (20:32 -0400)]
core: Remove unused code from device_browse_sdp()

The "search" parameter was always NULL, and therefore code depending on
it being non-NULL will never be reached.

11 years agolib: Check if SDP buffer has enough data on partial responses
Anderson Lizardo [Mon, 4 Feb 2013 01:20:45 +0000 (21:20 -0400)]
lib: Check if SDP buffer has enough data on partial responses

Before manipulating data from previous partial responses, make sure the
buffer has enough data.

11 years agolib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSP
Anderson Lizardo [Mon, 4 Feb 2013 01:20:44 +0000 (21:20 -0400)]
lib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSP

According to SDP spec, the byte count fields for these PDUs have a valid
range of 0x0002-0xFFFF.

11 years agolib: Fix buffer overflow when processing SDP response
Anderson Lizardo [Mon, 4 Feb 2013 01:20:43 +0000 (21:20 -0400)]
lib: Fix buffer overflow when processing SDP response

rsp_count is either read or calculated from untrusted input, and
therefore needs to be checked before being used as offset. The "plen"
variable is appropriate because it is calculated as the sum of fixed and
variable length fields, excluding the continuation state field, which
has at least 1 byte for its own length field.

11 years agocore: Use device_set_trusted() in set_trust()
Antonio Ospite [Sun, 3 Feb 2013 16:14:31 +0000 (17:14 +0100)]
core: Use device_set_trusted() in set_trust()

11 years agocore: Add a device_set_trusted() function
Antonio Ospite [Sun, 3 Feb 2013 16:14:30 +0000 (17:14 +0100)]
core: Add a device_set_trusted() function

This will be useful for plugins that do their own device setup (e.g.
USB-based pairing).

11 years agoneard: Add support for setting power state in RequestOOB reply
Szymon Janc [Thu, 7 Feb 2013 08:13:58 +0000 (09:13 +0100)]
neard: Add support for setting power state in RequestOOB reply

This allows neard to properly set Bluetooth carrier power state in
handover message.

11 years agoadapter: Add btd_adapter_get_connectable function
Szymon Janc [Thu, 7 Feb 2013 08:13:57 +0000 (09:13 +0100)]
adapter: Add btd_adapter_get_connectable function

11 years agoneard: Check if adapter is powered in PushOOB
Szymon Janc [Thu, 7 Feb 2013 08:13:56 +0000 (09:13 +0100)]
neard: Check if adapter is powered in PushOOB

For PushOOB adapter needs to be powered as bluetoothd daemon is
expected to perform action on success.

11 years agoadapter: Add btd_adapter_get_powered function
Szymon Janc [Thu, 7 Feb 2013 08:13:55 +0000 (09:13 +0100)]
adapter: Add btd_adapter_get_powered function

11 years agoneard: Move pairable check from check_adapter
Szymon Janc [Thu, 7 Feb 2013 08:13:54 +0000 (09:13 +0100)]
neard: Move pairable check from check_adapter

If device is already paired there is no need to fail with handover
if adapter is not pairable.

11 years agoneard: Add ability to parse 'State' field
Szymon Janc [Thu, 7 Feb 2013 08:13:53 +0000 (09:13 +0100)]
neard: Add ability to parse 'State' field

This contains hint for power state of remote device Bluetooth adapter.

11 years agoneard: Refactor message processing
Szymon Janc [Thu, 7 Feb 2013 08:13:52 +0000 (09:13 +0100)]
neard: Refactor message processing

This refactor code for message processing for future feature addition.
nokia.com:bt and EIR processing is now separated from performing
actions based on received data.

11 years agoneard: Adjust errors to latest API changes
Szymon Janc [Thu, 7 Feb 2013 08:13:51 +0000 (09:13 +0100)]
neard: Adjust errors to latest API changes

neard Handover API was stripped of not really usefull error codes.

11 years agogdbus: Add g_dbus_proxy_set_removed_watch
Denis Kenzior [Thu, 7 Feb 2013 16:22:57 +0000 (10:22 -0600)]
gdbus: Add g_dbus_proxy_set_removed_watch

11 years agotools: Fix hcidump parser of AVRCP GetItemAttributes command
Luiz Augusto von Dentz [Thu, 14 Feb 2013 12:29:54 +0000 (14:29 +0200)]
tools: Fix hcidump parser of AVRCP GetItemAttributes command

11 years agotools: Fix hcidump parser of AVRCP media attributes
Luiz Augusto von Dentz [Thu, 14 Feb 2013 12:28:20 +0000 (14:28 +0200)]
tools: Fix hcidump parser of AVRCP media attributes

11 years agotools: Print UID of track changed event
Luiz Augusto von Dentz [Thu, 14 Feb 2013 12:25:07 +0000 (14:25 +0200)]
tools: Print UID of track changed event

Before 1.4 this was considered reserved but now it is being used for
UID of the current track.

11 years agogdbus: Fix missing PropertiesChanged signal
Vinicius Costa Gomes [Thu, 7 Feb 2013 17:40:31 +0000 (14:40 -0300)]
gdbus: Fix missing PropertiesChanged signal

If D-Bus ObjectManager is not supported, InterfacesAdded signal
checking needs to be ignored otherwise PropertiesChanged signal
will never be sent.

11 years agotools: Track transport state if player status is not supported
Luiz Augusto von Dentz [Wed, 13 Feb 2013 12:01:44 +0000 (14:01 +0200)]
tools: Track transport state if player status is not supported

This makes PlayPause method to work properly even if remote device
supports only AVRCP 1.0.

11 years agodoc: Add missing device RSSI property
Szymon Janc [Wed, 13 Feb 2013 22:24:38 +0000 (23:24 +0100)]
doc: Add missing device RSSI property

RSSI property was not documented in device API.

11 years agodoc: Remove CancelConnect function from device API
Szymon Janc [Wed, 13 Feb 2013 21:45:39 +0000 (22:45 +0100)]
doc: Remove CancelConnect function from device API

This method is not implemented and Disconnect can be used instead.

11 years agodoc: Fix device disconnect description
Szymon Janc [Wed, 13 Feb 2013 21:45:38 +0000 (22:45 +0100)]
doc: Fix device disconnect description

Document what Disconnect() function actually does.

11 years agodoc: Clarify device connect description
Szymon Janc [Wed, 13 Feb 2013 21:02:14 +0000 (22:02 +0100)]
doc: Clarify device connect description

Describe behaviour when some profiles are already connected. Clarify
that it returns success if at least one profile was connected.

11 years agotransport: Fix inconsistent transport state
Mikel Astiz [Tue, 12 Feb 2013 08:23:35 +0000 (09:23 +0100)]
transport: Fix inconsistent transport state

If a2dp_resume() fails, the transport state should not be modified. It
would otherwise enter an incosistent state where the transport will be
impossible to resume, since acquire() will see the transport in
TRANSPORT_STATE_REQUESTING state and will thus return
btd_error_not_authorized().

11 years agomonitor: Add commands, events and features from CSA4
Marcel Holtmann [Tue, 12 Feb 2013 20:23:32 +0000 (21:23 +0100)]
monitor: Add commands, events and features from CSA4

11 years agoman: Remove misleading reference to main.conf man page
Johan Hedberg [Mon, 11 Feb 2013 19:27:29 +0000 (21:27 +0200)]
man: Remove misleading reference to main.conf man page

11 years agogdbus: Don't call property changed callback during client init
Marcel Holtmann [Mon, 11 Feb 2013 19:19:10 +0000 (20:19 +0100)]
gdbus: Don't call property changed callback during client init

When the client uses ObjectManager to init properties, do not call
property changed callbacks. They should only be called once the proxy
added has been successfully signaled since the proxy itself provides
a full copy of available properties.

11 years agotools: Add mgmt-tester command line option to control power on wait
Johan Hedberg [Mon, 11 Feb 2013 12:00:43 +0000 (14:00 +0200)]
tools: Add mgmt-tester command line option to control power on wait

11 years agotest: Add -p/--push option to map-client
Luiz Augusto von Dentz [Thu, 7 Feb 2013 11:30:17 +0000 (13:30 +0200)]
test: Add -p/--push option to map-client

This option can be used to push messages, it takes as a parameter a
file location which should contain the message in bmsg format.

11 years agoobexd: Add PushMessage
Christian Fetzer [Fri, 25 Jan 2013 16:44:47 +0000 (17:44 +0100)]
obexd: Add PushMessage

Push message has been implemented similar to send file (OPP),
the message to send (in bMessage format) is read from a file.

11 years agotest: Fix missing call to parser.parse_args() in test-proximity
Johan Hedberg [Mon, 4 Feb 2013 12:29:15 +0000 (14:29 +0200)]
test: Fix missing call to parser.parse_args() in test-proximity

12 years agoshared: Fix use after free in read_watch_destroy
Szymon Janc [Sat, 2 Feb 2013 18:39:58 +0000 (19:39 +0100)]
shared: Fix use after free in read_watch_destroy

read_watch_destroy is called when received_data returns FALSE.
free mgmt in read_watch_destroy instead of received_data to avoid
use after free.

Invalid write of size 4
   at 0x8051604: read_watch_destroy (mgmt.c:271)
   by 0x48C7468E: g_source_callback_unref (gmain.c:1457)
   by 0x48C77287: g_main_context_dispatch (gmain.c:2723)
   by 0x48C774FF: g_main_context_iterate.isra.22 (gmain.c:3290)
   by 0x48C77962: g_main_loop_run (gmain.c:3484)
   by 0x805393E: tester_run (tester.c:784)
   by 0x804D1C7: main (mgmt-tester.c:2558)
 Address 0x4039b80 is 16 bytes inside a block of size 76 free'd
   at 0x4007F0F: free (vg_replace_malloc.c:446)
   by 0x48C7D44B: standard_free (gmem.c:98)
   by 0x48C7D607: g_free (gmem.c:252)
   by 0x8051BB6: received_data (mgmt.c:337)
   by 0x48CBA72E: g_io_unix_dispatch (giounix.c:167)
   by 0x48C7715A: g_main_context_dispatch (gmain.c:2715)
   by 0x48C774FF: g_main_context_iterate.isra.22 (gmain.c:3290)
   by 0x48C77962: g_main_loop_run (gmain.c:3484)
   by 0x805393E: tester_run (tester.c:784)
   by 0x804D1C7: main (mgmt-tester.c:2558)

12 years agomonitor: Decode supported commands result
Marcel Holtmann [Sat, 2 Feb 2013 10:19:09 +0000 (11:19 +0100)]
monitor: Decode supported commands result

12 years agomonitor: Fix wrong supported commands bit value
Marcel Holtmann [Sat, 2 Feb 2013 10:18:39 +0000 (11:18 +0100)]
monitor: Fix wrong supported commands bit value

12 years agotools: Fix mgmt-tester LE expected supported settings
Johan Hedberg [Sat, 2 Feb 2013 02:47:20 +0000 (04:47 +0200)]
tools: Fix mgmt-tester LE expected supported settings

12 years agotools: Add basic mgmt_set_local_name EIR test case
Johan Hedberg [Sat, 2 Feb 2013 02:16:35 +0000 (02:16 +0000)]
tools: Add basic mgmt_set_local_name EIR test case

12 years agocore: Use more compact definitions for zero-tail byte arrays
Johan Hedberg [Sat, 2 Feb 2013 02:06:48 +0000 (02:06 +0000)]
core: Use more compact definitions for zero-tail byte arrays

12 years agotools: Add basic mgmt_set_local_name success test cases
Johan Hedberg [Sat, 2 Feb 2013 01:49:36 +0000 (19:49 -0600)]
tools: Add basic mgmt_set_local_name success test cases

12 years agotools: Generalize alternate mgmt event handling for mgmt-tester
Johan Hedberg [Sat, 2 Feb 2013 01:45:53 +0000 (19:45 -0600)]
tools: Generalize alternate mgmt event handling for mgmt-tester

12 years agoaudio: Fix uint64_t format specifier
Johan Hedberg [Sat, 2 Feb 2013 02:40:21 +0000 (02:40 +0000)]
audio: Fix uint64_t format specifier

12 years agoRelease 5.2
Marcel Holtmann [Sat, 2 Feb 2013 00:41:17 +0000 (01:41 +0100)]
Release 5.2

12 years agolib: Update list of company identifiers
Marcel Holtmann [Sat, 2 Feb 2013 00:19:29 +0000 (01:19 +0100)]
lib: Update list of company identifiers

12 years agoAVRCP: Set addressed player as browsed player
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:25 +0000 (15:28 -0600)]
AVRCP: Set addressed player as browsed player

This send SetBrowsedPlayer after getting the player details.

12 years agoAVRCP: Split event handing to its own functions
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:24 +0000 (15:28 -0600)]
AVRCP: Split event handing to its own functions

12 years agoAVRCP: Get player list if supported
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:23 +0000 (15:28 -0600)]
AVRCP: Get player list if supported

If addressed player changed is supported get the list of players

12 years agoAVRCP: Register to addressed player changed event if supported
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:22 +0000 (15:28 -0600)]
AVRCP: Register to addressed player changed event if supported

This enables registering for addressed player changed event and handle
the interim response setting the player id and uid counter to the current
player.

12 years agoAVRCP: Avoid repeating command due to changed event
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:21 +0000 (15:28 -0600)]
AVRCP: Avoid repeating command due to changed event

Currently we are repeating the same command twice for notification, first
for changed and then latter for interim response.

To avoid this the code now just do it for interim responses, changed
responses just trigger another registration.

12 years agomedia-api: Add org.bluez.MediaFolder1
Luiz Augusto von Dentz [Fri, 1 Feb 2013 21:28:20 +0000 (15:28 -0600)]
media-api: Add org.bluez.MediaFolder1

This interface adds support for browsing and searching in the player's
storage using AVRCP 1.4/1.5.

Some remarks about the design:

  - Exposing UIDCounter and UIDs was considered, but the spec seems to have
    missed to define the player's id persistency. There are also the fact that
    UIDCounter alone does not guarantee persistency across sessions and do not
    provide what exact items have changed, so in the end exposing these
    details will bring almost no value.
  - Indexing or caching the whole media library is not recommended, Bluetooth
    is too slow for that and even vendors such as Apple do not recommend doing
    it, so the only items keep in cache are the current listed ones.
  - Addressed vs Browsed player is done implicitly when accessed, this was done
    to simplify the API and avoid confusions between applications and players.

12 years agoAVDTP: Fix memory leak
Luiz Augusto von Dentz [Fri, 1 Feb 2013 18:20:44 +0000 (12:20 -0600)]
AVDTP: Fix memory leak

56 (16 direct, 40 indirect) bytes in 1 blocks are definitely lost in loss record 173 of 263
   at 0x4A0883C: malloc (vg_replace_malloc.c:270)
   by 0x4C8568E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x4C9A7F1: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x4C9BB92: g_slist_append (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x422072: send_req (avdtp.c:2569)
   by 0x422D0B: avdtp_discover (avdtp.c:3380)
   by 0x41D16C: source_setup_stream (source.c:307)
   by 0x41D1EF: source_connect (source.c:331)
   by 0x465411: connect_next (device.c:1073)
   by 0x466C92: device_profile_connected (device.c:1097)
   by 0x4629EB: ext_connect (profile.c:950)
   by 0x44AECB: connect_cb (btio.c:230)

12 years agocore: Fix missing return statement in ext_svc_complete
Johan Hedberg [Fri, 1 Feb 2013 17:53:07 +0000 (11:53 -0600)]
core: Fix missing return statement in ext_svc_complete

12 years agodevice: Fix not marking svc_resolved when loaded from storage
Vinicius Costa Gomes [Fri, 1 Feb 2013 17:37:16 +0000 (14:37 -0300)]
device: Fix not marking svc_resolved when loaded from storage

When the device is loaded from storage, we should mark it as it
services were resolved.

12 years agocore: Fix trying go stop passive scanning multiple times
Johan Hedberg [Fri, 1 Feb 2013 16:08:48 +0000 (10:08 -0600)]
core: Fix trying go stop passive scanning multiple times

12 years agocore: Add debug log to stop_passive_scanning_complete
Johan Hedberg [Fri, 1 Feb 2013 16:03:06 +0000 (10:03 -0600)]
core: Add debug log to stop_passive_scanning_complete

12 years agonetwork: Fix user data handling on unregister
Patrik Flykt [Fri, 1 Feb 2013 11:19:51 +0000 (13:19 +0200)]
network: Fix user data handling on unregister

User data in unregister_server() is a network_adapter struct. Unregistering
using full UUID will now also work.

12 years agogdbus: Fix unpublished interface signal emission
Johan Hedberg [Fri, 1 Feb 2013 15:03:22 +0000 (09:03 -0600)]
gdbus: Fix unpublished interface signal emission

If we haven't published an interface yet (i.e. it's in the data->added
list), we should just ignore any property changed indications as the
values for the properties will anyway be part of the InterfacesAdded
signal.

12 years agoemulator: Fix BR/EDR-only and LE-only supported command checks
Johan Hedberg [Fri, 1 Feb 2013 03:47:14 +0000 (21:47 -0600)]
emulator: Fix BR/EDR-only and LE-only supported command checks

12 years agoemulator: Add command line options for selecting controller type to btvirt
Johan Hedberg [Fri, 1 Feb 2013 03:32:28 +0000 (21:32 -0600)]
emulator: Add command line options for selecting controller type to btvirt

12 years agoemulator: Use BR/EDR/LE vhci type as default for btvirt
Johan Hedberg [Fri, 1 Feb 2013 03:22:21 +0000 (21:22 -0600)]
emulator: Use BR/EDR/LE vhci type as default for btvirt

12 years agotools: Add LE-only test case support to mgmt-tester
Johan Hedberg [Thu, 31 Jan 2013 22:08:51 +0000 (16:08 -0600)]
tools: Add LE-only test case support to mgmt-tester

12 years agotools: Add BR/EDR-only test case support to mgmt-tester
Johan Hedberg [Thu, 31 Jan 2013 22:04:32 +0000 (16:04 -0600)]
tools: Add BR/EDR-only test case support to mgmt-tester

12 years agotools: Fix mgmt-tester BR/EDR/LE test macro naming
Johan Hedberg [Thu, 31 Jan 2013 22:01:21 +0000 (16:01 -0600)]
tools: Fix mgmt-tester BR/EDR/LE test macro naming

12 years agoemulator: Fix controller version for BR/EDR type
Johan Hedberg [Thu, 31 Jan 2013 20:52:11 +0000 (14:52 -0600)]
emulator: Fix controller version for BR/EDR type

12 years agoAVRCP: Get track duration using GetPlayStatus command
Luiz Augusto von Dentz [Thu, 31 Jan 2013 17:12:43 +0000 (11:12 -0600)]
AVRCP: Get track duration using GetPlayStatus command

Some stacks, notably broadcom, don't send track duration together with
other metadata so it has to be set using GetPlayStatus.

12 years agoA2DP: Fix not setting setup error to NULL
Luiz Augusto von Dentz [Thu, 31 Jan 2013 17:12:42 +0000 (11:12 -0600)]
A2DP: Fix not setting setup error to NULL

Once the error is informed to the callback it should be properly freed and
set to NULL otherwise a subsequent operation may end up reusing the same
error which might lead to crashes.

12 years agoAVCTP: Fix memory leak
Luiz Augusto von Dentz [Thu, 31 Jan 2013 17:12:41 +0000 (11:12 -0600)]
AVCTP: Fix memory leak

651 (280 direct, 371 indirect) bytes in 7 blocks are definitely lost in loss record 306 of 332
   at 0x4A06B2F: calloc (vg_replace_malloc.c:593)
   by 0x319724D706: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x418A54: avctp_send_browsing_req (avctp.c:1457)
   by 0x41A330: avrcp_handle_event (avrcp.c:1998)
   by 0x417810: session_cb (avctp.c:702)
   by 0x3197247A74: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x3197247DA7: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x31972481A1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x409D6E: main (main.c:583)

12 years agoAVCTP: Fix allways destroying browsing channel
Luiz Augusto von Dentz [Thu, 31 Jan 2013 17:12:40 +0000 (11:12 -0600)]
AVCTP: Fix allways destroying browsing channel

This reverts commit 53d3fc3fad5152167458625ad2acf19070cdf26a that leads
to always destroy the browsing channel because the callback changes the
state.

To fix session_browsing_cb naw takes care of destroying the channel if it
disconnects.

12 years agotools: Fix mpris-player creating busname starting with digit
Luiz Augusto von Dentz [Thu, 31 Jan 2013 15:33:55 +0000 (09:33 -0600)]
tools: Fix mpris-player creating busname starting with digit

D-Bus does not allow a bus name starting with digits after . so the code
now prefix with bt_ if the device name starts with a digit.

12 years agotools: Use device Alias instead of Name in mpris-player
Luiz Augusto von Dentz [Thu, 31 Jan 2013 15:33:52 +0000 (09:33 -0600)]
tools: Use device Alias instead of Name in mpris-player

User may have set a different Name using Alias, Alias should always
be set.

12 years agohcidump: Fix parsing of SetBrowsedPlayer
Luiz Augusto von Dentz [Thu, 31 Jan 2013 15:33:56 +0000 (09:33 -0600)]
hcidump: Fix parsing of SetBrowsedPlayer

12 years agohcidump: Fix parsing of GetCurrentPlayerApplicationSettingValue
Luiz Augusto von Dentz [Thu, 31 Jan 2013 15:33:54 +0000 (09:33 -0600)]
hcidump: Fix parsing of GetCurrentPlayerApplicationSettingValue

12 years agohcidump: Distinct Control and Browsing AVCTP channels
Luiz Augusto von Dentz [Thu, 31 Jan 2013 15:33:50 +0000 (09:33 -0600)]
hcidump: Distinct Control and Browsing AVCTP channels

This prints the respective channel of the trafic

12 years agotools: Update tester apps to use new hciemu API
Johan Hedberg [Thu, 31 Jan 2013 20:24:19 +0000 (14:24 -0600)]
tools: Update tester apps to use new hciemu API

12 years agoshared: Provide hciemu type in hciemu_new()
Johan Hedberg [Thu, 31 Jan 2013 20:23:58 +0000 (14:23 -0600)]
shared: Provide hciemu type in hciemu_new()

12 years agoemulator: Create separate BR/EDR, BR/EDR/LE and LE vhci types
Johan Hedberg [Thu, 31 Jan 2013 20:11:46 +0000 (14:11 -0600)]
emulator: Create separate BR/EDR, BR/EDR/LE and LE vhci types

12 years agoemulator: Create separate server BR/EDR/LE and BR/EDR types
Johan Hedberg [Thu, 31 Jan 2013 20:08:19 +0000 (14:08 -0600)]
emulator: Create separate server BR/EDR/LE and BR/EDR types

12 years agoshared: Create BR/EDR/LE device type by default
Johan Hedberg [Thu, 31 Jan 2013 20:04:00 +0000 (14:04 -0600)]
shared: Create BR/EDR/LE device type by default

12 years agoemulator: Create separate BR/EDR/LE and BR/EDR device types
Johan Hedberg [Thu, 31 Jan 2013 20:03:32 +0000 (14:03 -0600)]
emulator: Create separate BR/EDR/LE and BR/EDR device types

12 years agoTODO: Remove completed passive scanning entry
Johan Hedberg [Thu, 31 Jan 2013 19:44:41 +0000 (13:44 -0600)]
TODO: Remove completed passive scanning entry

12 years agocore: Stop passive scanning when removing last item from connect_list
Johan Hedberg [Thu, 31 Jan 2013 19:44:18 +0000 (13:44 -0600)]
core: Stop passive scanning when removing last item from connect_list

12 years agocore: Refactor passive scanning stopping into its own function
Johan Hedberg [Thu, 31 Jan 2013 19:40:54 +0000 (13:40 -0600)]
core: Refactor passive scanning stopping into its own function

12 years agocore: Fix missing check for main_opts.reverse_sdp
Johan Hedberg [Thu, 31 Jan 2013 17:49:57 +0000 (11:49 -0600)]
core: Fix missing check for main_opts.reverse_sdp

12 years agocore: Fix checking for correct async operation id
Johan Hedberg [Thu, 31 Jan 2013 17:39:08 +0000 (11:39 -0600)]
core: Fix checking for correct async operation id

12 years agocore: Move SDP record fetching to NewConnection sending function
Johan Hedberg [Thu, 31 Jan 2013 17:32:14 +0000 (11:32 -0600)]
core: Move SDP record fetching to NewConnection sending function

12 years agocore: Do authorization and service resolving in parallel
Johan Hedberg [Thu, 31 Jan 2013 17:24:15 +0000 (11:24 -0600)]
core: Do authorization and service resolving in parallel

12 years agocore: Force discovery timer to run immediately if a profile needs it
Johan Hedberg [Thu, 31 Jan 2013 16:06:02 +0000 (10:06 -0600)]
core: Force discovery timer to run immediately if a profile needs it

12 years agocore: Fix SDP resolving for incoming external profile connections
Johan Hedberg [Thu, 31 Jan 2013 16:00:12 +0000 (10:00 -0600)]
core: Fix SDP resolving for incoming external profile connections

This patch ensures that the reverse SDP procedure completes before we
accept incoming profiles for external profiles.

12 years agocore: Add device API for waiting for SDP completion
Johan Hedberg [Thu, 31 Jan 2013 15:59:48 +0000 (09:59 -0600)]
core: Add device API for waiting for SDP completion

12 years agocore: Remove unnecessary assignment to device->svc_resolved
Johan Hedberg [Thu, 31 Jan 2013 15:58:18 +0000 (09:58 -0600)]
core: Remove unnecessary assignment to device->svc_resolved

The device_svc_resolved() function already takes care of setting
device->svc_resolved to true.

12 years agoTODO: Add item for improving stopping passive scanning
Johan Hedberg [Thu, 31 Jan 2013 15:06:49 +0000 (09:06 -0600)]
TODO: Add item for improving stopping passive scanning

12 years agocore: Fix updating discovery state when stopping passive scanning
Johan Hedberg [Wed, 30 Jan 2013 04:43:41 +0000 (22:43 -0600)]
core: Fix updating discovery state when stopping passive scanning

12 years agocore: Remove unnecessary adapter->passive_scanning variable
Johan Hedberg [Wed, 30 Jan 2013 01:29:40 +0000 (19:29 -0600)]
core: Remove unnecessary adapter->passive_scanning variable

The adapter->discovery_list can function equally well as an indicator of
whether normal discovery or passive scanning is in progress. Normal
discovery always overrides passive scanning so if there's one or more
entries in discovery_list we must be performing normal discovery and not
passive scanning.