Commit Graph

19718 Commits

Author SHA1 Message Date
Grzegorz Kolodziejczyk
11d6f55490 android/tester-ng: Add android-tester-ng
Based on past experience with android-tester, new android tester is
written from scrath with fixed all known bugs and framework
inadvertancies. Once new test case will be added, same one from old
android tester will be removed, until whole test case list will be
replaced.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
3fb40e784d shared/tester: Add support for debug logs for tester
It allows to print debug logs if debug mode is enabled. It could help in
case of additional debug prints need (verbose mode).
2014-07-14 16:58:37 +02:00
Szymon Janc
4002d4d329 android/gatt: Disallow signed write on BR/EDR connection
As per Core Specification 4.1 Part G p. 4.9.2 signed write without
reponse shall not be used on BR/EDR.
2014-07-14 14:33:03 +02:00
Szymon Janc
688218cd94 android/gatt: Fix not sending notification for signed write
Signed write has no response and notificatino should be send to
Android Framework in case of write succeed.
2014-07-14 14:33:03 +02:00
Szymon Janc
897025255d android/gatt: Fix signed write on encrypted link
This fix invalid setting of res instead of status in error case.
2014-07-14 14:33:03 +02:00
Szymon Janc
797466d189 android/gatt: Make signed_write_cmd similar to rest of write functions
This avoids confusion with assigning bool to uint type.
2014-07-14 14:33:03 +02:00
Johan Hedberg
1475d9e5ff tools/smp-tester: Add user confirmation callback 2014-07-13 16:12:53 +03:00
Marcel Holtmann
586cdbc23b build: Use dist_noinst_MANS for now due to an automake issue 2014-07-13 00:06:57 +02:00
Marcel Holtmann
3672e43fe6 build: Add configure option for generating manual pages 2014-07-12 23:44:22 +02:00
Marcel Holtmann
5182dc7c3d emulator: Reopen PTY master when slave closes it 2014-07-12 19:49:13 +02:00
Marcel Holtmann
a18440c23b tools: Use mainloop handling for btattach utility 2014-07-12 16:42:11 +02:00
Marcel Holtmann
096799fd52 emulator: Add support for providing a pseudo terminal 2014-07-12 15:53:16 +02:00
Szymon Janc
6930cd12df 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.
2014-07-12 14:51:40 +02:00
Marcel Holtmann
7dd1e9c76c build: Add support for asciidoc based manual pages 2014-07-12 14:26:10 +02:00
Marcel Holtmann
b58f66f55f tools: Print controller index after attaching serial port 2014-07-11 23:02:29 +02:00
Szymon Janc
4a7e8d54fd android/gatt: Register SDP records for services 2014-07-11 21:55:29 +02:00
Szymon Janc
bfbdb57428 shared/gatt: Add function for getting service UUID 2014-07-11 21:55:28 +02:00
Szymon Janc
31a3c6c961 android/gatt: Choose LE or BR/EDR based on last seen bearer
This allows to connect both over LE and BR/EDR bearer.
2014-07-11 21:55:28 +02:00
Szymon Janc
7eb9cab6ab android/bluetooth: Add function for checking last seen bearer 2014-07-11 21:55:28 +02:00
Szymon Janc
5b791c2c36 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.
2014-07-11 21:55:28 +02:00
Johan Hedberg
0f03ab4f03 core: Refactor dirent type getter to a shared function 2014-07-11 13:47:41 +03:00
Johan Hedberg
be9876dd61 core: Fix filename/dirname usage & shadowing 2014-07-11 13:38:26 +03:00
Johan Hedberg
40ba8a3d34 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.
2014-07-11 13:33:06 +03:00
Johan Hedberg
f0591385d2 android: Fix usage of PATH_MAX
PATH_MAX already contains the terminating null so there's no need to +1
to it.
2014-07-11 13:33:06 +03:00
Johan Hedberg
efad8923a2 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.
2014-07-11 13:33:06 +03:00
Johan Hedberg
aeb998cac2 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).
2014-07-11 13:33:06 +03:00
Sebastian Chlad
424bfc77b8 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
2014-07-10 21:20:24 +02:00
Sebastian Chlad
db83ef1dc4 android/pts: Update PTS files for AVCTP
PICS and PIXITs updated to PTS 5.2. Regression done for Android
4.4.4.
2014-07-10 21:20:23 +02:00
Sebastian Chlad
44715cf099 android/pts: PTS updates for A2DP
PICS and PIXITs files checked against PTS 5.2.
2014-07-10 21:20:23 +02:00
Sebastian Chlad
394b68982e android/pts: Initial PTS docs for RFCOMM 2014-07-10 21:20:23 +02:00
Johan Hedberg
f43d33858d mgmt-tester: Update expected LE-only supported settings 2014-07-10 10:13:53 +03:00
Arman Uguray
5398ab2d77 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.
2014-07-09 15:36:40 +02:00
Arman Uguray
fff2770afb 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.
2014-07-09 15:36:40 +02:00
Marcin Kraglak
066066949c 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.
2014-07-09 11:31:19 +02:00
Marcin Kraglak
c5966b25c1 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.
2014-07-09 11:29:41 +02:00
Marcel Holtmann
b91e19db94 monitor: Use lowercase for additional words in field names 2014-07-09 09:34:13 +02:00
Szymon Janc
36d6740363 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.
2014-07-08 21:34:54 +03:00
Marcel Holtmann
b43a79d056 tools: Add support for firmware loading for Intel bootloader 2014-07-06 20:34:45 +02:00
Marcel Holtmann
8c30903af1 tools: Reading Local Version Information is not supported for bootloader 2014-07-06 15:00:58 +02:00
Marcel Holtmann
f3cf06f303 Release 5.21 2014-07-04 21:09:58 +02:00
Marcel Holtmann
571ddc03f2 doc: Update list of management version 1.7 features 2014-07-04 19:25:05 +02:00
Marcel Holtmann
b1d45edc01 monitor: Print control settings details only if available 2014-07-04 19:16:50 +02:00
Marcel Holtmann
902b44266b monitor: Decode New Configuration Options control message 2014-07-04 19:16:26 +02:00
Marcel Holtmann
2cf1e0240b tools: Add support for New Configuration Options mgmt event 2014-07-04 19:10:10 +02:00
Marcel Holtmann
355d0dac25 lib: Add definition for New Configuration Options mgmt event 2014-07-04 19:07:43 +02:00
Marcel Holtmann
dab577a767 doc: Add description for New Configuration Options mgmt event 2014-07-04 19:07:06 +02:00
Marcel Holtmann
2168043cbf tools: Add command for changing external configuration option 2014-07-04 18:05:17 +02:00
Andrei Emeltchenko
8d9e681d1c core: Remove dead code
rfcomm can only be NULL in this path
2014-07-04 17:53:33 +03:00
Andrei Emeltchenko
ea2254fddb cups: Remove dead code 2014-07-04 17:53:31 +03:00
Andrei Emeltchenko
9d08490a5f 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,
...
2014-07-04 16:46:51 +02:00