Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp536114ybc; Sat, 16 Nov 2019 04:10:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxJVc1a+d/fIhP+kpaKnEWdv2TQ217tx6lTD9GhcbbsIOrSXA1Uoq5MmX3l4+pXgEF2qb2e X-Received: by 2002:a17:906:c353:: with SMTP id ci19mr8726634ejb.249.1573906245455; Sat, 16 Nov 2019 04:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573906245; cv=none; d=google.com; s=arc-20160816; b=uLoDdCkngqMW3C1HjN3ky6O19esrb42WftACBHqr0KMqoyk6huGagEsc7VKGwR52+Q 6CO3Pyexvsglf9nNIU3LlWVjkPrI8PYhT6/WovejXGNQb8bC8mU6PLcwHehsiieIV5se 9u05dRCrHAr9LCld00xMg6+jELZH3cYCYEfyxlSPNdMlPAUy21n790NXUeI0nQ3hERUQ QORaoZiemLZUpl8srl4Lyn9kqwcoxzxBpZic9wvc2u7fx+gYoX/GEJOgChhrAISVc/NO NtXuOqMMvQECTKYg5ZMJywOngOaifw+DhjWFlX7TWIksmMCg2xd+/WjgUhk8WlIe0oq2 Bqtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WkTgTFz+i9dnQpxwzW+zEvEwr34ffg+4rpYh6vjN0O4=; b=dcpapK9Pbo7v03bmeG13DHnF0mGl7CbXfxK7mFLFzR8yHnX1HhxTlS9O6ZsE/GEbG6 srexufybjGdOEJw3np80FDgKcvADw38FoBlWojbyO9lQ2BWxh+VDR+2WprcH0MHiF0pZ yRUh/iA5y20R9I2qkQyrFWfpLgMZ5VcoanDn21u0jgMF0S6ddLtZMkSuMY4w6/1J0OmD QUspNRRbaz91jQdMbE4Guwlmfm8tSHbejqQYP45kQCP0OVgj81sdALSNFlSLKGaEpuuI 7x/94E60XwfUFJ8ERKRjvBsw5eDy8qEmYiMk/qv8dxiVA0JWwWclloVVYX6Hv0/uIbSg M+Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si7825810ejj.375.2019.11.16.04.10.19; Sat, 16 Nov 2019 04:10:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727533AbfKPMHv (ORCPT + 99 others); Sat, 16 Nov 2019 07:07:51 -0500 Received: from hall.aurel32.net ([195.154.113.88]:52656 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbfKPMHv (ORCPT ); Sat, 16 Nov 2019 07:07:51 -0500 Received: from [2a01:e35:2fdd:a4e1:fe91:fc89:bc43:b814] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVwrl-00019G-Qj; Sat, 16 Nov 2019 13:07:49 +0100 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.92.3) (envelope-from ) id 1iVwrl-0001MQ-Fe; Sat, 16 Nov 2019 13:07:49 +0100 Date: Sat, 16 Nov 2019 13:07:49 +0100 From: Aurelien Jarno To: Brian Gix Cc: linux-bluetooth@vger.kernel.org, inga.stotland@intel.com Subject: Re: [PATCH BlueZ v2 0/2] mesh: Fix inOOB and outOOB issues Message-ID: <20191116120749.GC30589@aurel32.net> References: <20191115231705.5596-1-brian.gix@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191115231705.5596-1-brian.gix@intel.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 2019-11-15 15:17, Brian Gix wrote: > This patchset includes modification to both the Daemon and the > mesh-cfgclient. All of the inOOB and outOOB scenarios have been tested, > and are working according to the Bluetooth Profile specification, for > the Provisioner "Initiator" role. > > Brian Gix (1): > mesh: Fix inOOB and outOOB agent handling on prov initiate > > Inga Stotland (1): > tools/mesh-cfgclient: Add full support inOOB and outOOB > > mesh/agent.c | 12 +-- > mesh/prov-initiator.c | 69 +++++++++++++--- > tools/mesh-cfgclient.c | 178 ++++++++++++++++++++++++++++++++++------- > tools/mesh-gatt/prov.c | 9 ++- > tools/mesh/agent.c | 21 +++-- > tools/mesh/agent.h | 4 +- > 6 files changed, 233 insertions(+), 60 deletions(-) Thanks for the patches. I have just tried them and I confirm it fixes output OOB with number. Output OOB with string still doesn't work. I came up with this patch to fix it: diff --git a/mesh/agent.c b/mesh/agent.c index 623f2faf0..e5545d7f3 100644 --- a/mesh/agent.c +++ b/mesh/agent.c @@ -604,7 +604,7 @@ int mesh_agent_prompt_number(struct mesh_agent *agent, bool initiator, int mesh_agent_prompt_alpha(struct mesh_agent *agent, mesh_agent_key_cb_t cb, void *user_data) { - return prompt_input(agent, "in-alpha", MESH_AGENT_REQUEST_IN_ALPHA, + return prompt_input(agent, "out-alpha", MESH_AGENT_REQUEST_OUT_ALPHA, false, cb, user_data); } Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net