| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
This replaces the uses of g_memdup with util_memdup since the former has
been deprecated:
warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead
[-Wdeprecated-declarations]
g_memdup2 requires bumping glib version which would likely have its
own problems thus why util_memdup was introduced.
|
|
|
|
|
|
|
|
|
|
|
| |
The util_get/clear_uid functions use int type for bitmap, and are used
e.g. for SEID allocation. However, valid SEIDs are in range 1 to 0x3E
(AVDTP spec v1.3, 8.20.1), and 8*sizeof(int) is often smaller than 0x3E.
The function is also used in src/advertising.c, but an explicit maximum
value is always provided, so growing the bitmap size is safe there.
Use 64-bit bitmap instead, to be able to cover the valid range.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds SPDX License Identifier and removes the license text.
-------------------------------------
License COUNT
-------------------------------------
GPL-2.0-or-later : 25
LGPL-2.1-or-later : 1
GPL-2.0-only : 2
BSD-2-Clause : 1
License: GPL-2.0-or-later
unit/test-hog.c
unit/test-eir.c
unit/test-gobex-header.c
unit/test-crc.c
unit/test-avrcp.c
unit/test-ringbuf.c
unit/test-gobex-apparam.c
unit/test-gobex.c
unit/test-hfp.c
unit/test-textfile.c
unit/test-avdtp.c
unit/test-sdp.c
unit/test-gatt.c
unit/test-avctp.c
unit/test-gattrib.c
unit/test-queue.c
unit/test-gobex-packet.c
unit/test-uuid.c
unit/test-crypto.c
unit/test-uhid.c
unit/test-gdbus-client.c
unit/test-midi.c
unit/test-lib.c
unit/test-mgmt.c
unit/test-gobex-transfer.c
License: LGPL-2.1-or-later
unit/test-mesh-crypto.c
License: GPL-2.0-only
unit/util.h
unit/util.c
License: BSD-2-Clause
unit/test-ecc.c
|
|
|
|
|
|
|
| |
Raw data payload must be copied since the declaration goes out of
scope:
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=202213
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tester_monitor will forward the data to btmon when -m/--monitor is
enabled which will attempt to decode the PDUs:
= test-gatt: /robustness/unkown-command - init 11:44:53.464325
= test-gatt: /robustness/unkown-command - setup
= test-gatt: /robustness/unkown-command - setup complete
= test-gatt: /robustness/unkown-command - run
< test-gatt: User Data TX
ATT: Exchange MTU Request (0x02) len 2
Client RX MTU: 23
> test-gatt: User Data RX
ATT: Exchange MTU Response (0x03) len 2
Server RX MTU: 512
< test-gatt: User Data TX
ATT: Unknown (0xff) len 1
00 .
= test-gatt: /robustness/unkown-command - test passed
= test-gatt: /robustness/unkown-command - teardown
= test-gatt: /robustness/unkown-command - teardown complete
= test-gatt: /robustness/unkown-command - done
|
|
|
|
|
| |
This seems to fix problems of make check not working in 32 bit systems
with gcc 5.0.
|
|
|
|
| |
Our tester framework actually produces much better output.
|
|
|
|
|
| |
destroy_context() function will be used for dummy_tests without
context_execute()
|
|
|
|
|
|
| |
In order to deduplicate similar code in android/ and profiles/ we need
to handle local SEP queue outside of avdtp.c. GSList is transformed to
queue.
|
|
|
|
| |
Test checks that maximum numbers of SEPs registered is MAX_SEID.
|
|
|
|
|
|
| |
Add test adding two SEP, then remove first and create another one. With
the current code new SEP has the same SEID (2!). Following patches
fixing the bug.
|
|
|
|
|
| |
Add register_sep and unregister_sep testing registering maximum amount
of SEPs.
|
| |
|
|
|
|
| |
Remove not needed table entry copied, probably, from unit/sdp
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
glib 2.39.0 made this change:
- g_source_remove() will now throw a critical in the case that you
try to remove a non-existent source. We expect that there is some
code in the wild that will fall afoul of this new critical but
considering that we now reuse source IDs, this code is already
broken and should probably be fixed.
This patch fixes the test suite to keep better track of whether sources have
already been removed and avoid double-removals.
|
|
|
|
|
| |
This is not necessary anymore since all delay reporting is now added
automatically whenever supported.
|
|
|
|
|
| |
Verify that a delay report received by a SRC IUT while in the STREAMING
state is properly accepted as valid.
|
|
|
|
|
| |
Verify that a delay report received by a SRC IUT while in the OPEN state
is properly accepted as valid.
|
|
|
|
|
|
|
| |
Verify that an initial delay report is sent by a SNK (INT) device when
the Stream Configuration Procedure is initiated by the SNK device
(transition from IDLE to OPEN state) and that the report conforms to the
specification.
|
|
|
|
|
| |
If the SEP supports delay reporting and remote device request is GET_ALL
add delay report capability.
|
|
|
|
|
|
|
| |
Verify that an initial delay report is sent by a SNK (ACP) device when
the Stream Configuration Procedure is initiated by the SRC device
(transition from IDLE to OPEN state) and that the report conforms to the
specification.
|
|
|
|
|
|
|
| |
Verify that the delay reporting capability is configured by a SNK device
when it is offered by the SRC device. This allows a SRC device to detect
and use the delay reporting capability of a SNK device when the SNK
device is the INT of the start streaming procedure.
|
|
|
|
|
| |
Verify if the IUT (SNK device) offers the delay reporting capability.
This is required in order to enable a SRC to configure delay reporting.
|
|
|
|
|
| |
Verify ithat the IUT (SNK) is able to receive streaming media data on an
established stream.
|
|
|
|
|
| |
Verify that the IUT (INT and ACP) fragments the signaling messages that
cannot fit in a single L2CAP packet.
|
|
|
|
|
| |
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
|
|
|
|
|
| |
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetAllCapabilities response.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a get all capabilities reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
|
|
|
|
|
| |
Verify that the IUT (INT) is able to ignore a reserved capability in the
GetCapabilities response.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a general reject response to
the Lower Tester (INT).
|
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a suspend stream command from the Lower
Tester (INT).
|
|
|
|
|
| |
Verify that the IUTi (ACP) is able to issue a suspend stream reject
response to the Lower Tester (INT).
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to report to the tester the rejection
of a suspend stream command sent by the Lower Tester (INT).
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a close stream command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a close stream reject
response to the Lower Tester (INT).
|
|
|
|
|
| |
Verify that the IUT (INT) is able to report the rejection by the remote
device of the close stream command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a start stream command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a start stream reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (INT) is able to report the rejection by the remote
device of the start stream command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to an open stream command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue an Open stream reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a set configuration command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a set configuration reject
response to the INT if the SEP is already configured.
|
|
|
|
|
| |
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
set configuration command.
|
|
|
|
|
| |
Verify that the IUT (ACP) is able to issue a reject response signal upon
tester's request in answer to a get capabilities command.
|
|
|
|
|
| |
Verify that the IUT (INT) is able to detect the rejection by the ACP of a
get capabilities command.
|