Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3266032pxb; Fri, 12 Feb 2021 13:45:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIIdzvTaJEsV+5iFaw5VgBXvp1RKMbVJoA+37GH2RSBNf74h3OO4AsDktc3xbANI0yUFtU X-Received: by 2002:a05:6402:3585:: with SMTP id y5mr5289000edc.97.1613166353280; Fri, 12 Feb 2021 13:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613166353; cv=none; d=google.com; s=arc-20160816; b=G4KbnlYhMTI9K5vs75x8REBcEC2imSRfSgqvoCHJnmQo4QJd3sOv0Zdflk2SzTz2IA 2njncUYtl2YncSqSAdhmTebKn+r+zCYsFBhw10IIikAfnYSVBjwexw+BDhPZSn7gmGWs Hl29ytr/NS7FjwI+ApHtYdzW5X1UqImSpTZFlr3mP3vmy5oECC1jLe8PZHkQnuxIps3F ZC+w5Cnd12r1CdsdAbvEYaO/guTPu+lJQCxCOzXoLykERPYi9gkRdidntHj3+o/+2T8c acerrPjSgCk/z5otiaBA2Atx4ZWQqekwYYi98vY64OoLPeek+kWjIsyrQVUgiSgG2ypa PivA== 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=I1W0uy3dFboj+GBJuJCljsRFx0gU71QSF6FalqlPKfE=; b=kNYD1niVZrK/mI3jnlTtgRPXTEpB125yD4xTMitKeYorJUT36VlVWh9ySR4IVEskuB TXZlLyzThzZMff0gfe2wdrzDbFecwBmuVwpwLZlKJB7c6gW7mGr1k9FO13fX30C3XvZb KiUcQIH8mG/iSzsR3Mo6V33YRZ9YgJ/2BqlWCWP7DE6ED5CGOy+crIOqEZBOh85tjbuH yf25W89CnlbkeJhdWs6+dpYN5zi7uy73v9D1zaZbon3iuUFSSUHH15mY5A1jfxS5sko3 UK2L27Ls6w228UlTESNGd66svBy2IsP4BDPg6XHnmxTDIy4qCEYvg7JUP8JwzeFhCKpJ 7ncQ== 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 e12si1897272edq.181.2021.02.12.13.45.14; Fri, 12 Feb 2021 13:45:53 -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 S231403AbhBLVnu (ORCPT + 99 others); Fri, 12 Feb 2021 16:43:50 -0500 Received: from mga06.intel.com ([134.134.136.31]:54929 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhBLVnt (ORCPT ); Fri, 12 Feb 2021 16:43:49 -0500 IronPort-SDR: PCXGTsw/ENZSp1R4VCPw9CCN6QDraRicWwdW5iz+gwTCLzGSKPlrolfMuowNEsJSc2lDwiDdzl GhxmnV3X5Kwg== X-IronPort-AV: E=McAfee;i="6000,8403,9893"; a="243967603" X-IronPort-AV: E=Sophos;i="5.81,174,1610438400"; d="scan'208";a="243967603" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2021 13:42:55 -0800 IronPort-SDR: /FUt9pILhbRTxGoR+dIBvUZ+s+SBo/ZKYY+v0ye6p++XdKEAdJNDRA10lU7qWYJGJJ3F/I6kMi zvOxUswJHo1A== X-IronPort-AV: E=Sophos;i="5.81,174,1610438400"; d="scan'208";a="416116350" Received: from dmoore1-mobl2.amr.corp.intel.com (HELO istotlan-desk.intel.com) ([10.209.2.150]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2021 13:42:55 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, michal.lowas-rzechonek@silvair.com, Inga Stotland Subject: [PATCH BlueZ v2 3/4] test/test-mesh: Generate correct value for Device UUID Date: Fri, 12 Feb 2021 13:42:43 -0800 Message-Id: <20210212214244.74995-4-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210212214244.74995-1-inga.stotland@intel.com> References: <20210212214244.74995-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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test-mesh b/test/test-mesh index 9e4783734..fbf2476bf 100755 --- a/test/test-mesh +++ b/test/test-mesh @@ -887,12 +887,11 @@ class MainMenu(Menu): print(set_error('Provisioning agent not found')) return - uuid = bytearray.fromhex("0a0102030405060708090A0B0C0D0E0F") - random.shuffle(uuid) - uuid_str = array_to_string(uuid) + uuid_bytes = uuid.uuid4().bytes + uuid_str = array_to_string(uuid_bytes) print(set_yellow('Joining with UUID ') + set_green(uuid_str)) - mesh_net.Join(app.get_path(), uuid, + mesh_net.Join(app.get_path(), uuid_bytes, reply_handler=join_cb, error_handler=join_error_cb) -- 2.26.2