OSDN Git Service
Johan Hedberg [Mon, 13 Jan 2014 13:00:58 +0000 (15:00 +0200)]
tools/l2cap-tester: Add support for enabling SSP for tests
Andrzej Kaczmarek [Mon, 13 Jan 2014 12:53:47 +0000 (13:53 +0100)]
android/a2dp: Fix buffer size calculation for codec caps
Johan Hedberg [Mon, 13 Jan 2014 12:38:38 +0000 (14:38 +0200)]
tools/mgmt-tester: Add Security Mode 3 rejection test cases
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:34:45 +0000 (17:34 +0200)]
audio/A2DP: Add implemention of audio Suspend 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
Luiz Augusto von Dentz [Thu, 9 Jan 2014 15:27:24 +0000 (17:27 +0200)]
audio/A2DP: Add implemention of audio Close 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
Luiz Augusto von Dentz [Wed, 8 Jan 2014 13:09:09 +0000 (15:09 +0200)]
audio/A2DP: Add implemention of audio Close command
Luiz Augusto von Dentz [Tue, 7 Jan 2014 15:29:42 +0000 (17:29 +0200)]
audio/A2DP: Add implemention of audio Open command
Johan Hedberg [Mon, 13 Jan 2014 12:32:26 +0000 (14:32 +0200)]
tools/mgmt-tester: Add basic SSP rejection test cases
Johan Hedberg [Mon, 13 Jan 2014 12:29:36 +0000 (14:29 +0200)]
emulator: Fix SSP rejection status propagation
Johan Hedberg [Mon, 13 Jan 2014 12:29:06 +0000 (14:29 +0200)]
emulator/bthost: Add API to reject SSP User Confirmation
Johan Hedberg [Mon, 13 Jan 2014 12:00:14 +0000 (14:00 +0200)]
tools/mgmt-tester: Add remote PIN 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
Johan Hedberg [Mon, 13 Jan 2014 11:35:58 +0000 (13:35 +0200)]
tools/mgmt-tester: Separate client (bthost) pairing parameters
Johan Hedberg [Mon, 13 Jan 2014 11:24:17 +0000 (13:24 +0200)]
tools/mgmt-tester: Add basinc User Confirmation SSP test case
Johan Hedberg [Mon, 13 Jan 2014 11:23:45 +0000 (13:23 +0200)]
emulator/bthost: Add support for specifying custom IO capability
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.
Johan Hedberg [Mon, 13 Jan 2014 10:57:58 +0000 (12:57 +0200)]
emulator/bthost: Request encryption when authentication completes
Johan Hedberg [Mon, 13 Jan 2014 10:57:41 +0000 (12:57 +0200)]
emulator: Add Set Connection Encryption command support
Johan Hedberg [Mon, 13 Jan 2014 10:57:13 +0000 (12:57 +0200)]
emulator: Encryption should be enabled only when explicitly requested
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.
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.
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.
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.
Marcel Holtmann [Mon, 13 Jan 2014 08:51:42 +0000 (00:51 -0800)]
tools: Add first controller test case from HCI test specification
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.
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);
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;
...
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.
Andrei Emeltchenko [Thu, 9 Jan 2014 09:01:22 +0000 (11:01 +0200)]
tools/btproxy: Fix double close
setup_streams() already makes close()
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).
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.
Andrzej Kaczmarek [Sun, 12 Jan 2014 21:44:45 +0000 (22:44 +0100)]
android/ipc: Fix arguments order in DBG
Marcel Holtmann [Mon, 13 Jan 2014 03:46:06 +0000 (19:46 -0800)]
tools: Add test case for creating HCI connections
Marcel Holtmann [Mon, 13 Jan 2014 01:31:32 +0000 (17:31 -0800)]
tools: Check status of HCI Inquiry Complete event
Marcel Holtmann [Mon, 13 Jan 2014 01:28:31 +0000 (17:28 -0800)]
tools: Add simple Limited Inquiry test case to HCI testing
Marcel Holtmann [Mon, 13 Jan 2014 00:42:46 +0000 (16:42 -0800)]
tools: Add informational HCI commands to test coverage
Marcel Holtmann [Mon, 13 Jan 2014 00:41:12 +0000 (16:41 -0800)]
monitor: Add opcode for Read Local Supported Codecs command
Marcel Holtmann [Mon, 13 Jan 2014 00:00:47 +0000 (16:00 -0800)]
tools: Add skeleton for HCI controller testing
Marcel Holtmann [Sun, 12 Jan 2014 23:31:42 +0000 (15:31 -0800)]
shared: Integrate HCI userspace handling with IO abstraction
Marcel Holtmann [Sun, 12 Jan 2014 23:10:23 +0000 (15:10 -0800)]
build: Include shared mainloop IO handling for btinfo and 3dsp
Marcel Holtmann [Sun, 12 Jan 2014 20:17:21 +0000 (12:17 -0800)]
shared: Use queue for handling hciemu post command hooks
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.
Szymon Janc [Mon, 23 Dec 2013 16:00:48 +0000 (17:00 +0100)]
android/bluetooth: Use helper for finding device
Marcel Holtmann [Sun, 12 Jan 2014 10:23:01 +0000 (02:23 -0800)]
tools: Remove GLib mainloop requirement from btmgmt utility
Marcel Holtmann [Sun, 12 Jan 2014 10:22:30 +0000 (02:22 -0800)]
shared: Add IO handling using the mainloop support
Johan Hedberg [Sun, 12 Jan 2014 07:18:41 +0000 (09:18 +0200)]
emulator: Add missing Transparent SCO feature bit
Marcel Holtmann [Sun, 12 Jan 2014 05:15:41 +0000 (21:15 -0800)]
doc: Add document summarizing current test coverage
Marcel Holtmann [Sun, 12 Jan 2014 04:21:40 +0000 (20:21 -0800)]
tools: Change MSBC into mSBC 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
Marcel Holtmann [Sun, 12 Jan 2014 04:12:50 +0000 (20:12 -0800)]
tools: Add management test cases for secure connections support
Marcel Holtmann [Sun, 12 Jan 2014 00:02:48 +0000 (16:02 -0800)]
tools: Add support for setting Secure Connection Only mode
Marcel Holtmann [Sat, 11 Jan 2014 23:24:12 +0000 (15:24 -0800)]
monitor: Show secure connections settings flag
Marcel Holtmann [Sat, 11 Jan 2014 23:04:21 +0000 (15:04 -0800)]
shared: Only cleanup mgmt notify handlers when really needed
Marcel Holtmann [Sat, 11 Jan 2014 22:12:13 +0000 (14:12 -0800)]
doc: Mention the Secure Connections Only mode
Marcel Holtmann [Sat, 11 Jan 2014 22:09:52 +0000 (14:09 -0800)]
doc: Change the wording a little bit
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.
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.
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).
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.
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).
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.
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.
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.
Anderson Lizardo [Sat, 11 Jan 2014 04:47:19 +0000 (00:47 -0400)]
attrib: Use att_put_u16() instead of htobs() + memcpy()
Anderson Lizardo [Sat, 11 Jan 2014 04:47:18 +0000 (00:47 -0400)]
attrib: Add missing g_error_free()
Also print error message.
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.
Szymon Janc [Sat, 11 Jan 2014 16:10:37 +0000 (17:10 +0100)]
android/tester: Update bluetooth tests with DONE status
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.
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.
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.
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.
Marcel Holtmann [Sat, 11 Jan 2014 09:14:28 +0000 (01:14 -0800)]
android: Use LinkKeyPinLength instead of LinkKeyPINLength
Marcel Holtmann [Sat, 11 Jan 2014 09:13:46 +0000 (01:13 -0800)]
android: Enable secure connections if supported
Marcel Holtmann [Sat, 11 Jan 2014 09:10:36 +0000 (01:10 -0800)]
lib: Add management setting for secure connections
Marcel Holtmann [Sat, 11 Jan 2014 08:50:41 +0000 (00:50 -0800)]
tools: Add firmware conversion utility
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
Marcel Holtmann [Fri, 10 Jan 2014 23:24:42 +0000 (15:24 -0800)]
shared: Use a union for sockaddr for mgmt socket
Marcel Holtmann [Fri, 10 Jan 2014 23:19:12 +0000 (15:19 -0800)]
shared: Only mark notify as removed and not remove them right away
Marcel Holtmann [Fri, 10 Jan 2014 22:00:03 +0000 (14:00 -0800)]
monitor: Remove two unneeded includes
Marcel Holtmann [Fri, 10 Jan 2014 21:54:28 +0000 (13:54 -0800)]
monitor: Use generic utility macros for endian conversion
Marcel Holtmann [Fri, 10 Jan 2014 21:30:17 +0000 (13:30 -0800)]
shared: Add endian conversion macro for 64-bit little endian types
Marcel Holtmann [Fri, 10 Jan 2014 21:16:23 +0000 (13:16 -0800)]
shared: Fix the endian helper macros to work on big endian systems
Marcel Holtmann [Fri, 10 Jan 2014 21:06:08 +0000 (13:06 -0800)]
tools: Make use of generic endian conversion macros
Marcel Holtmann [Fri, 10 Jan 2014 21:05:23 +0000 (13:05 -0800)]
emulator: Make use of generic endian conversion macros
Marcel Holtmann [Fri, 10 Jan 2014 21:04:51 +0000 (13:04 -0800)]
monitor: Make use of generic endian conversion macros
Marcel Holtmann [Fri, 10 Jan 2014 21:04:02 +0000 (13:04 -0800)]
shared: Add general macro for handling endian conversion
Luiz Augusto von Dentz [Fri, 10 Jan 2014 15:35:26 +0000 (17:35 +0200)]
android: Fix not using AM_CFLAGS in the HAL modules
Both bluetooth.audio.so and audio.a2dp.default.so should use AM_CFLAGS
ortherwise some quite obvious errors that otherwise would break the
build may be pushed upstream.
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:28 +0000 (02:24 +0100)]
android/audio: Add audio_ipc_cleanup function
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.
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
Lukasz Rymanowski [Fri, 10 Jan 2014 01:24:22 +0000 (02:24 +0100)]
android/audio: Prefix error log with "audio"
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.
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:49 +0000 (16:11 +0200)]
android/pan: Remove connected PAN devices on profile unregister call
Ravi kumar Veeramally [Fri, 10 Jan 2014 14:11:48 +0000 (16:11 +0200)]
android/pan: Implement PAN enable HAL api at daemon side
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.
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.
Johan Hedberg [Fri, 10 Jan 2014 14:04:40 +0000 (16:04 +0200)]
tools/mgmt-tester: Add basic SSP test case
Johan Hedberg [Fri, 10 Jan 2014 14:04:25 +0000 (16:04 +0200)]
emulator: Add basic support for SSP completion