OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoaudio/A2DP: Add implemention of SEP start confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:44 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP start confirmation

10 years agoaudio/A2DP: Add implemention of SEP open confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:43 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP open confirmation

10 years agoaudio/A2DP: Add implemention of SEP set_configuration confirmation
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:42 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP set_configuration confirmation

10 years agoandroid/A2DP: Discover endpoints when initiator
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:41 +0000 (12:42 +0200)]
android/A2DP: Discover endpoints when initiator

10 years agoaudio/A2DP: Add implemention of SEP suspend indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:40 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP suspend indication

10 years agoaudio/A2DP: Add implemention of SEP start indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:39 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP start indication

10 years agoaudio/A2DP: Add implemention of SEP close indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:38 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP close indication

10 years agoaudio/A2DP: Add implemention of SEP open indication
Luiz Augusto von Dentz [Tue, 14 Jan 2014 10:42:37 +0000 (12:42 +0200)]
audio/A2DP: Add implemention of SEP open indication

10 years agotools/l2cap-tester: Add two more Invalid PSM client tests for PSM 1
Johan Hedberg [Tue, 14 Jan 2014 08:00:45 +0000 (10:00 +0200)]
tools/l2cap-tester: Add two more Invalid PSM client tests for PSM 1

10 years agoshared: Add address and features configuration support
Marcel Holtmann [Tue, 14 Jan 2014 06:57:14 +0000 (22:57 -0800)]
shared: Add address and features configuration support

10 years agotools: Add Bluemoon configuration utility
Marcel Holtmann [Tue, 14 Jan 2014 04:56:39 +0000 (20:56 -0800)]
tools: Add Bluemoon configuration utility

10 years agoshared: Introduce flag for detecting HCI stream based sources
Marcel Holtmann [Tue, 14 Jan 2014 03:37:54 +0000 (19:37 -0800)]
shared: Introduce flag for detecting HCI stream based sources

10 years agotools/mgmt-tester: Add basic non-pairable SSP test case
Johan Hedberg [Mon, 13 Jan 2014 15:00:21 +0000 (17:00 +0200)]
tools/mgmt-tester: Add basic non-pairable SSP test case

10 years agoemulator: Fix SSP IO capability request handling
Johan Hedberg [Mon, 13 Jan 2014 14:56:49 +0000 (16:56 +0200)]
emulator: Fix SSP IO capability request handling

10 years agomonitor: Add definitions for IO capability request command completion
Johan Hedberg [Mon, 13 Jan 2014 14:54:35 +0000 (16:54 +0200)]
monitor: Add definitions for IO capability request command completion

10 years agoemulator: Add reminding comment to fix link key type
Johan Hedberg [Mon, 13 Jan 2014 14:31:39 +0000 (16:31 +0200)]
emulator: Add reminding comment to fix link key type

10 years agoemulator: Fix emitting bogus encrypt change if we're not connected
Johan Hedberg [Mon, 13 Jan 2014 14:31:00 +0000 (16:31 +0200)]
emulator: Fix emitting bogus encrypt change if we're not connected

10 years agotools/l2cap-tester: Add basic L2CAP client test with SSP enabled
Johan Hedberg [Mon, 13 Jan 2014 14:29:42 +0000 (16:29 +0200)]
tools/l2cap-tester: Add basic L2CAP client test with SSP enabled

10 years agotools/l2cap-tester: Fix missing pairable setting enabling
Johan Hedberg [Mon, 13 Jan 2014 14:29:19 +0000 (16:29 +0200)]
tools/l2cap-tester: Fix missing pairable setting enabling

10 years agoemulator: Fix returning correct remote host features
Johan Hedberg [Mon, 13 Jan 2014 14:27:17 +0000 (16:27 +0200)]
emulator: Fix returning correct remote host features

10 years agoemulator: Fix completion of SSP user confirm commands
Johan Hedberg [Mon, 13 Jan 2014 14:26:22 +0000 (16:26 +0200)]
emulator: Fix completion of SSP user confirm commands

10 years agomonitor: Add defines for SSP user confirmation command completion
Johan Hedberg [Mon, 13 Jan 2014 14:24:47 +0000 (16:24 +0200)]
monitor: Add defines for SSP user confirmation command completion

10 years agotools/l2cap-tester: Add support for enabling SSP for tests
Johan Hedberg [Mon, 13 Jan 2014 13:00:58 +0000 (15:00 +0200)]
tools/l2cap-tester: Add support for enabling SSP for tests

10 years agoandroid/a2dp: Fix buffer size calculation for codec caps
Andrzej Kaczmarek [Mon, 13 Jan 2014 12:53:47 +0000 (13:53 +0100)]
android/a2dp: Fix buffer size calculation for codec caps

10 years agotools/mgmt-tester: Add Security Mode 3 rejection test cases
Johan Hedberg [Mon, 13 Jan 2014 12:38:38 +0000 (14:38 +0200)]
tools/mgmt-tester: Add Security Mode 3 rejection test cases

10 years agoaudio/A2DP: Add implemention of audio Suspend Stream command
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:34:45 +0000 (17:34 +0200)]
audio/A2DP: Add implemention of audio Suspend Stream command

10 years agoaudio/A2DP: Add implemention of audio Resume Stream command
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:31:52 +0000 (17:31 +0200)]
audio/A2DP: Add implemention of audio Resume Stream command

10 years agoaudio/A2DP: Add implemention of audio Close Stream command
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:27:24 +0000 (17:27 +0200)]
audio/A2DP: Add implemention of audio Close Stream command

10 years agoaudio/A2DP: Add implemention of audio Open Stream command
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:10:33 +0000 (15:10 +0200)]
audio/A2DP: Add implemention of audio Open Stream command

10 years agoaudio/A2DP: Add implemention of audio Close command
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:09:09 +0000 (15:09 +0200)]
audio/A2DP: Add implemention of audio Close command

10 years agoaudio/A2DP: Add implemention of audio Open command
Luiz Augusto von Dentz [Tue, 7 Jan 2014 15:29:42 +0000 (17:29 +0200)]
audio/A2DP: Add implemention of audio Open command

10 years agotools/mgmt-tester: Add basic SSP rejection test cases
Johan Hedberg [Mon, 13 Jan 2014 12:32:26 +0000 (14:32 +0200)]
tools/mgmt-tester: Add basic SSP rejection test cases

10 years agoemulator: Fix SSP rejection status propagation
Johan Hedberg [Mon, 13 Jan 2014 12:29:36 +0000 (14:29 +0200)]
emulator: Fix SSP rejection status propagation

10 years agoemulator/bthost: Add API to reject SSP User Confirmation
Johan Hedberg [Mon, 13 Jan 2014 12:29:06 +0000 (14:29 +0200)]
emulator/bthost: Add API to reject SSP User Confirmation

10 years agotools/mgmt-tester: Add remote PIN rejection test case
Johan Hedberg [Mon, 13 Jan 2014 12:00:14 +0000 (14:00 +0200)]
tools/mgmt-tester: Add remote PIN rejection test case

10 years agotools/mgmt-tester: Add basic PIN code rejection test case
Johan Hedberg [Mon, 13 Jan 2014 11:58:27 +0000 (13:58 +0200)]
tools/mgmt-tester: Add basic PIN code rejection test case

10 years agotools/mgmt-tester: Separate client (bthost) pairing parameters
Johan Hedberg [Mon, 13 Jan 2014 11:35:58 +0000 (13:35 +0200)]
tools/mgmt-tester: Separate client (bthost) pairing parameters

10 years agotools/mgmt-tester: Add basinc User Confirmation SSP test case
Johan Hedberg [Mon, 13 Jan 2014 11:24:17 +0000 (13:24 +0200)]
tools/mgmt-tester: Add basinc User Confirmation SSP test case

10 years agoemulator/bthost: Add support for specifying custom IO capability
Johan Hedberg [Mon, 13 Jan 2014 11:23:45 +0000 (13:23 +0200)]
emulator/bthost: Add support for specifying custom IO capability

10 years agoemulator/bthost: Fix sending L2CAP config req
Marcin Kraglak [Mon, 13 Jan 2014 10:36:33 +0000 (11:36 +0100)]
emulator/bthost: Fix sending L2CAP config req

Send L2CAP config request with correct dcid field. It worked
well only if scid and dcid of L2CAP connection were the same.

10 years agoemulator/bthost: Request encryption when authentication completes
Johan Hedberg [Mon, 13 Jan 2014 10:57:58 +0000 (12:57 +0200)]
emulator/bthost: Request encryption when authentication completes

10 years agoemulator: Add Set Connection Encryption command support
Johan Hedberg [Mon, 13 Jan 2014 10:57:41 +0000 (12:57 +0200)]
emulator: Add Set Connection Encryption command support

10 years agoemulator: Encryption should be enabled only when explicitly requested
Johan Hedberg [Mon, 13 Jan 2014 10:57:13 +0000 (12:57 +0200)]
emulator: Encryption should be enabled only when explicitly requested

10 years agotools/bluetooth-player: check path validity
Sebastian Chlad [Fri, 10 Jan 2014 16:31:01 +0000 (18:31 +0200)]
tools/bluetooth-player: check path validity

Bluetooth-player change-folder cmd approves any argument however it
can be and then should a valid path only. Failing in providing
a valid path crashes bluetooth-player thus argument should be
checked if it's a valid path.

10 years agoandroid/pics: Add PICS and PIXIT for A2DP
Jakub Tyszkowski [Mon, 13 Jan 2014 08:11:36 +0000 (09:11 +0100)]
android/pics: Add PICS and PIXIT for A2DP

Add PICS/PIXIT for A2DP targeting Android 4.4.

10 years agoandroid/pics: Add PICS and PIXIT for AVRCP
Jakub Tyszkowski [Mon, 13 Jan 2014 08:11:35 +0000 (09:11 +0100)]
android/pics: Add PICS and PIXIT for AVRCP

Add PICS/PIXIT for AVRCP targeting Android 4.4.

10 years agoandroid/pan: Generate file path in compile time
Szymon Janc [Fri, 10 Jan 2014 15:09:06 +0000 (16:09 +0100)]
android/pan: Generate file path in compile time

This reduce need of using snprintf function and removes need of manual
buffer size calculation.

10 years agotools: Add first controller test case from HCI test specification
Marcel Holtmann [Mon, 13 Jan 2014 08:51:42 +0000 (00:51 -0800)]
tools: Add first controller test case from HCI test specification

10 years agotools: Stop converting file if write failed in seq2bseq
Szymon Janc [Mon, 13 Jan 2014 08:09:14 +0000 (09:09 +0100)]
tools: Stop converting file if write failed in seq2bseq

If write failed converted file would be broken. This make sure that
user is being informed about it.

10 years agotools: Fix build error in seq2bseq
Szymon Janc [Mon, 13 Jan 2014 08:09:13 +0000 (09:09 +0100)]
tools: Fix build error in seq2bseq

Don't ignore return value of write. This fix following build error on
Ubuntu:

tools/seq2bseq.c: In function â€˜convert_line’:
tools/seq2bseq.c:52:8: error: ignoring return value of â€˜write’,
     declared with attribute warn_unused_result [-Werror=unused-result]
   write(fd, &val, 1);

10 years agoavrcp: Remove dead code
Andrei Emeltchenko [Fri, 10 Jan 2014 14:56:20 +0000 (16:56 +0200)]
avrcp: Remove dead code

session->target cannot be NULL since it is already checked 11 lines
above:
...
if (session == NULL || session->target == NULL)
return -ENOTCONN;
...

10 years agoandroid-tester: Add possibility to debug mgmt
Marcin Kraglak [Fri, 10 Jan 2014 13:23:34 +0000 (14:23 +0100)]
android-tester: Add possibility to debug mgmt

Print mgmt debug info if debug flag is set in android-tester.

10 years agotools/btproxy: Fix double close
Andrei Emeltchenko [Thu, 9 Jan 2014 09:01:22 +0000 (11:01 +0200)]
tools/btproxy: Fix double close

setup_streams() already makes close()

10 years agoandroid/pts: Update PTS results for MAP
Jakub Tyszkowski [Wed, 8 Jan 2014 08:52:53 +0000 (09:52 +0100)]
android/pts: Update PTS results for MAP

Update MAP PTS results for BlueZ stack on Nexus4 (Android 4.4.2).

10 years agoandroid/ipc: Use proper handlers in ipc_handle_msg
Andrzej Kaczmarek [Sun, 12 Jan 2014 22:22:18 +0000 (23:22 +0100)]
android/ipc: Use proper handlers in ipc_handle_msg

ipc_handle_msg() should use handlers passed as function parameter
instead of static one as otherwise Audio IPC will use incorrect
handlers.

10 years agoandroid/ipc: Fix arguments order in DBG
Andrzej Kaczmarek [Sun, 12 Jan 2014 21:44:45 +0000 (22:44 +0100)]
android/ipc: Fix arguments order in DBG

10 years agotools: Add test case for creating HCI connections
Marcel Holtmann [Mon, 13 Jan 2014 03:46:06 +0000 (19:46 -0800)]
tools: Add test case for creating HCI connections

10 years agotools: Check status of HCI Inquiry Complete event
Marcel Holtmann [Mon, 13 Jan 2014 01:31:32 +0000 (17:31 -0800)]
tools: Check status of HCI Inquiry Complete event

10 years agotools: Add simple Limited Inquiry test case to HCI testing
Marcel Holtmann [Mon, 13 Jan 2014 01:28:31 +0000 (17:28 -0800)]
tools: Add simple Limited Inquiry test case to HCI testing

10 years agotools: Add informational HCI commands to test coverage
Marcel Holtmann [Mon, 13 Jan 2014 00:42:46 +0000 (16:42 -0800)]
tools: Add informational HCI commands to test coverage

10 years agomonitor: Add opcode for Read Local Supported Codecs command
Marcel Holtmann [Mon, 13 Jan 2014 00:41:12 +0000 (16:41 -0800)]
monitor: Add opcode for Read Local Supported Codecs command

10 years agotools: Add skeleton for HCI controller testing
Marcel Holtmann [Mon, 13 Jan 2014 00:00:47 +0000 (16:00 -0800)]
tools: Add skeleton for HCI controller testing

10 years agoshared: Integrate HCI userspace handling with IO abstraction
Marcel Holtmann [Sun, 12 Jan 2014 23:31:42 +0000 (15:31 -0800)]
shared: Integrate HCI userspace handling with IO abstraction

10 years agobuild: Include shared mainloop IO handling for btinfo and 3dsp
Marcel Holtmann [Sun, 12 Jan 2014 23:10:23 +0000 (15:10 -0800)]
build: Include shared mainloop IO handling for btinfo and 3dsp

10 years agoshared: Use queue for handling hciemu post command hooks
Marcel Holtmann [Sun, 12 Jan 2014 20:17:21 +0000 (12:17 -0800)]
shared: Use queue for handling hciemu post command hooks

10 years agoandroid/bluetooth: Fix compare function when finding devices
Szymon Janc [Sun, 12 Jan 2014 17:45:24 +0000 (18:45 +0100)]
android/bluetooth: Fix compare function when finding devices

Elements on list are struct device not bdaddr_t so make comparing
function use proper types. This was working so far only due to
bdaddr_t being first element in struct device.

10 years agoandroid/bluetooth: Use helper for finding device
Szymon Janc [Mon, 23 Dec 2013 16:00:48 +0000 (17:00 +0100)]
android/bluetooth: Use helper for finding device

10 years agotools: Remove GLib mainloop requirement from btmgmt utility
Marcel Holtmann [Sun, 12 Jan 2014 10:23:01 +0000 (02:23 -0800)]
tools: Remove GLib mainloop requirement from btmgmt utility

10 years agoshared: Add IO handling using the mainloop support
Marcel Holtmann [Sun, 12 Jan 2014 10:22:30 +0000 (02:22 -0800)]
shared: Add IO handling using the mainloop support

10 years agoemulator: Add missing Transparent SCO feature bit
Johan Hedberg [Sun, 12 Jan 2014 07:18:41 +0000 (09:18 +0200)]
emulator: Add missing Transparent SCO feature bit

10 years agodoc: Add document summarizing current test coverage
Marcel Holtmann [Sun, 12 Jan 2014 05:15:41 +0000 (21:15 -0800)]
doc: Add document summarizing current test coverage

10 years agotools: Change MSBC into mSBC for test case descriptions
Marcel Holtmann [Sun, 12 Jan 2014 04:21:40 +0000 (20:21 -0800)]
tools: Change MSBC into mSBC for test case descriptions

10 years agoandroid: Change BREDR into BR/EDR for test case descriptions
Marcel Holtmann [Sun, 12 Jan 2014 04:19:04 +0000 (20:19 -0800)]
android: Change BREDR into BR/EDR for test case descriptions

10 years agotools: Add management test cases for secure connections support
Marcel Holtmann [Sun, 12 Jan 2014 04:12:50 +0000 (20:12 -0800)]
tools: Add management test cases for secure connections support

10 years agotools: Add support for setting Secure Connection Only mode
Marcel Holtmann [Sun, 12 Jan 2014 00:02:48 +0000 (16:02 -0800)]
tools: Add support for setting Secure Connection Only mode

10 years agomonitor: Show secure connections settings flag
Marcel Holtmann [Sat, 11 Jan 2014 23:24:12 +0000 (15:24 -0800)]
monitor: Show secure connections settings flag

10 years agoshared: Only cleanup mgmt notify handlers when really needed
Marcel Holtmann [Sat, 11 Jan 2014 23:04:21 +0000 (15:04 -0800)]
shared: Only cleanup mgmt notify handlers when really needed

10 years agodoc: Mention the Secure Connections Only mode
Marcel Holtmann [Sat, 11 Jan 2014 22:12:13 +0000 (14:12 -0800)]
doc: Mention the Secure Connections Only mode

10 years agodoc: Change the wording a little bit
Marcel Holtmann [Sat, 11 Jan 2014 22:09:52 +0000 (14:09 -0800)]
doc: Change the wording a little bit

10 years agoattrib: Add extra PDU checks when decoding Read by Type Response
Anderson Lizardo [Sat, 11 Jan 2014 04:47:27 +0000 (00:47 -0400)]
attrib: Add extra PDU checks when decoding Read by Type Response

These checks are needed to avoid invalid memory access on bogus PDUs.

10 years agoattrib: Fix PDU length check for Read by Type Request
Anderson Lizardo [Sat, 11 Jan 2014 04:47:26 +0000 (00:47 -0400)]
attrib: Fix PDU length check for Read by Type Request

PDU length must be either 7 or 21 octets.

10 years agoattrib: Reject incomplete PDU in dec_find_by_type_resp()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:25 +0000 (00:47 -0400)]
attrib: Reject incomplete PDU in dec_find_by_type_resp()

Otherwise, an incomplete PDU may be silently accepted (with any
remaining data discarded).

10 years agoattrib: Remove unnecessary local variables from dec_find_by_type_req()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:24 +0000 (00:47 -0400)]
attrib: Remove unnecessary local variables from dec_find_by_type_req()

Use number instead of "min_len", which is easier to review (with help of
the documented parameter sizes).

valuelen is redundant as *vlen can be used directly.

10 years agoattrib: Remove unnecessary NULL checks on dec_find_by_type_req()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:23 +0000 (00:47 -0400)]
attrib: Remove unnecessary NULL checks on dec_find_by_type_req()

Just assume that the caller will pass non-NULL pointers as arguments
(which is true for the only current caller of this function).

10 years agoattrib: Add extra PDU checks when decoding Read by Group Type Response
Anderson Lizardo [Sat, 11 Jan 2014 04:47:22 +0000 (00:47 -0400)]
attrib: Add extra PDU checks when decoding Read by Group Type Response

These checks are needed to avoid invalid memory access on bogus PDUs.

10 years agoattrib: Fix PDU length check for Read by Group Type Request
Anderson Lizardo [Sat, 11 Jan 2014 04:47:21 +0000 (00:47 -0400)]
attrib: Fix PDU length check for Read by Group Type Request

PDU length must be either 7 or 21 octets.

10 years agoattrib: Remove unnecessary checks for PDU length on ATT encoding
Anderson Lizardo [Sat, 11 Jan 2014 04:47:20 +0000 (00:47 -0400)]
attrib: Remove unnecessary checks for PDU length on ATT encoding

Both userspace and kernel enforce a minimum ATT MTU of 23 octets, which
is also used as minimum size for buffers passed to ATT encoding
functions. Therefore, it is unnecessary to perform these checks on ATT
requests that are guaranteed to fit into 23 octets.

Also document ATT parameter lengths where a constant is being used for
calculating the PDU length.

10 years agoattrib: Use att_put_u16() instead of htobs() + memcpy()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:19 +0000 (00:47 -0400)]
attrib: Use att_put_u16() instead of htobs() + memcpy()

10 years agoattrib: Add missing g_error_free()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:18 +0000 (00:47 -0400)]
attrib: Add missing g_error_free()

Also print error message.

10 years agoattrib: Modify gatt_cb_t signature
Anderson Lizardo [Sat, 11 Jan 2014 04:47:17 +0000 (00:47 -0400)]
attrib: Modify gatt_cb_t signature

Use standard C types instead of GLib ones (which are unnecessary here)
and move the "status" parameter to the first position, so it is
consistent with other callbacks.

10 years agoandroid/tester: Update bluetooth tests with DONE status
Szymon Janc [Sat, 11 Jan 2014 16:10:37 +0000 (17:10 +0100)]
android/tester: Update bluetooth tests with DONE status

10 years agoandroid/bluetooth: Log error for any non-success code
Szymon Janc [Fri, 3 Jan 2014 20:32:25 +0000 (21:32 +0100)]
android/bluetooth: Log error for any non-success code

Returning non-SUCCESS code in command reply is considered error and
that includes DONE status.

10 years agoandroid/bluetooth: Rename labels from failed to reply
Szymon Janc [Fri, 3 Jan 2014 20:31:16 +0000 (21:31 +0100)]
android/bluetooth: Rename labels from failed to reply

This name match better and avoid confusion when setting status to
SUCCESS and then jumping to failed label.

10 years agoandroid/bluetooth: Use HAL_STATUS_SUCCESS instead of _DONE in replies
Szymon Janc [Fri, 3 Jan 2014 20:26:33 +0000 (21:26 +0100)]
android/bluetooth: Use HAL_STATUS_SUCCESS instead of _DONE in replies

JNI code in Android is mapping returned code to boolean value. Only
SUCCESS status is mapped to true and that value is returned to Java
code. This could result in faultyly triggering error path in Java
when returning DONE in command reply.

10 years agoandroid/audio-msg: Simplify audio_rsp_open_stream
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:03:34 +0000 (15:03 +0200)]
android/audio-msg: Simplify audio_rsp_open_stream

Reuse audio_preset in audio_rsp_open_stream since the data type is the
same.

10 years agoandroid: Use LinkKeyPinLength instead of LinkKeyPINLength
Marcel Holtmann [Sat, 11 Jan 2014 09:14:28 +0000 (01:14 -0800)]
android: Use LinkKeyPinLength instead of LinkKeyPINLength

10 years agoandroid: Enable secure connections if supported
Marcel Holtmann [Sat, 11 Jan 2014 09:13:46 +0000 (01:13 -0800)]
android: Enable secure connections if supported

10 years agolib: Add management setting for secure connections
Marcel Holtmann [Sat, 11 Jan 2014 09:10:36 +0000 (01:10 -0800)]
lib: Add management setting for secure connections

10 years agotools: Add firmware conversion utility
Marcel Holtmann [Sat, 11 Jan 2014 08:50:41 +0000 (00:50 -0800)]
tools: Add firmware conversion utility

10 years agoshared: Fix crash if adapter is removed before mgmt event is received
Anderson Lizardo [Sat, 11 Jan 2014 03:51:47 +0000 (19:51 -0800)]
shared: Fix crash if adapter is removed before mgmt event is received

If "Index Removed" mgmt event is received after a mgmt command was sent
by userspace, but before its Command Status/Complete event is received,
bluetoothd will eventually call mgmt_cancel_index(), which will destroy
the queue of pending commands. By the time request_complete() is called,
the request callback is no more valid, because the destroy callback was
already called.

Therefore, the fix is to simply ignore the event.

Valgrind output:

==3676== Invalid read of size 4
==3676==    at 0x80BCD07: request_complete (mgmt.c:239)
==3676==    by 0x80BCF72: can_read_data (mgmt.c:350)
==3676==    by 0x80BBE22: read_callback (io-glib.c:164)
==3676==    by 0x40C019D: g_io_unix_dispatch (giounix.c:166)
==3676==    by 0x407FD45: g_main_context_dispatch (gmain.c:2539)
==3676==    by 0x40800E4: g_main_context_iterate.isra.21 (gmain.c:3146)
==3676==    by 0x408052A: g_main_loop_run (gmain.c:3340)
==3676==    by 0x41BE4D2: (below main) (libc-start.c:226)
==3676==  Address 0x10 is not stack'd, malloc'd or (recently) free'd