Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp329569rdb; Mon, 29 Jan 2024 03:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUA1Dfo/Q7ia3LaUx2vSyrj83QnHfq45lHYqzeC6u2eKR6ahVCYHDo0rMIrPi3eAS1Tttg X-Received: by 2002:a05:6a00:f06:b0:6de:3521:b3c2 with SMTP id cr6-20020a056a000f0600b006de3521b3c2mr1076765pfb.11.1706528979369; Mon, 29 Jan 2024 03:49:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706528979; cv=pass; d=google.com; s=arc-20160816; b=e1uQtJs0TlGVCqRpBf1NkyYM0j5/uOVMO4DCbCq7ejJk4DkPl8OEHRC3xjl+ADaw49 K27snU+LPBoH4PLmHUehHxDQFLByNinKEZ8xYDycfDPvrL53bADX5OcCoxwtEHD1z91U NK14C8zeHdoWweufirfodFs+SAbu3GapOA7arRpbfwyg6qTXdzNoRIKglhg9FnFwb3pQ I/FYBwH4/Pj3b1jZ5aE1MxS2hTjOdV2IqxSCdvcy5gcx5qCA3rgKYo99rWvLlbT21POX Iqwb8QyCEKZgXLMPCePqTJVUENCWvmSxT1s5JNqgabbawpSiNBNVzlGzlI5XNp4xP8qS wvwA== 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=P2/XS2v/6ngpFd4nrwWZKNS0Q5fx6uU2TBnLQaatEfU=; fh=c38J9zbsgHLNhWxJ8/ndjiTKtcMHSNZxa3IAP+R4egE=; b=BRIv2lkykJlNa3eats5Nde3mt7V44gLlbXM/9MqcsJkCl+e/76udtR9dlqXXalDLBR gWlGIGssonIzSqLPZHUTE59g3ML5+QsJZE9zTw9qTZIM+JtyB+a+wvqfXVnN1QyCrbm7 OWxlD6U1EFwoba/nAg7pOsB4snZ4yDhoW1bneGY+mwV5HDwARrRaxTbPCheulj2vcZAt xFU3DF5iwA3RNgFjxRIvkFV8j1kuwHWjXCJPPpaS89uIruUPi3hSrYiMfPq8eODxn5oI qwyln8NCjwG8NCdR43Zkh3VqvH3UUSsRR4yxEepXRhAPv83nS/f6gRlimAm0IxZH/idx 4uPA== 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-1430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k4-20020aa79984000000b006db05fad13fsi5558532pfh.380.2024.01.29.03.49.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1430-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-1430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1430-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 E7D09280F79 for ; Mon, 29 Jan 2024 11:49:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43C7D5F86C; Mon, 29 Jan 2024 11:49:20 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 D77696086B for ; Mon, 29 Jan 2024 11:49:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706528959; cv=none; b=mQzQUAH/6KU/sqj+ZFDGm7P1LE9PKDcJna+WXBQk0ZC9pWRbY789+xchcrabbQTsYlMYrg2TH5I9LN2sOQLa2SE339yqJy04JyjoP9cmkI9cBQBog/MwZNzPB9FH0NCZA94/b92k9FWe/zD6tINNLyBNqt+sOKVpwrtAP11+MPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706528959; c=relaxed/simple; bh=JrdX4gG/uCk0OZpF5qXRdtzFqv9g7kPjMhpd30rLtjQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PCnFkO1g4UaWeZmdDYZ1aK2zwKhRs96Dqq2AiqQTKITO4hxE3akmLgBeTX6ngpm30WYwkl5l99/QZ0cy4IBOACqhrhJD9sNcMp0oL0rNU6ntueiUan4UhhpnfUBSD5f8BXWURn1Nps4YtxLLxeVk3HrKjfdTvKFI9ui0ukLW9AI= 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.172 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 [IPv6:2001:67c:2050:b231:465::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-202.mailbox.org (Postfix) with ESMTPS id 4TNmmN2S8bz9sZv; Mon, 29 Jan 2024 12:49: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 2/4] mgmt-tester: Adjust a test for recent kernel changes Date: Mon, 29 Jan 2024 12:48:58 +0100 Message-ID: <20240129114900.92919-3-verdre@v0yd.nl> In-Reply-To: <20240129114900.92919-1-verdre@v0yd.nl> References: <20240129114900.92919-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 X-Rspamd-Queue-Id: 4TNmmN2S8bz9sZv 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", https://lore.kernel.org/linux-bluetooth/20240108224614.56900-1-verdre@v0yd.nl/), the "ETIMEDOUT" error path for the "HCI Create Connection" command was changed, sending a "HCI Create Connection Cancel" 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 ee12ed7d5..7c9e63cbb 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