OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agocore: Remove unneeded includes in device.c
Claudio Takahasi [Fri, 18 Oct 2013 12:32:31 +0000 (09:32 -0300)]
core: Remove unneeded includes in device.c

11 years agocore: Remove leftover adapter_get_default()
Claudio Takahasi [Fri, 18 Oct 2013 12:32:30 +0000 (09:32 -0300)]
core: Remove leftover adapter_get_default()

11 years agoandroid: Fix up white space issue
Johan Hedberg [Fri, 18 Oct 2013 11:58:34 +0000 (14:58 +0300)]
android: Fix up white space issue

11 years agoandroid: Remove bogus error log
Johan Hedberg [Fri, 18 Oct 2013 11:57:47 +0000 (14:57 +0300)]
android: Remove bogus error log

11 years agoandroid: Convert bt_adapter_new into a bt_adapter_init function
Johan Hedberg [Fri, 18 Oct 2013 11:11:11 +0000 (14:11 +0300)]
android: Convert bt_adapter_new into a bt_adapter_init function

11 years agoandroid: Remove unused bt_adapter_start/stop functions
Johan Hedberg [Fri, 18 Oct 2013 11:02:07 +0000 (14:02 +0300)]
android: Remove unused bt_adapter_start/stop functions

11 years agoandroid: Add PAN skeleton
Andrei Emeltchenko [Thu, 17 Oct 2013 08:26:46 +0000 (11:26 +0300)]
android: Add PAN skeleton

Add skeleton for pan Android HAL. This is modified version
from Frederic Danis earlier patch set.

11 years agoandroid: Add HID Host skeleton
Andrei Emeltchenko [Fri, 18 Oct 2013 10:47:58 +0000 (12:47 +0200)]
android: Add HID Host skeleton

Add skeleton for hidhost Android HAL. This is modified version
from Frederic Danis earlier patch set.

11 years agoandroid: Rename hal_bt_sock.c to hal-btsock.c
Andrei Emeltchenko [Fri, 18 Oct 2013 10:08:28 +0000 (13:08 +0300)]
android: Rename hal_bt_sock.c to hal-btsock.c

11 years agoandroid: Rename hal_bluetooth.c to hal-bluetooth.c
Andrei Emeltchenko [Fri, 18 Oct 2013 10:08:27 +0000 (13:08 +0300)]
android: Rename hal_bluetooth.c to hal-bluetooth.c

11 years agoandroid: Use kernel style to initialize struct fields
Andrei Emeltchenko [Fri, 18 Oct 2013 10:08:26 +0000 (13:08 +0300)]
android: Use kernel style to initialize struct fields

11 years agoandroid: Fix logging usage
Johan Hedberg [Fri, 18 Oct 2013 11:30:05 +0000 (14:30 +0300)]
android: Fix logging usage

11 years agoandroid: Implement read_info_complete callback
Andrei Emeltchenko [Fri, 18 Oct 2013 10:08:25 +0000 (13:08 +0300)]
android: Implement read_info_complete callback

Handle read info complete callback from mgmt interface.

11 years agobuild: Add missing Android files to EXTRA_DIST
Szymon Janc [Thu, 17 Oct 2013 20:28:41 +0000 (22:28 +0200)]
build: Add missing Android files to EXTRA_DIST

11 years agogitignore: Add android/haltest
Szymon Janc [Thu, 17 Oct 2013 20:28:40 +0000 (22:28 +0200)]
gitignore: Add android/haltest

11 years agoandroid: Fix crash in property_get stub
Szymon Janc [Thu, 17 Oct 2013 20:28:39 +0000 (22:28 +0200)]
android: Fix crash in property_get stub

If value was not found and default_value was not provided NULL pointer
was passed as argument to strncpy resulting in crash.

11 years agoandroid: Fix haltest build on Linux
Szymon Janc [Thu, 17 Oct 2013 20:28:38 +0000 (22:28 +0200)]
android: Fix haltest build on Linux

On Linux HAL library is build into haltest binary and can be access
directly. Provide simple implementation of hw_get_module() that does
it.

11 years agobuild: Add haltest command line tester
Szymon Janc [Thu, 17 Oct 2013 20:28:37 +0000 (22:28 +0200)]
build: Add haltest command line tester

This is intended for testing Android daemon and HAL library on Linux.

11 years agocore: Fix missing adapter address type
Claudio Takahasi [Thu, 17 Oct 2013 12:53:37 +0000 (09:53 -0300)]
core: Fix missing adapter address type

This patch fixes an invalid argument error when connecting to LE
devices. Bind and connect address type must match.

11 years agobuild: Add missing android/cutils/properties.h to EXTRA_DIST
Luiz Augusto von Dentz [Thu, 17 Oct 2013 14:40:07 +0000 (17:40 +0300)]
build: Add missing android/cutils/properties.h to EXTRA_DIST

11 years agoandroid: Fix build errors due to missing headers
Luiz Augusto von Dentz [Thu, 17 Oct 2013 11:17:03 +0000 (14:17 +0300)]
android: Fix build errors due to missing headers

In file included from ./android/hardware/bluetooth.h:24:0,
                 from android/hal_bt_sock.c:20:
./android/hardware/hardware.h:23:34: fatal error: cutils/native_handle.h: No such file or directory
 #include <cutils/native_handle.h>
                                  ^
In file included from ./android/hardware/bluetooth.h:24:0,
                 from android/hal_bluetooth.c:23:
./android/hardware/hardware.h:23:29: fatal error: system/graphics.h: No such file or directory
 #include <system/graphics.h>
                             ^

11 years agoandroid: Fix build error with autotools
Luiz Augusto von Dentz [Thu, 17 Oct 2013 08:38:29 +0000 (11:38 +0300)]
android: Fix build error with autotools

  CC       android/android_libbt_internal_la-hal_bluetooth.lo
android/hal_bluetooth.c:26:28: fatal error: cutils/sockets.h: No such file or directory
 #include <cutils/sockets.h>
                            ^

Apparently sockets.h is not used for anything, so for now remove it and
once it is actually necessary add local cutils/sockets.h so it can be
build with autotools as well.

11 years agoandroid: Fix build error when compiling with autotools
Luiz Augusto von Dentz [Thu, 17 Oct 2013 08:36:26 +0000 (11:36 +0300)]
android: Fix build error when compiling with autotools

android/hal_bt_sock.c:82:21: error: no previous declaration for 'bt_get_sock_interface' [-Werror=missing-declarations]
 btsock_interface_t *bt_get_sock_interface(void)

11 years agobuild: Enable building android HAL as libhal-internal.la
Luiz Augusto von Dentz [Thu, 17 Oct 2013 08:33:40 +0000 (11:33 +0300)]
build: Enable building android HAL as libhal-internal.la

11 years agoandroid: Add cutils/properties.h
Luiz Augusto von Dentz [Thu, 17 Oct 2013 08:32:04 +0000 (11:32 +0300)]
android: Add cutils/properties.h

11 years agoandroid: Add cutils/log.h
Luiz Augusto von Dentz [Thu, 17 Oct 2013 08:31:41 +0000 (11:31 +0300)]
android: Add cutils/log.h

11 years agobuild: Add Android HAL headers to EXTRA_DIST
Szymon Janc [Thu, 17 Oct 2013 10:08:06 +0000 (12:08 +0200)]
build: Add Android HAL headers to EXTRA_DIST

11 years agoandroid: Import Android HAL headers
Szymon Janc [Thu, 17 Oct 2013 10:08:05 +0000 (12:08 +0200)]
android: Import Android HAL headers

This imports BT HAL headers as of tag android-4.3_r3.1 from
https://android.googlesource.com/platform/hardware/libhardware

Those files are needed for building HAL library and haltester tool on
Linux.

11 years agoandroid: trivial typo fix
Andrei Emeltchenko [Thu, 17 Oct 2013 08:50:27 +0000 (11:50 +0300)]
android: trivial typo fix

11 years agoRevert "unit/sdp: Check that correct packet received in recv"
Johan Hedberg [Thu, 17 Oct 2013 08:49:02 +0000 (11:49 +0300)]
Revert "unit/sdp: Check that correct packet received in recv"

This reverts commit b9981c4fa197e79f7ecd480fd9fbfa3601d121a1. Some tests
have intentionally incorrect PDU lengths, so trying to be strict in the
check is wrong.

11 years agol2test: Set CID due to socket restrictions for LE
Claudio Takahasi [Wed, 16 Oct 2013 19:05:07 +0000 (16:05 -0300)]
l2test: Set CID due to socket restrictions for LE

Bluetooth kernel now restricts LE L2CAP sockets to ATT channels only.
For LE L2CAP socket bind, ATT CID is now mandatory. Reference: kernel patch
bfe4655f05d7ec4a7c0c1c7e4051862f824cd8ec

11 years agoandroid: sdp: Reuse BlueZ SDP server in Android
Andrei Emeltchenko [Wed, 16 Oct 2013 14:36:31 +0000 (17:36 +0300)]
android: sdp: Reuse BlueZ SDP server in Android

Reuse existing SDP server code in Android GPL daemon.

11 years agoandroid: Add adapter and device struct for BlueZ daemon
Andrei Emeltchenko [Wed, 16 Oct 2013 14:36:30 +0000 (17:36 +0300)]
android: Add adapter and device struct for BlueZ daemon

Adapter structure in BlueZ daemon keeps track of default adapter
and device structure keeps track about found devices.

11 years agoandroid: Add basic mgmt initialization sequence
Andrei Emeltchenko [Wed, 16 Oct 2013 14:36:29 +0000 (17:36 +0300)]
android: Add basic mgmt initialization sequence

Initialize bluetooth controller via mgmt interface.

11 years agoandroid: Create HAL API header skeleton
Andrei Emeltchenko [Wed, 16 Oct 2013 14:36:28 +0000 (17:36 +0300)]
android: Create HAL API header skeleton

Header describes the protocol between Android HAL threads and BlueZ
daemon. The header is added to host build and not to Android since
it is smart enough to include it automatically.

11 years agoandroid: Add calls to adapter methods in haltest
Jerzy Kasenberg [Wed, 16 Oct 2013 14:00:12 +0000 (16:00 +0200)]
android: Add calls to adapter methods in haltest

This is first code that actually calls HAL functions.
Functions defined in bt_interface_t can be executed.

11 years agoandroid: Add text conversion helpers to haltest
Jerzy Kasenberg [Wed, 16 Oct 2013 14:00:11 +0000 (16:00 +0200)]
android: Add text conversion helpers to haltest

Application uses a lot of text in the form of defines found in header
files to represent arguments and output.
Conversion helpers keep functionality of converting string as
bt_status_t or uuid in one place.

11 years agoandroid: Add history to line editor in haltest
Jerzy Kasenberg [Wed, 16 Oct 2013 14:00:10 +0000 (16:00 +0200)]
android: Add history to line editor in haltest

Added simple history to editor to save time.

11 years agoandroid: Add line editing to haltest
Jerzy Kasenberg [Wed, 16 Oct 2013 14:00:09 +0000 (16:00 +0200)]
android: Add line editing to haltest

Android does not have readline.
This patch allows to edit command line.

11 years agoandroid: Add haltest skeleton
Jerzy Kasenberg [Wed, 16 Oct 2013 14:00:08 +0000 (16:00 +0200)]
android: Add haltest skeleton

This tool will be used to test Android Bluetooth HAL implementation.

11 years agodoc/obex-api: Fix wrong description of Message1.Deleted property
Luiz Augusto von Dentz [Wed, 16 Oct 2013 13:36:24 +0000 (16:36 +0300)]
doc/obex-api: Fix wrong description of Message1.Deleted property

11 years agounit/sdp: Check that correct packet received in recv
Andrei Emeltchenko [Wed, 16 Oct 2013 08:46:50 +0000 (11:46 +0300)]
unit/sdp: Check that correct packet received in recv

11 years agoRelease 5.10
Marcel Holtmann [Tue, 15 Oct 2013 22:13:39 +0000 (15:13 -0700)]
Release 5.10

11 years agodoc: Mention the connectable support for LE controllers
Marcel Holtmann [Tue, 15 Oct 2013 22:12:13 +0000 (15:12 -0700)]
doc: Mention the connectable support for LE controllers

11 years agodoc: Mention the limited discoverable mode setting
Marcel Holtmann [Tue, 15 Oct 2013 22:09:17 +0000 (15:09 -0700)]
doc: Mention the limited discoverable mode setting

11 years agobuild: Update library version
Marcel Holtmann [Tue, 15 Oct 2013 21:56:51 +0000 (14:56 -0700)]
build: Update library version

11 years agotools: Add command for setting limited discoverable mode
Marcel Holtmann [Tue, 15 Oct 2013 21:30:02 +0000 (14:30 -0700)]
tools: Add command for setting limited discoverable mode

11 years agotools/obexctl: Add destination info to prompt
Luiz Augusto von Dentz [Thu, 10 Oct 2013 07:36:25 +0000 (10:36 +0300)]
tools/obexctl: Add destination info to prompt

11 years agotools/obexctl: Add rm command support for MAP messages
Luiz Augusto von Dentz [Wed, 9 Oct 2013 12:03:26 +0000 (15:03 +0300)]
tools/obexctl: Add rm command support for MAP messages

Add rm command support for MAP messages which can be used to set Delete
property using Message interface.

11 years agotools/obexctl: Add send command support for MAP messages
Luiz Augusto von Dentz [Sat, 5 Oct 2013 13:18:11 +0000 (16:18 +0300)]
tools/obexctl: Add send command support for MAP messages

Add send command support for MAP messages which can be used to push
messages using MessageAccess interface.

11 years agotools/obexctl: Add cp command support for MAP messages
Luiz Augusto von Dentz [Wed, 2 Oct 2013 08:50:22 +0000 (11:50 +0300)]
tools/obexctl: Add cp command support for MAP messages

Add cp command support for MAP messages which can be used to copy message
contents using Message interface.

11 years agotools/obexctl: Add info command support for MAP messages
Luiz Augusto von Dentz [Wed, 2 Oct 2013 08:20:28 +0000 (11:20 +0300)]
tools/obexctl: Add info command support for MAP messages

Add info command support for MAP messages which can be used to print
the details of objects using Message interface.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Message1
Luiz Augusto von Dentz [Wed, 2 Oct 2013 08:06:12 +0000 (11:06 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Message1

This adds proxy handling for org.bluez.obex.Message1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add ls command support for MAP sessions
Luiz Augusto von Dentz [Tue, 1 Oct 2013 12:56:31 +0000 (15:56 +0300)]
tools/obexctl: Add ls command support for MAP sessions

Add ls command support for MAP session which can be used to list current
folder using MessageAccess interface.

11 years agotools/obexctl: Add cd command support for MAP sessions
Luiz Augusto von Dentz [Tue, 1 Oct 2013 11:42:12 +0000 (14:42 +0300)]
tools/obexctl: Add cd command support for MAP sessions

Add cd command support for MAP session which can be used to set current
folder using MessageAccess interface.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.MessageAccess1
Luiz Augusto von Dentz [Tue, 1 Oct 2013 11:18:32 +0000 (14:18 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.MessageAccess1

This adds proxy handling for org.bluez.obex.MessageAccess1 so changes
to the proxy are printed in the output.

11 years agotools/obexctl: Add cp command support for PBAP sessions
Luiz Augusto von Dentz [Tue, 1 Oct 2013 07:12:10 +0000 (10:12 +0300)]
tools/obexctl: Add cp command support for PBAP sessions

Add cp command support for PBAP sessions which can be used to pull
contacts for the current phonebook using PhonebookAccess interface.

11 years agotools/obexctl: Add ls command support for PBAP sessions
Luiz Augusto von Dentz [Mon, 30 Sep 2013 08:30:52 +0000 (11:30 +0300)]
tools/obexctl: Add ls command support for PBAP sessions

Add ls command support for PBAP sessions which can be used to list
current phonebook using PhonebookAccess interface.

11 years agotools/obexctl: Add cd command support for PBAP sessions
Luiz Augusto von Dentz [Mon, 30 Sep 2013 08:01:45 +0000 (11:01 +0300)]
tools/obexctl: Add cd command support for PBAP sessions

Add cd command support for PBAP session whic can be used to change
current phonebook using PhonebookAccess interface.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.PhonebookAccess1
Luiz Augusto von Dentz [Mon, 30 Sep 2013 07:01:48 +0000 (10:01 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.PhonebookAccess1

This adds proxy handling for org.bluez.obex.PhonebookAccess1 so changes
to the proxy are printed in the output.

11 years agotools/obexctl: Print ETA time when transfer size is known
Luiz Augusto von Dentz [Tue, 24 Sep 2013 14:28:35 +0000 (17:28 +0300)]
tools/obexctl: Print ETA time when transfer size is known

This prints ETA together with the speed if property Size is set.

11 years agotools/obexctl: Print transfer speed
Luiz Augusto von Dentz [Mon, 23 Sep 2013 15:01:28 +0000 (18:01 +0300)]
tools/obexctl: Print transfer speed

This prints transfer speed with Transferred property.

11 years agotools/obexctl: Add mkdir command
Luiz Augusto von Dentz [Thu, 19 Sep 2013 14:55:30 +0000 (17:55 +0300)]
tools/obexctl: Add mkdir command

Add support for mkdir command which can be used to create folders using
FileTransfer interface.

11 years agotools/obexctl: Add rm command
Luiz Augusto von Dentz [Thu, 12 Sep 2013 13:06:22 +0000 (16:06 +0300)]
tools/obexctl: Add rm command

Add support for rm command which can be used to delete files using
FileTransfer interface.

11 years agotools/obexctl: Add mv command
Luiz Augusto von Dentz [Thu, 12 Sep 2013 09:57:34 +0000 (12:57 +0300)]
tools/obexctl: Add mv command

Add support for mv command which can be used to move files using
FileTransfer interface.

11 years agotools/obexctl: Add cp command
Luiz Augusto von Dentz [Thu, 12 Sep 2013 09:47:57 +0000 (12:47 +0300)]
tools/obexctl: Add cp command

Add support for cp command which can be used to copy files from/to current
folder using FileTransfer interface.

11 years agotools/obexctl: Add ls command
Luiz Augusto von Dentz [Tue, 10 Sep 2013 14:04:57 +0000 (17:04 +0300)]
tools/obexctl: Add ls command

Add support for ls command which can be used to list current folder
using FileTransfer interface.

11 years agotools/obexctl: Add cd command
Luiz Augusto von Dentz [Tue, 10 Sep 2013 13:19:38 +0000 (16:19 +0300)]
tools/obexctl: Add cd command

Add support for cd command which can be used to change current directory
using FileTransfer interface.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.FileTransfer1
Luiz Augusto von Dentz [Tue, 10 Sep 2013 08:06:15 +0000 (11:06 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.FileTransfer1

This adds proxy handling for org.bluez.obex.FileTransfer1 so changes to
the proxy are printed in the output.

11 years agotools/obexctl: Add send command
Luiz Augusto von Dentz [Fri, 16 Aug 2013 09:12:20 +0000 (12:12 +0300)]
tools/obexctl: Add send command

Add support for send command which can be used to send a file using
ObjectPush interface

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.ObjectPush1
Luiz Augusto von Dentz [Fri, 16 Aug 2013 07:56:52 +0000 (10:56 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.ObjectPush1

This adds proxy handling for org.bluez.obex.ObjectPush1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add cancel command
Luiz Augusto von Dentz [Mon, 9 Sep 2013 13:31:49 +0000 (16:31 +0300)]
tools/obexctl: Add cancel command

Add support for cance command which can be used to cancel ongoing
transfers

11 years agotools/obexctl: Add info command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 15:06:04 +0000 (18:06 +0300)]
tools/obexctl: Add info command

Add support for info command which can be used to print transfer
information

11 years agotools/obexctl: Add select command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 14:21:42 +0000 (17:21 +0300)]
tools/obexctl: Add select command

Add support for select command which can be used to set the default
session

11 years agotools/obexctl: Add show command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 14:10:16 +0000 (17:10 +0300)]
tools/obexctl: Add show command

Add support for show command which can be used to show session
information

11 years agotools/obexctl: Add list command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 13:37:53 +0000 (16:37 +0300)]
tools/obexctl: Add list command

Add support for list command which can be used to list available sessions

11 years agotools/obexctl: Add disconnect command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 13:15:36 +0000 (16:15 +0300)]
tools/obexctl: Add disconnect command

Add support for disconnect command which can be used to disconnect
sessions.

11 years agotools/obexctl: Add connect command
Luiz Augusto von Dentz [Wed, 2 Oct 2013 11:55:17 +0000 (14:55 +0300)]
tools/obexctl: Add connect command

Add support for connect command which can be used to create a session to
a device.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Client1
Luiz Augusto von Dentz [Wed, 2 Oct 2013 11:53:33 +0000 (14:53 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Client1

This adds proxy handling for org.bluez.obex.Client1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Transfer1
Luiz Augusto von Dentz [Wed, 14 Aug 2013 11:04:06 +0000 (14:04 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Transfer1

This adds proxy handling for org.bluez.obex.Transfer1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Session1
Luiz Augusto von Dentz [Wed, 14 Aug 2013 10:51:41 +0000 (13:51 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Session1

This adds proxy handling for org.bluez.obex.Session1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add initial code
Luiz Augusto von Dentz [Mon, 12 Aug 2013 13:30:46 +0000 (16:30 +0300)]
tools/obexctl: Add initial code

This add initial code for things like input handling as well as some
basic commands.

11 years agobuild: Add obexctl command line client
Luiz Augusto von Dentz [Mon, 12 Aug 2013 12:13:22 +0000 (15:13 +0300)]
build: Add obexctl command line client

obexctl is intended to be a command line client of obexd.

11 years agotools/mpris-player: Forward player signals
Luiz Augusto von Dentz [Thu, 10 Oct 2013 12:20:09 +0000 (15:20 +0300)]
tools/mpris-player: Forward player signals

Forward signals received from player in the session bus to the system
bus where bluetoothd can catch them.

11 years agoaudio/media: Send status changed if position changes
Luiz Augusto von Dentz [Thu, 10 Oct 2013 11:33:43 +0000 (14:33 +0300)]
audio/media: Send status changed if position changes

If position changes send a status changed event to force the position to
be resynced.

11 years agoaudio/media: Remove unused field
Luiz Augusto von Dentz [Tue, 15 Oct 2013 10:01:59 +0000 (13:01 +0300)]
audio/media: Remove unused field

track_watch is no longer used for anything since MPRIS interfaces was
adopted.

11 years agoaudio/media: Add support for tracking Seeked signal
Luiz Augusto von Dentz [Wed, 9 Oct 2013 14:04:31 +0000 (17:04 +0300)]
audio/media: Add support for tracking Seeked signal

This tracks Seeked signal and update the position in case it happens.

11 years agoaudio/AVCTP: Fix sending requests with same transaction id
Luiz Augusto von Dentz [Mon, 14 Oct 2013 12:46:03 +0000 (15:46 +0300)]
audio/AVCTP: Fix sending requests with same transaction id

If a request is outstanding in the processed list its transaction shall
not be reused as it can cause the wrong callback to be called.

This can be reproduced in very rare occasions where e.g. a notification
using the same transaction of the current request arrives before the
response itself.

11 years agoobexd/session: Fix crash when transport is disconnected
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:47 +0000 (13:14 +0300)]
obexd/session: Fix crash when transport is disconnected

When transport is disconnected unexpectedly it can cause the following
crash:
gobex-DEBUG: gobex/gobex.c:g_obex_send_internal() The transport is not connected
Invalid read of size 8
   at 0x42662E: session_process_queue (session.c:789)
   by 0x42668F: session_process (session.c:719)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40D5FC: main (main.c:319)
 Address 0x5086760 is 32 bytes inside a block of size 56 free'd
   at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x426146: session_process_setpath (session.c:1063)
   by 0x426629: session_process_queue (session.c:786)
   by 0x42668F: session_process (session.c:719)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40D5FC: main (main.c:319)

11 years agoaudio/AVDTP: Add struct for discover specific data
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:46 +0000 (13:14 +0300)]
audio/AVDTP: Add struct for discover specific data

This pushes discover specific data to a struct which is a common practice
if the field contains callback and user_data specific to certain
operations.

11 years agoaudio/AVDTP: Fix crash after disconnecting
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:45 +0000 (13:14 +0300)]
audio/AVDTP: Fix crash after disconnecting

If the session is disconnected while process_discover is pending the
source id is not removed causing the following crash:
      at 0x414C08: finalize_discovery (avdtp.c:1050)
      by 0x414C5A: process_discover (avdtp.c:3346)
      by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x40A3B6: main (main.c:595)
    Address 0x5e25de8 is 1,144 bytes inside a block of size 1,176 free'd
    at 0x4A074C4: free (in
    /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x4152F2: connection_lost (avdtp.c:1206)
      by 0x4162C4: cancel_request (avdtp.c:2662)
      by 0x4164BD: request_timeout (avdtp.c:2672)
      by 0x3D46048962: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x40A3B6: main (main.c:595)

11 years agomonitor: Add decoding for reading and writing current IAC LAP
Marcel Holtmann [Mon, 14 Oct 2013 21:59:55 +0000 (14:59 -0700)]
monitor: Add decoding for reading and writing current IAC LAP

11 years agoemulator: Add support for reading IAC information
Marcel Holtmann [Mon, 14 Oct 2013 21:43:58 +0000 (14:43 -0700)]
emulator: Add support for reading IAC information

11 years agotools/mgmt-tester: Add test case for scan parameters
Marcel Holtmann [Mon, 14 Oct 2013 17:12:12 +0000 (10:12 -0700)]
tools/mgmt-tester: Add test case for scan parameters

11 years agotools/mgmt-tester: Add test cases for static addresses
Marcel Holtmann [Mon, 14 Oct 2013 17:07:38 +0000 (10:07 -0700)]
tools/mgmt-tester: Add test cases for static addresses

11 years agoandroid: Start Android Bluetooth daemon
Andrei Emeltchenko [Mon, 14 Oct 2013 12:56:14 +0000 (15:56 +0300)]
android: Start Android Bluetooth daemon

Start Android Bluetooth daemon from HAL init(). Make sure
that daemon is in "running" state.

11 years agoandroid: Enable Socket interface
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:02 +0000 (13:02 +0300)]
android: Enable Socket interface

Returns socket interface, use header hal.h to avoid externs.

11 years agoandroid: Add Socket Bluetooth HAL template
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:01 +0000 (13:02 +0300)]
android: Add Socket Bluetooth HAL template

bt_sock HAL handles Bluetooth sockets for Android.

11 years agoandroid: Add Adapter Bluetooth HAL template
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:00 +0000 (13:02 +0300)]
android: Add Adapter Bluetooth HAL template

Add template for bluetooth.h Android HAL.

11 years agobuild: Add android/hal-ipc-api.txt to EXTRA_DIST
Szymon Janc [Mon, 14 Oct 2013 08:05:59 +0000 (10:05 +0200)]
build: Add android/hal-ipc-api.txt to EXTRA_DIST