Skip to content

Conversation

Thalley
Copy link
Contributor

@Thalley Thalley commented Feb 19, 2024

The LE Secure connection (LESC) mask also require encryption, and some users have been using e.g. BT_GATT_PERM_READ_LESC without BT_GATT_PERM_READ_ENCRYPT, and then the encryption check in bt_gatt_check_perm was never properly applied.

The LE Secure connection (LESC) mask also require encryption,
and some users have been using e.g. BT_GATT_PERM_READ_LESC
without BT_GATT_PERM_READ_ENCRYPT, and then the encryption
check in bt_gatt_check_perm was never properly applied.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the gatt_lesc_check branch 2 times, most recently from 6c22ddb to 1c7c4bb Compare February 19, 2024 10:28
The test where it was supposed to read the long characteristic,
only read the "small" characteristic, due to setting the wrong handle.

With the right handle, the test failed and the test had to be
updated to store the data across multiple reads, and then do
the proper comparison.

Signed-off-by: Emil Gydesen <[email protected]>
Add tests for the GATT permissions to read and write for
characteristics that require encryption and LESC encryption.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley marked this pull request as ready for review February 19, 2024 12:55
@zephyrbot zephyrbot added area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth labels Feb 19, 2024
@henrikbrixandersen henrikbrixandersen merged commit 686a8c9 into zephyrproject-rtos:main Feb 19, 2024
@ceolin ceolin added this to the v3.6.0 milestone Feb 19, 2024
@Thalley Thalley deleted the gatt_lesc_check branch February 20, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants