Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2511317pxb; Thu, 11 Feb 2021 14:29:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4/yaPUA0H+iP3dz/Z+ME/afEUFh8/LvoTH/cJv/JPAa2/itBDAMKP8nVT7pp3ILHPbaDb X-Received: by 2002:a17:906:36cc:: with SMTP id b12mr10760706ejc.323.1613082562918; Thu, 11 Feb 2021 14:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613082562; cv=none; d=google.com; s=arc-20160816; b=yBZZO3Hrab7PMe6awGTdWOoum46g9ok5PA4rhfRClaYfPb4UaFEsayMtTug2LytfXJ PotCoukQ7GPv8V3OAgEkZ7M42FQfn6FjJHjBQ6UUXBPwvgZZPIMPIcYZlNaQ5Or3WjWQ tK6+C5gPZTHhDavkJdR1ngwU1MB7ygJzyD5ipEFlb8HAM5bKZwudyxeGoHUBiHLsBiBF 236Nn236mYIciqwNaLw3LBhN74TyqUALXtAgXtYNHK6L1EuBRES29rzmwAWQEP+708Ah KfejKtIwcYMzUzQuNBvnbkhUqXPIhQvnViJaAHopm3OFmr2J3t+FpsnBXu8+Mv8ubUrc CDzQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=t8VZ24tgxFUFbaPzctmw/h/OxBnu5NcqFh5nNdM0M7U=; b=QRu/XMA2Mt4Yfkd//lLKNQN2vARHmUOVhDdtWPstdSQdfNEYn64zPzafjMAE0qixHX mzYmREpaG2YPf++CDyccjXfoIpP5/f0wpTL27AEjk7K4qxgMpZhlXXZD5mkVanIUotp/ 3rs+X0kL/DTOalOtAbC20WXukjCHv21wGyM9EhkkfE9TxVtI3ZLEzzRjNAjR8H9U/qGw lPQodSWibLeB0UO9OlvGNM5FWqfxFVB01I0R8pOSMgj2cKy5wOKIzKviuW/t9PS8EVvA N3j/oo+vYGV7wfWuJxF9CidnGH5P/F+olXts3MKqdorwEIJgI/cJ2xTd3JUtMDrhI26V LqzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si4492467ejx.740.2021.02.11.14.28.59; Thu, 11 Feb 2021 14:29:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbhBKWXh (ORCPT + 99 others); Thu, 11 Feb 2021 17:23:37 -0500 Received: from mga07.intel.com ([134.134.136.100]:1736 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbhBKWXG (ORCPT ); Thu, 11 Feb 2021 17:23:06 -0500 IronPort-SDR: X+GJK6s1Nq3rUM0vvq98mPT9FR5zFtdf5vj2ipIkWMI8KFicGRfA/+JUK5WInelaZORdF0VIDP mQeKicK8gZIQ== X-IronPort-AV: E=McAfee;i="6000,8403,9892"; a="246392975" X-IronPort-AV: E=Sophos;i="5.81,171,1610438400"; d="scan'208";a="246392975" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2021 14:21:59 -0800 IronPort-SDR: iygIkBvAmk5k9DSpl8EOt74fnDXgtPMQiKRRme1fDr1QaK7lh7zEVoVYpRMdGlOohLKUW3QxNi O2TWr1eZBFKA== X-IronPort-AV: E=Sophos;i="5.81,171,1610438400"; d="scan'208";a="381070056" Received: from binman-mobl4.amr.corp.intel.com (HELO istotlan-desk.intel.com) ([10.251.152.23]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2021 14:21:59 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 3/4] test/test-mesh: Generate correct value for Device UUID Date: Thu, 11 Feb 2021 14:21:42 -0800 Message-Id: <20210211222143.39986-4-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210211222143.39986-1-inga.stotland@intel.com> References: <20210211222143.39986-1-inga.stotland@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This ensures that the value of Device UUID when invoking Join method is compliant with RFC 4122. --- test/test-mesh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test-mesh b/test/test-mesh index 9e4783734..a478843a3 100755 --- a/test/test-mesh +++ b/test/test-mesh @@ -889,6 +889,11 @@ class MainMenu(Menu): uuid = bytearray.fromhex("0a0102030405060708090A0B0C0D0E0F") random.shuffle(uuid) + uuid[6] &= 0x0f; + uuid[6] |= 4 << 4; + uuid[8] &= 0x3f; + uuid[8] |= 0x80; + uuid_str = array_to_string(uuid) print(set_yellow('Joining with UUID ') + set_green(uuid_str)) -- 2.26.2