Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1602592rwb; Tue, 27 Sep 2022 15:56:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XBrq0uAvjCwKqAoHSzWiKuKhib6MCr0t79OqhmZlEcxlR2Me9VP589kfbOsdw3L0ukky4 X-Received: by 2002:a63:c142:0:b0:43c:9fcc:c9f2 with SMTP id p2-20020a63c142000000b0043c9fccc9f2mr14137409pgi.44.1664319388359; Tue, 27 Sep 2022 15:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664319388; cv=none; d=google.com; s=arc-20160816; b=y/UTbTGvSOqgCObc+FYV0gbyxwIqgNO8DVF4tYrZk3dgLFv6qjrHLlvXZe7qFErYfU rpEHWvQvuYEBg13UQfkz6nw94N+Jis+W+ctRb8sIVSpiutZpHdRyabNu+GdlaCh7N8HS LljaWdD6zzL9FyBFb3lEm+FXwdEAlWs68bi7kI2lioY0cMjiRw+6fMBny98aj5Hy2Bh+ vSOwXisN97F74aRtqK2ZQ1pUddKjQR0lgyajSbQsAhDoNNDmaJOeOhUQnbtSNfgPDsD3 u/qsctNBvEspf4uCmj4kiLBEHPnnxsDS7eHSgbWNfKpwx5rPb43/d9S1Iic+tffLKBWR 5K0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6yux+9Lb+v/nIikSCytLsSbfMm3XUpVch4cE5bQWKls=; b=yzPiw6F/2mT8OiUUHUbg/qT3QPDHzEM5oud7+HHs2REn2xmf4nreigVcJiKXSvPf2d cW26H9S7yazsw4sXgEp3h/kQDRBMrIG276/JjA/HqJzGmGRl0dXGO0SqhokUC+MzCBpA wiQoL2FtFXlCxdik56aGtpROb4SzDFjxtigNmp6vlzeQGtRoYMt3phJiJDn9+NoejkZ2 /QWyP0BwWg9/O8A7yZ2hCoGqei7bo50bfOaH7uah+0M9wueKrqS/9WPTLzJY0lAWkpyk AXpedcoMxoVS3UJtjXumuePwDLVG8gF1n00NrPVs5459aS23RdVn37Y8wPSn//DpGXdy ToxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jx2BwFN+; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a170902d50200b00179c1c3b896si1026326plg.96.2022.09.27.15.56.00; Tue, 27 Sep 2022 15:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jx2BwFN+; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbiI0Wza (ORCPT + 99 others); Tue, 27 Sep 2022 18:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiI0Wz3 (ORCPT ); Tue, 27 Sep 2022 18:55:29 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 790935A164 for ; Tue, 27 Sep 2022 15:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664319327; x=1695855327; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NTRAptC/smVuJof5wj901qLP6v+A64VfyAxbA1gGSXM=; b=Jx2BwFN+mtjtbohx5Rs5DYBu/ypODM1qC+gcUMkq/Uin7WbbRlzta/nH eDkV6UJD/g4K9baN5ZrdB+g7ZRzM9Sno5ZisEiyRLIrlf19S7/ENJl9gL kazXJfJo8+YmAq+0iD6lzgGlxM5icVwBjDpsK31oon+H/5CMgKLHSDjSq eRotZof47BTCKUM53JvVvXqUhmmD/XU3TUojJWK55Lh5zy2Mk8gNroN+/ hyJAfzXmZT5heVm2lVoWom4umGVVaH/tuSwnRi5ula/kkBJ5A9YDdQe1k f7WaH0Oqksc2nsV7+bt+DGav12jGDnBA4jlowEx4DfLS7R+nhl3uM4Vvz g==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="284579886" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="284579886" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 15:55:25 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="690169766" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="690169766" Received: from jlawton.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.209.172.226]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 15:55:24 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, hj.tedd.an@gmail.com, tedd.an@intel.com Subject: [PATCH BlueZ] tools: Fix mesh-tester to expect end of ADV Date: Tue, 27 Sep 2022 15:55:14 -0700 Message-Id: <20220927225514.278400-1-brian.gix@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Tester was failing by not clearing the HCI queue of expected events --- tools/mesh-tester.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/mesh-tester.c b/tools/mesh-tester.c index 6781bd565..d7b3b6f9b 100644 --- a/tools/mesh-tester.c +++ b/tools/mesh-tester.c @@ -1345,6 +1345,10 @@ static const uint8_t send_mesh_cancel_2[] = { 0x02 }; +static const uint8_t mesh_cancel_rsp_param_mesh[] = { + 0x00 +}; + static const struct generic_data mesh_send_mesh_cancel_1 = { .send_opcode = MGMT_OP_MESH_SEND_CANCEL, .send_param = send_mesh_cancel_1, @@ -1353,6 +1357,10 @@ static const struct generic_data mesh_send_mesh_cancel_1 = { .expect_alt_ev = MGMT_EV_MESH_PACKET_CMPLT, .expect_alt_ev_param = send_mesh_cancel_1, .expect_alt_ev_len = sizeof(send_mesh_cancel_1), + + .expect_hci_command = BT_HCI_CMD_LE_SET_ADV_ENABLE, + .expect_hci_param = mesh_cancel_rsp_param_mesh, + .expect_hci_len = sizeof(mesh_cancel_rsp_param_mesh), }; static const struct generic_data mesh_send_mesh_cancel_2 = { @@ -1363,6 +1371,10 @@ static const struct generic_data mesh_send_mesh_cancel_2 = { .expect_alt_ev = MGMT_EV_MESH_PACKET_CMPLT, .expect_alt_ev_param = send_mesh_cancel_2, .expect_alt_ev_len = sizeof(send_mesh_cancel_2), + + .expect_hci_command = BT_HCI_CMD_LE_SET_ADV_ENABLE, + .expect_hci_param = mesh_cancel_rsp_param_mesh, + .expect_hci_len = sizeof(mesh_cancel_rsp_param_mesh), }; static void setup_multi_mesh_send(const void *test_data) -- 2.37.3