aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2024-02-06 12:22:51 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-02-06 16:56:43 -0500
commit6a264df7200b3350712decf5d09d7bcef7a50fc2 (patch)
tree1014f5539bf8de2ceb32b0c7fef4fd1ca5710c0f
parent141513cd0229ef47cc96031666eb758b1824f43f (diff)
mgmt-tester: Adjust a test for recent kernel changes
With the changes in the kernel to move to hci_sync for connecting ACL devices (see kernel commit "Bluetooth: hci_conn: Only do ACL connections sequentially"), the "ETIMEDOUT" error path for the "HCI Create Connection" command was changed, sending a "HCI Create Connection Cancel" command after the timeout. This leads to the returned error in the "Pair Device - Power off 1" test to change from NOT_POWERED to DISCONNECTED, so adjust for that.
-rw-r--r--tools/mgmt-tester.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 7d884bbf68..767cd5cdac 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -3216,7 +3216,7 @@ static const struct generic_data pair_device_power_off_test_1 = {
.send_opcode = MGMT_OP_PAIR_DEVICE,
.send_func = pair_device_send_param_func,
.force_power_off = true,
- .expect_status = MGMT_STATUS_NOT_POWERED,
+ .expect_status = MGMT_STATUS_DISCONNECTED,
.expect_func = pair_device_expect_param_func,
};