Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2968835rdb; Tue, 6 Feb 2024 03:23:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHn4EGPfiAqyh8hvbxYXcieKzwjq3vByVYmJGL2ccR0sbz0fqdDIljKCSp7RysltWsvNbI4 X-Received: by 2002:a05:6870:63aa:b0:219:7a41:348e with SMTP id t42-20020a05687063aa00b002197a41348emr2193823oap.49.1707218625935; Tue, 06 Feb 2024 03:23:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707218625; cv=pass; d=google.com; s=arc-20160816; b=D/J7cOo9WHsUvXOP0k9VyeNOqMpvqE8qxPMo1SFaMuGRf5sAckwTbKF3oalPjNbVLE gmrbdT4hr4Snxk7JHoiCY2oI/oB1AJQ/SrQEIErvFLeokCHOsoM0CuwI8JGKkIWQoUe8 tFtJI7s9TeaL5V0UiLwBlXaeCB23Rit6Jfo9kg3sfJKjDeRwHf1mIwYNSPhIiC/d+EH5 wLXeYhCaLk0dMjndnZN1o+3UEmlsxU633RurF4UyviHXfKnEAkDEc8oyblGgMUmHzX1X GcBBMsOxeeXxmUEbNQARQm1aot2GPg7Bvhy+K7IPKmQbZRSeUFGRwNgZkN+g87XnUnJm Tofg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=LSRv8ac4/V2jR0wL61Db4NtXKdDfnwguwDdzs/qblJs=; fh=2gYMcyeE16ns7vQVEoTExKPl2sNZxw1RS/AIAfaN15M=; b=wdrqw3YfJnBc6sXysvbXwDffITorC7agouJMyDC93ghlTLPIoYSYXXCYxLsZKFgKHg fUJ2KReVbixsuKUuGkyL1pan2ncRqHxPkeul8E/UXOR77iMXANhjBbBSlELE57NvQast 8KswONcSF1CXi5DQv0U1hJhk7xfZs9eFFWi2v7IDYkv7HsKfjZ5YuBPb/IE0gIkq5cF1 F/7fszMyB/233mHeHa0E2IngMPxlls1QwyJ6FlyspR4QrnhgRU7mN+oZ7Qiu5OFes8M8 s9QLk4bAgN2yjRwfEfb5lDM9TI/AHRDxKibytyabpvZN7SbT6p/3XRpUcsr2HGpPbkjk 0R4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=v0yd.nl); spf=pass (google.com: domain of linux-bluetooth+bounces-1630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1630-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCW1PjumWyH6nXT/aZDuOpASB8n/ONM2U2sgw0xjX8hi2aQd8ADzWRsyHhMHAXB17S8OqCaSMqE8baebMrUDVESBMcATxEdjGkXA8Trwxg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o4-20020a634e44000000b005b92edaa151si1519496pgl.739.2024.02.06.03.23.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=v0yd.nl); spf=pass (google.com: domain of linux-bluetooth+bounces-1630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1630-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C698283A5D for ; Tue, 6 Feb 2024 11:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C40D12EBEA; Tue, 6 Feb 2024 11:23:15 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E469D12E1FC for ; Tue, 6 Feb 2024 11:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218594; cv=none; b=uRf5QZHhcg4Obv6h0CoxFejIxFI0FDPpffIV6orzIdDBpAi0FUdHvSHdFcUZtcStQ205Zl/tS8K9NCQDIbYkSENN+F9Ikvemp8C3Fq1aW+uqjDSF2+8niPD+34DRLeIn6ljYT28AyZzm2e+LzpwiaOZU4OXhHczdi9L+6Db5awE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218594; c=relaxed/simple; bh=wyBQMtAQ77Mo9NLIgT8063PW5DnJNq5je6ORcAdKM0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SbnfrLU82qUGc8vyeYZJqinYktm64RGNLjS2geRAq2Vk2qrNk82UQ3wujkijniNRLPspmG/coxGbp6FfBeawvCyGDVDrtm6k8Jvok28g911yrNllMzd7tuViFiVtAR4XSVtJki7ZodUF7wuy1YwDi5rYyE3no5GjFRZjsgP0RqM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=v0yd.nl; spf=pass smtp.mailfrom=v0yd.nl; arc=none smtp.client-ip=80.241.56.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=v0yd.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=v0yd.nl Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4TTgph5kHbz9stk; Tue, 6 Feb 2024 12:23:08 +0100 (CET) From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= To: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz Cc: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Subject: [PATCH BlueZ v2 2/4] mgmt-tester: Adjust a test for recent kernel changes Date: Tue, 6 Feb 2024 12:22:51 +0100 Message-ID: <20240206112253.76446-3-verdre@v0yd.nl> In-Reply-To: <20240206112253.76446-1-verdre@v0yd.nl> References: <20240206112253.76446-1-verdre@v0yd.nl> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. --- tools/mgmt-tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 7d884bbf6..767cd5cda 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, }; -- 2.43.0