OSDN Git Service
Marcel Holtmann [Sat, 12 Jul 2014 13:52:24 +0000 (15:52 +0200)]
emulator: Add support for providing a pseudo terminal
Szymon Janc [Sat, 12 Jul 2014 12:40:38 +0000 (14:40 +0200)]
android/README: Don't mention minor Android release number
Minor releases are quite often and don't introduce significant changes.
There is no need pointing this here since aosp-bluez page already
provides info about latest supported minor release.
Marcel Holtmann [Sat, 12 Jul 2014 12:26:10 +0000 (14:26 +0200)]
build: Add support for asciidoc based manual pages
Marcel Holtmann [Fri, 11 Jul 2014 21:02:29 +0000 (23:02 +0200)]
tools: Print controller index after attaching serial port
Szymon Janc [Thu, 10 Jul 2014 14:30:36 +0000 (16:30 +0200)]
android/gatt: Register SDP records for services
Szymon Janc [Thu, 10 Jul 2014 14:30:35 +0000 (16:30 +0200)]
shared/gatt: Add function for getting service UUID
Szymon Janc [Thu, 10 Jul 2014 14:30:34 +0000 (16:30 +0200)]
android/gatt: Choose LE or BR/EDR based on last seen bearer
This allows to connect both over LE and BR/EDR bearer.
Szymon Janc [Thu, 10 Jul 2014 14:30:33 +0000 (16:30 +0200)]
android/bluetooth: Add function for checking last seen bearer
Szymon Janc [Thu, 10 Jul 2014 14:30:32 +0000 (16:30 +0200)]
android/gatt: Add support for GATT over BR/EDR
This adds listening on both LE and BR/EDR and SDP records for GAP,
GATT and DIS.
Johan Hedberg [Fri, 11 Jul 2014 10:47:41 +0000 (13:47 +0300)]
core: Refactor dirent type getter to a shared function
Johan Hedberg [Fri, 11 Jul 2014 10:38:26 +0000 (13:38 +0300)]
core: Fix filename/dirname usage & shadowing
Johan Hedberg [Fri, 11 Jul 2014 07:38:24 +0000 (10:38 +0300)]
profiles/input: Fix usage of PATH_MAX
PATH_MAX already contains the terminating null so there's no need to +1
to it. Also, snprintf guarantees a null-terminated string so there's no
need to explicitly set a terminating character after the call.
Johan Hedberg [Fri, 11 Jul 2014 07:37:34 +0000 (10:37 +0300)]
android: Fix usage of PATH_MAX
PATH_MAX already contains the terminating null so there's no need to +1
to it.
Johan Hedberg [Fri, 11 Jul 2014 07:34:44 +0000 (10:34 +0300)]
core: Fix filename contruction with PATH_MAX and snprintf
PATH_MAX contains the terminating null, so there's no need to +1 to it.
Also, snprintf guarantees a null-terminated string, so there's no need
to explicitly set a terminating character after the call.
Johan Hedberg [Fri, 11 Jul 2014 07:07:03 +0000 (10:07 +0300)]
core: Add support for secondary dirent type lookup
On some systems readdir() may only return DT_UNKNOWN for the dirent
type. In such a case we need to do a secondary lookup e.g. with lstat to
figure out the real time (for our purposes we're only interested in
whether it's a directory or not).
Sebastian Chlad [Wed, 9 Jul 2014 12:38:13 +0000 (14:38 +0200)]
android/pts: Update PTS files for DID
Updated PICS, PIXITs and PTS tests results for DID.
PTS version 5.2. Android version 4.4.4
Sebastian Chlad [Thu, 10 Jul 2014 12:57:45 +0000 (14:57 +0200)]
android/pts: Update PTS files for AVCTP
PICS and PIXITs updated to PTS 5.2. Regression done for Android
4.4.4.
Sebastian Chlad [Tue, 8 Jul 2014 10:56:10 +0000 (12:56 +0200)]
android/pts: PTS updates for A2DP
PICS and PIXITs files checked against PTS 5.2.
Sebastian Chlad [Tue, 8 Jul 2014 14:21:26 +0000 (16:21 +0200)]
android/pts: Initial PTS docs for RFCOMM
Johan Hedberg [Thu, 10 Jul 2014 07:13:53 +0000 (10:13 +0300)]
mgmt-tester: Update expected LE-only supported settings
Arman Uguray [Tue, 8 Jul 2014 05:05:01 +0000 (22:05 -0700)]
shared/att: Implement bt_att_register.
This patch implements bt_att_register and the internal mechanism for invoking
registered callbacks when a non-response/non-indication PDU is received from the
remote end.
Arman Uguray [Tue, 8 Jul 2014 05:05:00 +0000 (22:05 -0700)]
shared/att: Remove parameters structures.
This patch removes the PDU encoding functionality from src/shared/att. This is
now left up to the upper layer and the responsibilities of bt_att are restricted
to handle the low-level transport and the sequential/non-sequential ATT protocol
logic.
Marcin Kraglak [Wed, 9 Jul 2014 08:53:53 +0000 (10:53 +0200)]
android/gatt: Set need_resp flag in when received PREP_WRITE_REQ
Set need_resp flag if pepare write request have been received.
This is needed because application should send response to stack.
Marcin Kraglak [Wed, 9 Jul 2014 08:53:52 +0000 (10:53 +0200)]
android/gatt: Fix sending incorrect frames
Don't send pdu if encoding failed. It cause errors when trying
send notification larger than MTU. Length passed to
g_attrib_send was 0 which caused errors on ATT.
Marcel Holtmann [Wed, 9 Jul 2014 07:34:13 +0000 (09:34 +0200)]
monitor: Use lowercase for additional words in field names
Szymon Janc [Tue, 8 Jul 2014 17:52:26 +0000 (19:52 +0200)]
client: Allow to terminate if bluetoothd was not started
This allows to terminate bluetoothctl with CTRL-C if daemon didn't
start. Otherwise input is not functional and user must kill
bluetoothctl by sending signal from another terminal.
Marcel Holtmann [Sun, 6 Jul 2014 18:34:45 +0000 (20:34 +0200)]
tools: Add support for firmware loading for Intel bootloader
Marcel Holtmann [Sun, 6 Jul 2014 13:00:58 +0000 (15:00 +0200)]
tools: Reading Local Version Information is not supported for bootloader
Marcel Holtmann [Fri, 4 Jul 2014 19:09:58 +0000 (21:09 +0200)]
Release 5.21
Marcel Holtmann [Fri, 4 Jul 2014 17:25:05 +0000 (19:25 +0200)]
doc: Update list of management version 1.7 features
Marcel Holtmann [Fri, 4 Jul 2014 17:16:50 +0000 (19:16 +0200)]
monitor: Print control settings details only if available
Marcel Holtmann [Fri, 4 Jul 2014 17:16:26 +0000 (19:16 +0200)]
monitor: Decode New Configuration Options control message
Marcel Holtmann [Fri, 4 Jul 2014 17:10:10 +0000 (19:10 +0200)]
tools: Add support for New Configuration Options mgmt event
Marcel Holtmann [Fri, 4 Jul 2014 17:07:43 +0000 (19:07 +0200)]
lib: Add definition for New Configuration Options mgmt event
Marcel Holtmann [Fri, 4 Jul 2014 17:07:06 +0000 (19:07 +0200)]
doc: Add description for New Configuration Options mgmt event
Marcel Holtmann [Fri, 4 Jul 2014 16:05:17 +0000 (18:05 +0200)]
tools: Add command for changing external configuration option
Andrei Emeltchenko [Fri, 4 Jul 2014 13:44:01 +0000 (16:44 +0300)]
core: Remove dead code
rfcomm can only be NULL in this path
Andrei Emeltchenko [Fri, 4 Jul 2014 13:44:00 +0000 (16:44 +0300)]
cups: Remove dead code
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:59 +0000 (16:43 +0300)]
android/gatt: Fix length check
Function fill_gatt_response() has check shown below:
if (!len)
return;
This eliminates clang warning:
...
android/gatt.c:4443:3: warning: Function call argument is an
uninitialized value
fill_gatt_response(resp_data, resp_data->handle,
...
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:58 +0000 (16:43 +0300)]
android/tester: Remove unused assignment
Fixes clang warning:
...
android/android-tester.c:1014:2: warning: Value stored to 'status' is
never read
status =
data->if_bluetooth->get_remote_device_property(&remote_addr, prop.type);
1 warning generated.
...
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:57 +0000 (16:43 +0300)]
android/haltest: Add check for valid channel
Channel is got from user and needs to be validated before use as index
in the array.
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:56 +0000 (16:43 +0300)]
android/gatt: Add missing error check
Fixes clang warning:
...
android/gatt.c:2097:4: warning: Value stored to 'srvc_search_success' is
never read
srvc_search_success = search_dev_for_srvc(conn, NULL);
...
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:55 +0000 (16:43 +0300)]
android/hal-gatt: Remove unneeded never read initialization
Fixes clang warning:
...
android/hal-gatt.c:1021:3: warning: Value stored to 'data' is never read
data += service_uuid_len;
^ ~~~~~~~~~~~~~~~~
1 warning generated.
...
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:54 +0000 (16:43 +0300)]
android/haltest: Auto-accept pairing
Simplify PTS testing by asking for pairing consent.
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:53 +0000 (16:43 +0300)]
android/gatt: Fix warning by rearranging allocation
We need to allocate array of uint8_t so fix allocation parameter, this
also removes unneeded type conversion.
This fixes clang warnings:
...
android/gatt.c:5967:29: warning: Result of 'calloc' is converted to a
pointer of type 'uint8_t', which is incompatible with sizeof operand
type 'uint16_t'
entry->value = (uint8_t *) new0(uint16_t, 1);
~~~~~~~~~ ^~~~~~~~~~~~~~~~~
./src/shared/util.h:81:26: note: expanded from macro 'new0'
^~~~~~ ~~~~~~~~~
...
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:52 +0000 (16:43 +0300)]
android/hal-msg: trivial: Correct coding style
Move rsp close to cmd improving readability of the code.
Andrei Emeltchenko [Fri, 4 Jul 2014 13:43:50 +0000 (16:43 +0300)]
android/gatt: Change DBG() to error()
Andrei Emeltchenko [Thu, 3 Jul 2014 11:32:56 +0000 (14:32 +0300)]
android/gatt: Fix memory leak
Fixes clang warnings:
...
android/gatt.c:2823:1: warning: Potential leak of memory pointed to by
'cb_data'
...
Andrei Emeltchenko [Fri, 4 Jul 2014 12:45:38 +0000 (15:45 +0300)]
monitor: Fix possible resource leak
This fixes following memory leak:
...
==14887== 24 bytes in 1 blocks are definitely lost in loss record 2 of 4
==14887== at 0x4C2CC70: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14887== by 0x425B6C: btsnoop_open (btsnoop.c:83)
==14887== by 0x424837: analyze_trace (analyze.c:262)
==14887== by 0x40249A: main (main.c:189)
...
Szymon Janc [Fri, 4 Jul 2014 12:33:38 +0000 (14:33 +0200)]
android/README: Add HealthService fix to recommended AOSP patches
Szymon Janc [Fri, 4 Jul 2014 12:08:14 +0000 (14:08 +0200)]
android/README: Add section with bug reporting instructions
Szymon Janc [Fri, 4 Jul 2014 11:29:23 +0000 (13:29 +0200)]
android/README: Mark health implementation as complete
Marcel Holtmann [Fri, 4 Jul 2014 11:58:39 +0000 (13:58 +0200)]
doc: Remove the unneeded auto-connect and encrypt action
Marcel Holtmann [Fri, 4 Jul 2014 11:10:48 +0000 (13:10 +0200)]
tools: Add string for now external configuration option
Marcel Holtmann [Fri, 4 Jul 2014 10:58:46 +0000 (12:58 +0200)]
lib: Adjust for new Set External Configuration mgmt command
Marcel Holtmann [Fri, 4 Jul 2014 10:54:34 +0000 (12:54 +0200)]
doc: Add Set External Configuration management command
Marcel Holtmann [Fri, 4 Jul 2014 10:15:02 +0000 (12:15 +0200)]
doc: Add comments on how blocked devices interact with auto-connection
Marcel Holtmann [Fri, 4 Jul 2014 08:58:53 +0000 (10:58 +0200)]
doc: Add notes about Add Device Action 0x02 and directed advertising
Marcel Holtmann [Thu, 3 Jul 2014 22:47:56 +0000 (00:47 +0200)]
tools: Add support for set public address command
Marcel Holtmann [Thu, 3 Jul 2014 22:47:28 +0000 (00:47 +0200)]
lib: Add definitions for set public address command
Marcel Holtmann [Thu, 3 Jul 2014 21:53:04 +0000 (23:53 +0200)]
tools: Add support for reading controller configuration info
Marcel Holtmann [Thu, 3 Jul 2014 21:52:38 +0000 (23:52 +0200)]
lib: Add definitions for reading controller configuration info
Marcel Holtmann [Thu, 3 Jul 2014 21:51:49 +0000 (23:51 +0200)]
doc: Update the controller configuration parameter naming
Marcel Holtmann [Thu, 3 Jul 2014 17:52:45 +0000 (19:52 +0200)]
doc: Add extra empty line
Marcel Holtmann [Thu, 3 Jul 2014 16:50:36 +0000 (18:50 +0200)]
doc: More updates for management version 1.7 features
Szymon Janc [Thu, 3 Jul 2014 14:32:56 +0000 (16:32 +0200)]
test: Allow to pass custom DataType to test-health-sink
Szymon Janc [Thu, 3 Jul 2014 14:32:55 +0000 (16:32 +0200)]
test: Fix getting devices in health test scripts
Marcel Holtmann [Thu, 3 Jul 2014 14:12:38 +0000 (16:12 +0200)]
lib: Update company identifiers
Ravi kumar Veeramally [Thu, 3 Jul 2014 13:29:21 +0000 (16:29 +0300)]
android/hal-health: Fix do not modify fd flags in non connected state
Only on BTHL_CONN_STATE_CONNECTED state valid fd will be passed. Other states
fd value is -1. Just call channel status call back.
Andrei Emeltchenko [Thu, 3 Jul 2014 11:17:13 +0000 (14:17 +0300)]
android/hal-health: Clear NONBLOCK flag from fd
Java expects file descriptor passed with channel_state_cb() to be
blocking.
Johan Hedberg [Thu, 3 Jul 2014 11:29:10 +0000 (14:29 +0300)]
tools/mgmt-tester: Fix details of Load Conn Params test case
Johan Hedberg [Thu, 3 Jul 2014 10:58:14 +0000 (13:58 +0300)]
doc: Update test coverage
Johan Hedberg [Thu, 3 Jul 2014 10:51:13 +0000 (13:51 +0300)]
tools/mgmt-tester: Add buffer overflow test cases
Szymon Janc [Thu, 3 Jul 2014 07:50:01 +0000 (09:50 +0200)]
android/pics: Update HDP settings
IEEE 11073 Agent role is for heatlh devices.
Luiz Augusto von Dentz [Tue, 1 Jul 2014 12:03:26 +0000 (15:03 +0300)]
android/gatt: Fix duplicate const
Luiz Augusto von Dentz [Tue, 1 Jul 2014 12:01:04 +0000 (15:01 +0300)]
android: Fix local variables not being marked as static
Luiz Augusto von Dentz [Tue, 1 Jul 2014 11:54:32 +0000 (14:54 +0300)]
android: Fix non-ANSI function declaration
Luiz Augusto von Dentz [Tue, 1 Jul 2014 11:06:36 +0000 (14:06 +0300)]
android: Fix using plain integer as NULL pointer
Marcel Holtmann [Wed, 2 Jul 2014 20:04:50 +0000 (22:04 +0200)]
tools: Add command for reading unconfigured controller list
Marcel Holtmann [Wed, 2 Jul 2014 19:49:53 +0000 (21:49 +0200)]
tools: Monitor the Unconfigured Index Added/Removed events
Marcel Holtmann [Wed, 2 Jul 2014 19:43:00 +0000 (21:43 +0200)]
doc: Add support for Unconfigured Index Removed event
Marcel Holtmann [Wed, 2 Jul 2014 19:38:26 +0000 (21:38 +0200)]
lib: Add definition for Read Unconfigured Index List command
Marcel Holtmann [Wed, 2 Jul 2014 19:35:02 +0000 (21:35 +0200)]
monitor: Decode Unconfigured Index Removed control event
Marcel Holtmann [Wed, 2 Jul 2014 19:32:10 +0000 (21:32 +0200)]
lib: Add definition for Unconfigured Index Removed event
Marcel Holtmann [Wed, 2 Jul 2014 18:57:45 +0000 (20:57 +0200)]
monitor: Decode Unconfigured Index Added control event
Marcel Holtmann [Wed, 2 Jul 2014 18:57:15 +0000 (20:57 +0200)]
lib: Add definition for Unconfigured Index Added event
Marcel Holtmann [Wed, 2 Jul 2014 14:27:04 +0000 (16:27 +0200)]
core: Don't load connection parameters when LE is not supported
Johan Hedberg [Wed, 2 Jul 2014 13:47:45 +0000 (16:47 +0300)]
core: Add support for storing and reloading connection parameters
Johan Hedberg [Wed, 2 Jul 2014 13:47:01 +0000 (16:47 +0300)]
core: Add device API for setting connection parameters
Johan Hedberg [Wed, 2 Jul 2014 13:47:20 +0000 (16:47 +0300)]
lib/mgmt: Add definitions for Load Connection Parameters
Johan Hedberg [Wed, 2 Jul 2014 10:01:12 +0000 (13:01 +0300)]
doc: Document storage location of connection parameters
Johan Hedberg [Wed, 2 Jul 2014 09:55:56 +0000 (12:55 +0300)]
core: Add initial handling of New Connection Parameter event
Grzegorz Kolodziejczyk [Wed, 2 Jul 2014 10:34:58 +0000 (12:34 +0200)]
android/pts: Update HOGP tests results
Grzegorz Kolodziejczyk [Wed, 2 Jul 2014 10:34:57 +0000 (12:34 +0200)]
android/client: Fix data parsing for write descriptor
This fix data parsing for write descriptor by using fill buffer function.
Fill buffer helper has been moved upper to be visible for write descriptor
function.
Ravi kumar Veeramally [Wed, 2 Jul 2014 09:32:02 +0000 (12:32 +0300)]
android/pts: Update result for HDP TC_SRC_CC_BV_09_C
Ravi kumar Veeramally [Wed, 2 Jul 2014 09:32:01 +0000 (12:32 +0300)]
android/client: Change multi dimension array to struct mode
It will be hard to add extra parameters in multi dimension array.
Ravi kumar Veeramally [Wed, 2 Jul 2014 09:32:00 +0000 (12:32 +0300)]
android/health: Handle incoming streaming data channel request
First data channel should be reliable data channel when remote device
in sink role request data channel with option any.
Grzegorz Kolodziejczyk [Wed, 2 Jul 2014 07:58:12 +0000 (09:58 +0200)]
android/pts: Update HOGP tests result
Test results for write report characteristic update.
Szymon Janc [Wed, 2 Jul 2014 07:58:11 +0000 (09:58 +0200)]
android/hidhost: Use bt_hog_send_report in bt_hid_set_report
If bt_hid_set_report is called for a HoG device send data using
bt_hog_send_report.
Luiz Augusto von Dentz [Wed, 2 Jul 2014 07:58:10 +0000 (09:58 +0200)]
android/hog: Add bt_hog_send_report
This function can be used to send data using specified report if one is
available.