Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp241577ybg; Thu, 11 Jun 2020 23:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy10bb9jysbcQ4jxKUOJfHtOZiKwmwQGcrgqS/vWdVK+1zx6nvOgmVw4KHIYwnnayMaKOH1 X-Received: by 2002:a17:906:118e:: with SMTP id n14mr12520748eja.314.1591944073493; Thu, 11 Jun 2020 23:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591944073; cv=none; d=google.com; s=arc-20160816; b=a8HDbiKfl4rPidxFXKdNw5zjrAt+3yipI/Ip5h0q4yrkbnrdm6BYKvrxFLkbIDmN6O 0j2oMZJZlimJ7jVR9xkEh/xzQnAbEGWY73LPI1vuMwm5aryBJBSGUNaJBa0Yuh+RdciF iONIqviD8oRVqIlqbS9xQu5S92THqY6XbpRlUMg4f6ut9jpfah+ZJ1qTXWTfdwHIYDp4 bvNWwmMY6Lj7Z3QYsq+WVljXbN7ZhkcemV6GiOssGZBE0ICFVx49C1vwxLNWvoxz2jE+ 2JNf5Opxf98LON7Kxw/RLx0I2Y825vy/lynOBErz0Gxr462NUYTS7vpRehiZAJYXrrgr TB5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zcLNiJYPT4eBzOVc2rs9dtsMAGUqEKLoaVwyZhkJfd0=; b=RIhZlirrgSbir8WCd4hFMS3Rv4xPkSndthrrzCgPP4ebl4CxRITcxSeNXJhVWlvdQ0 8mLky9Sbl1+N6dAT8wO66GVFDz65ck8v9ZU0MmBCpwg96CVDikbkMHRK5P7HZB8mUA1z 6v9dOmWbwbYi2MJEaFMnBL/fo27Tq5uDJYZ4Zh9ixEBQOHEVEeySNgzWAFUc7cMIjxab YGfTxSMW5fOwpWQIHLU00H1LJFkodzc/FvdeVSTYBTNQLb54rWn4+DZ/C/LIYO3RDLk6 3wOOFBfO/+RGZ+CFlyU6LRkM5AjRNs0PB9RNFN2ljNy8bogplTedBIGgTgYGnmvw93PJ xbdw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si2934679edx.506.2020.06.11.23.40.49; Thu, 11 Jun 2020 23:41:13 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgFLGiY convert rfc822-to-8bit (ORCPT + 99 others); Fri, 12 Jun 2020 02:38:24 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:51498 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbgFLGiY (ORCPT ); Fri, 12 Jun 2020 02:38:24 -0400 Received: from marcel-macbook.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id F1604CECFF; Fri, 12 Jun 2020 08:48:12 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v2 1/3] mgmt: read/set system parameter definitions From: Marcel Holtmann In-Reply-To: <20200610200452.107406-2-alainm@chromium.org> Date: Fri, 12 Jun 2020 08:38:22 +0200 Cc: Bluez mailing list , Abhishek Pandit-Subedi , Yu Liu Content-Transfer-Encoding: 8BIT Message-Id: References: <20200610200452.107406-1-alainm@chromium.org> <20200610200452.107406-2-alainm@chromium.org> To: Alain Michaud X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, > This patch submits the corresponding kernel definitions to mgmt.h. > This is submitted before the implementation to avoid any conflicts in > values allocations. > > Reviewed-by: Abhishek Pandit-Subedi > Reviewed-by: Yu Liu > > Signed-off-by: Alain Michaud one think that I forgot to mention, you start with the authors signed-off-by and after that you include other signed-off-by, reviewed-by, tested-by, acked-by etc. You should be able to read this top to bottom as the history of the patch. > --- > > Changes in v2: > - Renamed the mgmt.h per Marcel's comments. > - Addressed Marcel's comments in the implementation. > > include/net/bluetooth/mgmt.h | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h > index 16e0d87bd8fa..09452d2ea6d3 100644 > --- a/include/net/bluetooth/mgmt.h > +++ b/include/net/bluetooth/mgmt.h > @@ -702,6 +702,36 @@ struct mgmt_rp_set_exp_feature { > __le32 flags; > } __packed; > > +#define MGMT_OP_READ_DEF_SYSTEM_CONFIG 0x004b > + > +struct mgmt_tlv { > + __u16 type; > + __u8 length; > + __u8 value[]; > +} __packed; > + > +struct mgmt_rp_read_default_system_config { > + __u8 parameters[0]; /* mgmt_tlv */ There are ongoing attempts to use var[] instead of var[0] to standardize on more restrict C standards and its interpretations. In addition, I would shortcut parameters to params[] here. I can fix this up for you since I just saw you send a v4 as well. Regards Marcel