OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoandroid/audio: Add audio_ipc_cleanup function
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:28 +0000 (02:24 +0100)]
android/audio: Add audio_ipc_cleanup function

10 years agoandroid/audio: Refactor create_audio_ipc
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:24 +0000 (02:24 +0100)]
android/audio: Refactor create_audio_ipc

This patch adds creating listening audio ipc socket in AudioFlinger
context on audio_open() and moves accepting connection to ipc_th.

10 years agoandroid: Fix error check from pthread_create
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:23 +0000 (02:24 +0100)]
android: Fix error check from pthread_create

pthread_create() returns 0 on success or errno code which is non negative
number

10 years agoandroid/audio: Prefix error log with "audio"
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:22 +0000 (02:24 +0100)]
android/audio: Prefix error log with "audio"

10 years agoandroid/tester: Multi property check for test case
Grzegorz Kolodziejczyk [Fri, 10 Jan 2014 14:21:38 +0000 (15:21 +0100)]
android/tester: Multi property check for test case

This patch allows to check multiple properties for test case. Properties
can be prioritized to allow check if they'll come in right order. Now
properties aren't treated as a "single" callback. In future in one
callback multiple properties can come.

10 years agoandroid/pan: Remove connected PAN devices on profile unregister call
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:49 +0000 (16:11 +0200)]
android/pan: Remove connected PAN devices on profile unregister call

10 years agoandroid/pan: Implement PAN enable HAL api at daemon side
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:48 +0000 (16:11 +0200)]
android/pan: Implement PAN enable HAL api at daemon side

10 years agoandroid/pan: Listen for incoming connections and accept in NAP role
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:47 +0000 (16:11 +0200)]
android/pan: Listen for incoming connections and accept in NAP role

Listen for incoming connections and accept it. Create bnep interface
add it to bridge and notify control and connection state information
through HAL. Remove the device on disconnect request. If android
settings UI does not have bluetooth tethering enabled it immediately
sends disconnect signal.

10 years agoandroid/pan: Register Network Access Point
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:46 +0000 (16:11 +0200)]
android/pan: Register Network Access Point

Register NAP server and adds bnep bridge. Removes bridge
on destroy call. Bridge mechanism is needed when device acting
as a server and listen for incoming connections.

10 years agotools/mgmt-tester: Add basic SSP test case
Johan Hedberg [Fri, 10 Jan 2014 14:04:40 +0000 (16:04 +0200)]
tools/mgmt-tester: Add basic SSP test case

10 years agoemulator: Add basic support for SSP completion
Johan Hedberg [Fri, 10 Jan 2014 14:04:25 +0000 (16:04 +0200)]
emulator: Add basic support for SSP completion

10 years agoemulator/bthost: Add basic handling of user confirm request and SSP complete events
Johan Hedberg [Fri, 10 Jan 2014 14:03:48 +0000 (16:03 +0200)]
emulator/bthost: Add basic handling of user confirm request and SSP complete events

10 years agoemulator: Add dummy cmd complete handler for IO Capability Request Reply
Johan Hedberg [Fri, 10 Jan 2014 14:02:51 +0000 (16:02 +0200)]
emulator: Add dummy cmd complete handler for IO Capability Request Reply

10 years agoemulator/bthost: Add basic IO Capability Request & Response handling
Johan Hedberg [Fri, 10 Jan 2014 13:06:19 +0000 (15:06 +0200)]
emulator/bthost: Add basic IO Capability Request & Response handling

10 years agoemulator: Add basic HCI_IO_Capability_Request_Reply handling
Johan Hedberg [Fri, 10 Jan 2014 13:05:17 +0000 (15:05 +0200)]
emulator: Add basic HCI_IO_Capability_Request_Reply handling

10 years agotools/bthost: Add dummy handler for HCI_Write_SSP_Mode completion
Johan Hedberg [Fri, 10 Jan 2014 12:52:06 +0000 (14:52 +0200)]
tools/bthost: Add dummy handler for HCI_Write_SSP_Mode completion

10 years agoemulator/bthost: Track remote address in btconn
Johan Hedberg [Fri, 10 Jan 2014 12:51:06 +0000 (14:51 +0200)]
emulator/bthost: Track remote address in btconn

10 years agotools/mgmt-tester: Add support for enabling client side SSP
Johan Hedberg [Fri, 10 Jan 2014 12:17:42 +0000 (14:17 +0200)]
tools/mgmt-tester: Add support for enabling client side SSP

10 years agoemulator: Add initial IO Capability Request sending when SSP is enabled
Johan Hedberg [Fri, 10 Jan 2014 12:16:37 +0000 (14:16 +0200)]
emulator: Add initial IO Capability Request sending when SSP is enabled

10 years agotools/mgmt-tester: Add support for runtime based HCI data checks
Johan Hedberg [Fri, 10 Jan 2014 12:13:07 +0000 (14:13 +0200)]
tools/mgmt-tester: Add support for runtime based HCI data checks

10 years agoemulator/bthost: Add support for enabling SSP mode
Johan Hedberg [Fri, 10 Jan 2014 12:10:44 +0000 (14:10 +0200)]
emulator/bthost: Add support for enabling SSP mode

10 years agoandroid/haltest: Add support for loading Audio HAL
Luiz Augusto von Dentz [Thu, 9 Jan 2014 12:47:36 +0000 (14:47 +0200)]
android/haltest: Add support for loading Audio HAL

This makes audio.a2dp.default.so to be loaded by haltest.

10 years agoandroid: Load bluetooth.default.so as a module
Luiz Augusto von Dentz [Fri, 10 Jan 2014 12:02:30 +0000 (14:02 +0200)]
android: Load bluetooth.default.so as a module

This makes haltest and android-tester to load bluetooth.default.so
instead of linking directly to it.

10 years agoandroid: Convert libhal-internal to a plugin
Luiz Augusto von Dentz [Fri, 10 Jan 2014 11:15:06 +0000 (13:15 +0200)]
android: Convert libhal-internal to a plugin

This convert the static library libhal-internal.la to
bluetooth.default.la when building with autotools.

10 years agoandroid: Convert libaudio-internal to a plugin
Luiz Augusto von Dentz [Fri, 10 Jan 2014 10:55:38 +0000 (12:55 +0200)]
android: Convert libaudio-internal to a plugin

This convert the static library libaudio-internal.la to
audio.a2dp.default.so when building with autotools.

10 years agoandroid/pts: Add PTS test results for L2CAP
Sebastian Chlad [Fri, 10 Jan 2014 11:47:40 +0000 (13:47 +0200)]
android/pts: Add PTS test results for L2CAP

10 years agodoc: Add documentation for BR/EDR Secure Connections support
Marcel Holtmann [Fri, 10 Jan 2014 10:02:28 +0000 (02:02 -0800)]
doc: Add documentation for BR/EDR Secure Connections support

10 years agotools: Show results for local OOB extended data
Marcel Holtmann [Fri, 10 Jan 2014 03:53:59 +0000 (19:53 -0800)]
tools: Show results for local OOB extended data

10 years agolib: Add structure for local OOB extended data information
Marcel Holtmann [Fri, 10 Jan 2014 03:50:18 +0000 (19:50 -0800)]
lib: Add structure for local OOB extended data information

10 years agotools: Account for kernel with secure connections support in mgmt-tester
Marcel Holtmann [Fri, 10 Jan 2014 03:48:59 +0000 (19:48 -0800)]
tools: Account for kernel with secure connections support in mgmt-tester

10 years agotools: Add support for enabling secure connections support
Marcel Holtmann [Fri, 10 Jan 2014 03:47:24 +0000 (19:47 -0800)]
tools: Add support for enabling secure connections support

10 years agolib: Add constant for secure connections support command
Marcel Holtmann [Fri, 10 Jan 2014 03:46:45 +0000 (19:46 -0800)]
lib: Add constant for secure connections support command

10 years agotools: Add support for reading local OOB data from mgmt interface
Marcel Holtmann [Fri, 10 Jan 2014 03:39:59 +0000 (19:39 -0800)]
tools: Add support for reading local OOB data from mgmt interface

10 years agoshared: Fix not calling destroy callback while clearing up handlers
Szymon Janc [Thu, 9 Jan 2014 16:56:13 +0000 (17:56 +0100)]
shared: Fix not calling destroy callback while clearing up handlers

read/write_watch_destroy is be called after io_set_read/write_handler
exits. This was resulting in io destroy callback being NULLem before
destroy was called resulting in io destroy not being called at all.

Fix this by assigning destroy callback only if setting non-NULL
callback. destroy_watch will clean it when called.

Fix following valgrind report:

168 (120 direct, 48 indirect) bytes in 1 blocks are definitely lost in
       loss record 34 of 36
   at 0x4C2C494: calloc (in /usr/lib/valgrind/
       vgpreload_memcheck-amd64-linux.so)
   by 0x409BAE: mgmt_new (mgmt.c:372)
   by 0x409D05: mgmt_new_default (mgmt.c:469)
   by 0x40E100: test_pre_setup (android-tester.c:371)
   by 0x40AD84: start_tester (tester.c:586)
   by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B76C: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)

10 years agoandroid/tester: Adjust get adapter class test value
Szymon Janc [Thu, 9 Jan 2014 19:07:06 +0000 (20:07 +0100)]
android/tester: Adjust get adapter class test value

Currently CoD is hardcoded so just adjust test value for now.

10 years agoandroid/tester: Add test case state handling
Grzegorz Kolodziejczyk [Thu, 9 Jan 2014 11:01:34 +0000 (12:01 +0100)]
android/tester: Add test case state handling

This patch make test state handling more stable by avoiding errors like
i.e. double free of memory in teardown phase. Double state set is
undesirable for test case and may cause errors. Now after every
condition change, test state is checked if it can set test state to pass.
In some places of test fail, returns are added to avoid furhter code
execution.

10 years agoandroid/tester: Use common property check function for all test props
Grzegorz Kolodziejczyk [Thu, 9 Jan 2014 11:01:33 +0000 (12:01 +0100)]
android/tester: Use common property check function for all test props

This patch makes discovery device found test case to use generic
property check method.

10 years agoandroid/tester: Remove redundant whitespace
Grzegorz Kolodziejczyk [Thu, 9 Jan 2014 11:01:32 +0000 (12:01 +0100)]
android/tester: Remove redundant whitespace

10 years agoandroid/haltest: Silence static analyzers
Andrei Emeltchenko [Thu, 9 Jan 2014 10:45:20 +0000 (12:45 +0200)]
android/haltest: Silence static analyzers

This makes code more readable and silence static analyzers which think
that pipe and fd are close two times.

10 years agolib/sdp: Fix incorrect sizeof argument
Andrei Emeltchenko [Thu, 9 Jan 2014 16:11:04 +0000 (18:11 +0200)]
lib/sdp: Fix incorrect sizeof argument

length is a pointer to int table not int* table.

10 years agol2test: Fix using incorrect size of option
Andrei Emeltchenko [Thu, 9 Jan 2014 16:11:03 +0000 (18:11 +0200)]
l2test: Fix using incorrect size of option

Use size of option instead of size of pointer

10 years agohcidump: Fix missing break
Andrei Emeltchenko [Thu, 9 Jan 2014 16:11:02 +0000 (18:11 +0200)]
hcidump: Fix missing break

10 years agoclient: Add unblock command
Szymon Janc [Wed, 8 Jan 2014 00:02:28 +0000 (01:02 +0100)]
client: Add unblock command

10 years agoclient: Add block command
Szymon Janc [Wed, 8 Jan 2014 00:02:27 +0000 (01:02 +0100)]
client: Add block command

10 years agoclient: Add untrust command
Szymon Janc [Wed, 8 Jan 2014 00:02:26 +0000 (01:02 +0100)]
client: Add untrust command

10 years agoinput: Fix connecting new trusted sixaxis device
Szymon Janc [Wed, 8 Jan 2014 00:02:25 +0000 (01:02 +0100)]
input: Fix connecting new trusted sixaxis device

If sixaxis device was trusted before first connection over Bluetooth
connection might get accepted before device services were discovered.
This results in conection to PSM19 not being added to idev. To fix
this channel for PSM19 is also added to SDP complete callback so that
both channels are added.

10 years agoinput: Fix check if device is sixaxis in auth_callback
Szymon Janc [Wed, 8 Jan 2014 00:02:24 +0000 (01:02 +0100)]
input: Fix check if device is sixaxis in auth_callback

We need to accept connection if idev is not present but device is sixaxis.
This fix not doing so for sixaxis devices.

10 years agoinput: Fix crash on authorization reply with first sixaxis connection
Szymon Janc [Wed, 8 Jan 2014 00:02:23 +0000 (01:02 +0100)]
input: Fix crash on authorization reply with first sixaxis connection

Bogus unref in sixaxis_sdp_cb was resulting in NULL pointer dereference when
auth_callback was called.

src/adapter.c:connected_callback() hci0 device 00:06:F7:57:08:9E
    connected eir_len 5
src/device.c:device_set_class() /org/bluez/hci0/dev_00_06_F7_57_08_9E
    0x000508
profiles/input/server.c:connect_event_cb() Incoming connection from
    00:06:F7:57:08:9E on PSM 17
profiles/input/device.c:input_device_set_channel() idev (nil) psm 17
profiles/input/server.c:confirm_event_cb()
src/agent.c:agent_ref() 0x8117eb8: ref=2
src/agent.c:agent_authorize_service() authorize service request was
    sent for /org/bluez/hci0/dev_00_06_F7_57_08_9E
src/device.c:device_probe_profiles() Probing profiles for device
    00:06:F7:57:08:9E
profiles/input/device.c:input_device_register()
    /org/bluez/hci0/dev_00_06_F7_57_08_9E
src/service.c:btd_service_ref() 0x811f580: ref=2
src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E
    profile input-hid state changed: unavailable -> disconnected (0)
src/device.c:device_svc_resolved()
    /org/bluez/hci0/dev_00_06_F7_57_08_9E err 0
profiles/input/server.c:sixaxis_sdp_cb() err 0 (Success)
profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm
    17
profiles/input/server.c:connect_event_cb() Incoming connection from
    00:06:F7:57:08:9E on PSM 19
profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm
    19
src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E
    profile input-hid state changed: disconnected -> connected (0)
sixaxis: compatible device connected: PLAYSTATION(R)3 Controller
    (054C:0268)
plugins/sixaxis.c:setup_leds() number 2
sixaxis: failed to set LEDS (0 bytes written)
src/agent.c:agent_ref() 0x8117eb8: ref=3
Program received signal SIGSEGV, Segmentation fault.

10 years agosixaxis: Don't mark USB plugged device as trusted
Szymon Janc [Wed, 8 Jan 2014 00:02:22 +0000 (01:02 +0100)]
sixaxis: Don't mark USB plugged device as trusted

There were some valid conserns raised against marking plugged device
as trusted. Mainly due to posibility of crafted USB device. With this
patch user will be asked to confirm service connection and device can
be marked as trusted like any other devices.

10 years agoshared: Fix memory leaks in mgmt_unref
Szymon Janc [Thu, 9 Jan 2014 14:17:10 +0000 (15:17 +0100)]
shared: Fix memory leaks in mgmt_unref

Destroy notify and pending lists on freeing mgmt. Those two lists
cannot be destroyed in same place as reply and request queues due
to being used in can_read_data().

Fix following valgrind reports:

24 bytes in 1 blocks are definitely lost in loss record 70 of 212
   at 0x4C2C494: calloc (in /usr/lib/valgrind/
       vgpreload_memcheck-amd64-linux.so)
   by 0x46B5E2: queue_new (queue.c:46)
   by 0x46C3CA: mgmt_new (mgmt.c:407)
   by 0x46C4B5: mgmt_new_default (mgmt.c:466)
   by 0x45FB45: adapter_init (adapter.c:6237)
   by 0x40A4F1: main (main.c:534)

24 bytes in 1 blocks are definitely lost in loss record 71 of 212
   at 0x4C2C494: calloc (in /usr/lib/
       valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x46B5E2: queue_new (queue.c:46)
   by 0x46C3D8: mgmt_new (mgmt.c:417)
   by 0x46C4B5: mgmt_new_default (mgmt.c:466)
   by 0x45FB45: adapter_init (adapter.c:6237)
   by 0x40A4F1: main (main.c:534)

10 years agoshared: Fix use after free in queue_foreach
Szymon Janc [Thu, 9 Jan 2014 13:32:37 +0000 (14:32 +0100)]
shared: Fix use after free in queue_foreach

Function passed to queue_foreach may free queue entry. Make loop safe
with that. Fix number of following valgrin reports.

Invalid read of size 8
   at 0x408EEC: queue_foreach (queue.c:181)
   by 0x409A0E: can_read_data (mgmt.c:286)
   by 0x40896C: read_callback (io-glib.c:164)
   by 0x4E7C3B5: g_main_context_dispatch (in
       /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B5FC: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)
 Address 0x59603a8 is 8 bytes inside a block of size 16 free'd
   at 0x4C2B60C: free (in /usr/lib/valgrind/
       vgpreload_memcheck-amd64-linux.so)
   by 0x40910D: queue_remove_all (queue.c:289)
   by 0x40A0BD: mgmt_unregister_all (mgmt.c:792)
   by 0x40A0F4: mgmt_unref (mgmt.c:499)
   by 0x40D814: index_removed_callback (android-tester.c:329)
   by 0x408EEB: queue_foreach (queue.c:184)
   by 0x409A0E: can_read_data (mgmt.c:286)
   by 0x40896C: read_callback (io-glib.c:164)
   by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B5FC: tester_run (tester.c:784)

10 years agoandroid/audio: Fix having declaration before code
Luiz Augusto von Dentz [Thu, 9 Jan 2014 13:24:11 +0000 (15:24 +0200)]
android/audio: Fix having declaration before code

10 years agoshared: Add ref counting to struct io
Szymon Janc [Thu, 9 Jan 2014 12:44:51 +0000 (13:44 +0100)]
shared: Add ref counting to struct io

This fix use after free in watch_destroy callbacks after mgmt_unref.
Fix number of following valgrind reports:

Invalid read of size 8
   at 0x4088A1: read_watch_destroy (io-glib.c:116)
   by 0x4E794A7: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7C4C1: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B53C: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)
 Address 0x595f828 is 24 bytes inside a block of size 72 free'd
   at 0x4C2B60C: free (in /usr/lib/valgrind/
       vgpreload_memcheck-amd64-linux.so)
   by 0x40A079: mgmt_unref (mgmt.c:504)
   by 0x40D754: index_removed_callback (android-tester.c:329)
   by 0x408E67: queue_foreach (queue.c:180)
   by 0x40994E: can_read_data (mgmt.c:282)
   by 0x40893C: read_callback (io-glib.c:135)
   by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B53C: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)

Invalid write of size 4
   at 0x4088B3: read_watch_destroy (io-glib.c:119)
   by 0x4E794A7: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7C4C1: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B53C: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)
 Address 0x595f818 is 8 bytes inside a block of size 72 free'd
   at 0x4C2B60C: free (in /usr/lib/valgrind/
       vgpreload_memcheck-amd64-linux.so)
   by 0x40A079: mgmt_unref (mgmt.c:504)
   by 0x40D754: index_removed_callback (android-tester.c:329)
   by 0x408E67: queue_foreach (queue.c:180)
   by 0x40994E: can_read_data (mgmt.c:282)
   by 0x40893C: read_callback (io-glib.c:135)
   by 0x4E7C3B5: g_main_context_dispatch (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x4E7C707: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3800.1)
   by 0x4E7CB09: g_main_loop_run (in /lib/x86_64-linux-gnu/
       libglib-2.0.so.0.3800.1)
   by 0x40B53C: tester_run (tester.c:784)
   by 0x4034F4: main (android-tester.c:2127)

10 years agotools/mgmt-tester: Name Pair Device tests more descriptively
Johan Hedberg [Thu, 9 Jan 2014 13:11:16 +0000 (15:11 +0200)]
tools/mgmt-tester: Name Pair Device tests more descriptively

10 years agotools/mgmt-tester: Add basic security mode 3 test case
Johan Hedberg [Thu, 9 Jan 2014 12:51:30 +0000 (14:51 +0200)]
tools/mgmt-tester: Add basic security mode 3 test case

10 years agoemulator: Add basic security mode 3 support
Johan Hedberg [Thu, 9 Jan 2014 12:51:20 +0000 (14:51 +0200)]
emulator: Add basic security mode 3 support

10 years agoshared: Fix clearing of IO handlers
Szymon Janc [Thu, 9 Jan 2014 10:31:48 +0000 (11:31 +0100)]
shared: Fix clearing of IO handlers

If NULL callback is passed to io_set_read/write_handler don't add watch
for it and just clear struct io memebers. This was resulting in
write/read_callback being call in loop due to fd being never written
or read.

10 years agoshared: Use return value to indicate IO watch removal
Marcel Holtmann [Thu, 9 Jan 2014 10:23:20 +0000 (02:23 -0800)]
shared: Use return value to indicate IO watch removal

10 years agoshared: Remove watches before freeing IO channel
Marcel Holtmann [Thu, 9 Jan 2014 09:57:00 +0000 (01:57 -0800)]
shared: Remove watches before freeing IO channel

10 years agoandroid/bluetooth: Set major and minor class od device
Szymon Janc [Wed, 8 Jan 2014 12:16:58 +0000 (13:16 +0100)]
android/bluetooth: Set major and minor class od device

Currently this is hardcoded to Phone/Smartphone.

10 years agoandroid/bluetooth: Set default adapter name on first start
Szymon Janc [Wed, 8 Jan 2014 10:21:37 +0000 (11:21 +0100)]
android/bluetooth: Set default adapter name on first start

On first start always set name to default name. Adapter name is
updated on start only if current name is different.

10 years agoandroid: Fix typo in audio plugin file list
Marcel Holtmann [Thu, 9 Jan 2014 05:33:41 +0000 (21:33 -0800)]
android: Fix typo in audio plugin file list

10 years agoshared: Use IO abstraction for mgmt handling
Marcel Holtmann [Thu, 9 Jan 2014 04:51:55 +0000 (20:51 -0800)]
shared: Use IO abstraction for mgmt handling

10 years agoshared: Add support for GLib based IO handling
Marcel Holtmann [Thu, 9 Jan 2014 04:46:46 +0000 (20:46 -0800)]
shared: Add support for GLib based IO handling

10 years agoshared: Add skeleton for generic IO framework
Marcel Holtmann [Thu, 9 Jan 2014 03:39:09 +0000 (19:39 -0800)]
shared: Add skeleton for generic IO framework

10 years agoshared: Use C library functions for memory allocation
Marcel Holtmann [Thu, 9 Jan 2014 01:59:49 +0000 (17:59 -0800)]
shared: Use C library functions for memory allocation

10 years agoshared: Replace mgmt notify list with internal queue handling
Marcel Holtmann [Thu, 9 Jan 2014 00:00:24 +0000 (16:00 -0800)]
shared: Replace mgmt notify list with internal queue handling

10 years agoshared: Replace mgmt pending list with a queue
Marcel Holtmann [Wed, 8 Jan 2014 23:26:26 +0000 (15:26 -0800)]
shared: Replace mgmt pending list with a queue

10 years agoshared: Fix queue function to remove only specific entries
Marcel Holtmann [Wed, 8 Jan 2014 23:12:04 +0000 (15:12 -0800)]
shared: Fix queue function to remove only specific entries

10 years agoshared: Use internal queue handling for mgmt interface
Marcel Holtmann [Wed, 8 Jan 2014 23:01:04 +0000 (15:01 -0800)]
shared: Use internal queue handling for mgmt interface

10 years agomonitor: Add decoding of LMP operations with empty PDU
Marcel Holtmann [Wed, 8 Jan 2014 18:34:08 +0000 (10:34 -0800)]
monitor: Add decoding of LMP operations with empty PDU

10 years agomonitor: Add support for LMP pairing and encryption setup decoding
Marcel Holtmann [Wed, 8 Jan 2014 18:12:06 +0000 (10:12 -0800)]
monitor: Add support for LMP pairing and encryption setup decoding

10 years agoandroid: Fix bluetoothd installation path
Andrzej Kaczmarek [Wed, 8 Jan 2014 16:42:01 +0000 (17:42 +0100)]
android: Fix bluetoothd installation path

This patch removes explicit LOCAL_MODULE_PATH definition for bluetoothd
and bluetoothd-snoop modules which caused both binaries to be installed
in /system/xbin instead of /system/bin folder.

10 years agoemulator: Add missing PIN Code Request Reply bit to supported commands
Johan Hedberg [Wed, 8 Jan 2014 15:46:27 +0000 (17:46 +0200)]
emulator: Add missing PIN Code Request Reply bit to supported commands

10 years agoandroid/audio: Add listener thread on the Audio HAL socket
Lukasz Rymanowski [Wed, 8 Jan 2014 15:19:31 +0000 (16:19 +0100)]
android/audio: Add listener thread on the Audio HAL socket

This patch add thread which is reponsible for listen on audio HAL
socket, open a2dp endpoint(s) and maintain socket.
When bluetooth daemon goes down, HAL audio plugin starts to listen on
Audio HAL socket again.

10 years agotools/mgmt-tester: Fix potential NULL pointer dereference
Johan Hedberg [Wed, 8 Jan 2014 15:24:22 +0000 (17:24 +0200)]
tools/mgmt-tester: Fix potential NULL pointer dereference

10 years agoandroid-tester: Add HIDHost initial interface setup test
Ravi kumar Veeramally [Wed, 8 Jan 2014 14:19:10 +0000 (16:19 +0200)]
android-tester: Add HIDHost initial interface setup test

10 years agoandroid/pixit: Add PTS version to respective pixit
Sebastian Chlad [Tue, 7 Jan 2014 22:17:47 +0000 (23:17 +0100)]
android/pixit: Add PTS version to respective pixit

10 years agoemulator: Fix emitting incorrect auth complete on acceptor side
Johan Hedberg [Wed, 8 Jan 2014 14:34:12 +0000 (16:34 +0200)]
emulator: Fix emitting incorrect auth complete on acceptor side

10 years agoemulator/bthost: Add dummy handler for Authentication Complete HCI event
Johan Hedberg [Wed, 8 Jan 2014 14:20:25 +0000 (16:20 +0200)]
emulator/bthost: Add dummy handler for Authentication Complete HCI event

10 years agoemulator/bthost: Add dummy handler for Link Key Notification HCI event
Johan Hedberg [Wed, 8 Jan 2014 14:19:22 +0000 (16:19 +0200)]
emulator/bthost: Add dummy handler for Link Key Notification HCI event

10 years agoemulator: Add initial support for Link Key Notify event
Johan Hedberg [Wed, 8 Jan 2014 14:17:05 +0000 (16:17 +0200)]
emulator: Add initial support for Link Key Notify event

10 years agoemulator: Set bthost PIN Code when specified by test case
Johan Hedberg [Wed, 8 Jan 2014 14:06:23 +0000 (16:06 +0200)]
emulator: Set bthost PIN Code when specified by test case

10 years agoemulator/bthost: Add basic PIN Code Request handling
Johan Hedberg [Wed, 8 Jan 2014 13:56:06 +0000 (15:56 +0200)]
emulator/bthost: Add basic PIN Code Request handling

10 years agotools/mgmt-tester: Add basic support for responding to mgmt PIN Code requests
Johan Hedberg [Wed, 8 Jan 2014 13:46:55 +0000 (15:46 +0200)]
tools/mgmt-tester: Add basic support for responding to mgmt PIN Code requests

10 years agoemulator: Add basic support for PIN Code Request Reply command
Johan Hedberg [Wed, 8 Jan 2014 12:46:17 +0000 (14:46 +0200)]
emulator: Add basic support for PIN Code Request Reply command

10 years agoemulator: Add basic support for Link Key Request Reply command
Johan Hedberg [Wed, 8 Jan 2014 12:33:58 +0000 (14:33 +0200)]
emulator: Add basic support for Link Key Request Reply command

10 years agomonitor: Add define for HCI Authentication Failure error code
Johan Hedberg [Wed, 8 Jan 2014 12:33:05 +0000 (14:33 +0200)]
monitor: Add define for HCI Authentication Failure error code

10 years agomonitor: Add define for Link Key Request Reply response
Johan Hedberg [Wed, 8 Jan 2014 12:32:42 +0000 (14:32 +0200)]
monitor: Add define for Link Key Request Reply response

10 years agoemulator: Add initial support for PIN Code Request Negative Reply
Johan Hedberg [Wed, 8 Jan 2014 12:04:58 +0000 (14:04 +0200)]
emulator: Add initial support for PIN Code Request Negative Reply

10 years agomonitor: Add definition for PIN or Key Missing HCI error code
Johan Hedberg [Wed, 8 Jan 2014 12:03:46 +0000 (14:03 +0200)]
monitor: Add definition for PIN or Key Missing HCI error code

10 years agomonitor: Add definition for PIN code request negative reply
Johan Hedberg [Wed, 8 Jan 2014 12:03:18 +0000 (14:03 +0200)]
monitor: Add definition for PIN code request negative reply

10 years agoemulator: Add initial handling for link key req neg reply
Johan Hedberg [Wed, 8 Jan 2014 11:26:59 +0000 (13:26 +0200)]
emulator: Add initial handling for link key req neg reply

10 years agomonitor: Add define for link key request negative reply response
Johan Hedberg [Wed, 8 Jan 2014 11:26:35 +0000 (13:26 +0200)]
monitor: Add define for link key request negative reply response

10 years agoemulator: Add basic auth request completion support
Johan Hedberg [Wed, 8 Jan 2014 10:33:51 +0000 (12:33 +0200)]
emulator: Add basic auth request completion support

10 years agobtdev: Return Command Status for Authentication Requested
Andrei Emeltchenko [Fri, 3 Jan 2014 13:45:54 +0000 (15:45 +0200)]
btdev: Return Command Status for Authentication Requested

Add support for "Authentication Requested" command

10 years agotools/mgmt-tester: Add basic Pair Device success test
Johan Hedberg [Tue, 7 Jan 2014 19:47:07 +0000 (21:47 +0200)]
tools/mgmt-tester: Add basic Pair Device success test

10 years agotools/mgmt-tester: Add support for runtime determined send/expect data
Johan Hedberg [Tue, 7 Jan 2014 19:24:27 +0000 (21:24 +0200)]
tools/mgmt-tester: Add support for runtime determined send/expect data

10 years agotools/mgmt-tester: Always set the bthost side to discoverable & connectable
Johan Hedberg [Tue, 7 Jan 2014 19:00:27 +0000 (21:00 +0200)]
tools/mgmt-tester: Always set the bthost side to discoverable & connectable

10 years agoandroid/audio: Add wrapper struct for struct audio_hw_dev
Lukasz Rymanowski [Wed, 8 Jan 2014 13:37:08 +0000 (14:37 +0100)]
android/audio: Add wrapper struct for struct audio_hw_dev

This patch add wrapping struct for audio_hw_dev too keep additional info
related to a2dp stream.