Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp151365rwb; Thu, 6 Oct 2022 16:08:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5T8GFy5F01NVvjpQ7XJuZY9ojp/A1K5jYut7AFrEu6N8UJ/sGh5ymLYagE7m2Tt43MSiQq X-Received: by 2002:a17:907:3daa:b0:782:1053:ccb5 with SMTP id he42-20020a1709073daa00b007821053ccb5mr1771163ejc.312.1665097706210; Thu, 06 Oct 2022 16:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665097706; cv=none; d=google.com; s=arc-20160816; b=ujSgk2yOTdgO1LK5s/LsLfsvenzq//W7pPKrUWUPJNs9qLm/AT3hkicWDGq42+rZi0 NuiquHskf6nJHAd5mGyVpFR9xAlcCFYaXVAEwweTXKbwfpa/CE15bcDZ7hZI2xAzvTKM mqluM6o+6jGsBRyGLr06CR6Ex/xOL2quKLj90igkjVt5QMV6Ne7g3v4SJTRucIyS3GqR QREjovNX2TUMXGci1wgJOZNYyPCVb5UGdMh+Cg1wGKeXKil6mjm0a1dc/zr2jkZOYtH4 VfnMyPuIUMWzxnkVtks/BL5eeCawOc0fzDVzVbD5IHaFOc9UEWnzB06FVWM10pWEnNvq 0aMw== 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=78urQ28/nFe9dHaRvSAdtMgDIN6WwkBqUoWgHzCPfsE=; b=YoXLuEhbgDQI5/CDK7s//5w3qe5qm0RoygFurASSwTOV88X2Jyl5Epj4FY3wdRmzuK Ceb8LwZSx6ng31Zd7azZQzPHe45B8FfHLsnnWZBwYEZ6mbwrgrIAvRCRSyqTki526Bh9 Yunl3wYWKDb6es3GvXEsBPCFGvbCqGT/ZnlNr9Eg0uSvDDXizqEmjEi2obaFZkxb6ql5 qbYhbCQX4tzUqN8aIWAjQFihiZnBwEaUs/acPXzttqGP5WsvMN/sC4rVucDzwQcpa3E5 qaQg+1yeXaWb+Jq5vysxtvp8Ro0KYUyoEdgmZGA9an3+dPBjX2zTdJ+ad1M8hB8INAsV Uuaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GgzK4wuK; 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 dm15-20020a170907948f00b0078261fd56efsi731788ejc.571.2022.10.06.16.07.29; Thu, 06 Oct 2022 16:08:26 -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=GgzK4wuK; 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 S232045AbiJFWxq (ORCPT + 99 others); Thu, 6 Oct 2022 18:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232101AbiJFWxj (ORCPT ); Thu, 6 Oct 2022 18:53:39 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38110BB041 for ; Thu, 6 Oct 2022 15:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665096816; x=1696632816; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KxGva8Hq0yFDk903beVvGoYcVv2R0WmDMLI0cMDmIAA=; b=GgzK4wuKYDkA3ekIuD6nqZYTG3U2y483d/R3i/wx/WiLENj1Y2T1nKg9 YZb/5V8TvycXX05IHWcltjZg5PtBHkCt4wgXG3jj67QvCdUmZadew6ilK z9llz8gFs/NCiP2sqTGHBwWltT5PinyhLUkF1sJLuiuMS8f6PJkNRtPCS smV08dL1YieYloLv9UkSAfxDaLDAoxQwMktH+GI4F5UAgNjrHyavhlO7x 4lyD25H3GS0R262XYjsl5io/emRAyhfDrzIl0F2wJnPrRFbN82ec3xpGv J5Bl9e643so/v6QLKJNRhy1sFfVNLA3AWT+hwTfFyM6O7Th+jH2LkFwZr w==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="303573805" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="303573805" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 15:53:35 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="693550129" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="693550129" Received: from ctamayo-mobl2.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.212.51.159]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 15:53:35 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, brian.gix@intel.com, tedd.an@intel.com Subject: [PATCH BlueZ] tools: mgmt-tester - Test for HCI cmd after static addr set Date: Thu, 6 Oct 2022 15:53:26 -0700 Message-Id: <20221006225326.641765-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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 This change checks for the expected HCI command after Static Address change requested. --- tools/mgmt-tester.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 5747ab84b..7bb219953 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -4065,6 +4065,9 @@ static const struct generic_data set_static_addr_success_test = { .expect_param = set_static_addr_settings, .expect_len = sizeof(set_static_addr_settings), .expect_settings_set = MGMT_SETTING_STATIC_ADDRESS, + .expect_hci_command = BT_HCI_CMD_LE_SET_RANDOM_ADDRESS, + .expect_hci_param = set_static_addr_valid_param, + .expect_hci_len = sizeof(set_static_addr_valid_param), }; static const char set_static_addr_settings_dual[] = { 0x80, 0x00, 0x00, 0x00 }; @@ -4076,6 +4079,9 @@ static const struct generic_data set_static_addr_success_test_2 = { .expect_status = MGMT_STATUS_SUCCESS, .expect_param = set_static_addr_settings_dual, .expect_len = sizeof(set_static_addr_settings_dual), + .expect_hci_command = BT_HCI_CMD_LE_SET_RANDOM_ADDRESS, + .expect_hci_param = set_static_addr_valid_param, + .expect_hci_len = sizeof(set_static_addr_valid_param), }; static const struct generic_data set_static_addr_failure_test = { -- 2.37.3