Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6562435ybx; Mon, 11 Nov 2019 11:00:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwokghtDsboUqV8W06GHqjDiQmT6D1HNJdQP3rIGzniQsefLRaALF3CCZmxrt/PlA/kaPB2 X-Received: by 2002:aa7:d916:: with SMTP id a22mr14731891edr.115.1573498845908; Mon, 11 Nov 2019 11:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498845; cv=none; d=google.com; s=arc-20160816; b=PBWWYiefc1swSyWyLjNxTsDvWxF2DJ/GXt0xH1l42gE4EGbn20Zbvsl4kRmrDKYTLO z4WPlVDdv13YLizBoVXUUJDyxpfvavJyXqGvtopTzFvFTehJwmjLxemxTM7XDzsyWQO4 laXX+RTh+juwH8CEvSYpqtmqnMGqqoWcwUya43pqxxBH4Ou8TaQW+iWixi2ECCehe9Tr Ycpbqf9FgiiC+um22+ENyeu2ucEjvuAOb/YXICN2aiuOerNx81Q1eXD/tnVP7kFHf1xq 0E1V9dvjhpOzDp08BClF/jAJ4071kjzguv2uxubHd7574MS+x+XEhdcoo7MKF6otoVKp 7arw== 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:to :from:date; bh=dlxCbBkAkaDtGzUvBSD9/hXoFGFLXTqOZ5+yEDoABbQ=; b=wiMSWtW0xFuFm3xRW5DzaF8RSLqqKIz4w/IAR0CLhHy4yH4LzJsDr7WVi+zA3yxO6q EGsd+X5haxtjeHF5IPDevbCSMD4QovDPkw2z+RlhUD+53GN9RMB7rlqee1+ll52nDQFE qQSNHAHaDqnaRtxHcltVoijAtjreagnTUSxg5jTaIiWp4oMCWOBi4/Z5qCKDjaa8jQgZ ZBSacJBQolGa+k4LXnR5togZIv4s2B7Y3m/7CUK7w5FHH2fXlubwpkmDBTOv+l2nEP3a qMDbKfLQFWfo64HA75TqEJ8dRfJYRvjkSDUcJ+GW19aKmytRlOH3RxoK18TzGvBkosqm piAw== 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 p37si11124515eda.405.2019.11.11.11.00.06; Mon, 11 Nov 2019 11:00: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 S1729966AbfKKS4C (ORCPT + 99 others); Mon, 11 Nov 2019 13:56:02 -0500 Received: from hall.aurel32.net ([195.154.113.88]:57786 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730179AbfKKS4A (ORCPT ); Mon, 11 Nov 2019 13:56:00 -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 1iUEr1-00006R-9U for linux-bluetooth@vger.kernel.org; Mon, 11 Nov 2019 19:55:59 +0100 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.92.3) (envelope-from ) id 1iUEr0-0000KP-Nv for linux-bluetooth@vger.kernel.org; Mon, 11 Nov 2019 19:55:58 +0100 Date: Mon, 11 Nov 2019 19:55:58 +0100 From: Aurelien Jarno To: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH BlueZ] tools/mesh-cfgclient: add network transmit get/set commands Message-ID: <20191111185558.GA30589@aurel32.net> References: <20191111130043.5247-1-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191111130043.5247-1-aurelien@aurel32.net> 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-11 14:00, Aurelien Jarno wrote: > Add network-transmit-get and network-transmit-set commands as per > Mesh Profile 4.3.2.69, 4.3.2.70 and 4.3.2.71. > --- > tools/mesh/cfgcli.c | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/tools/mesh/cfgcli.c b/tools/mesh/cfgcli.c > index a4de42943..adc35f5a7 100644 > --- a/tools/mesh/cfgcli.c > +++ b/tools/mesh/cfgcli.c > @@ -621,6 +621,15 @@ static bool msg_recvd(uint16_t src, uint16_t idx, uint8_t *data, > src, mesh_status_str(data[0])); > > break; > + > + /* Per Mesh Profile 4.3.2.71 */ > + case OP_CONFIG_NETWORK_TRANSMIT_STATUS: > + if (len != 1) > + return true; > + > + bt_shell_printf("Node %4.4x: Network transmit cnt %d, steps %d\n", > + src, data[0]>>5, data[0] & 0x1f); Replying to myself, this is wrong as the Foundation Model Layer uses little endian ordering. I'll send a v2 and fixes for the existing code. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net