Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1661865ybg; Thu, 4 Jun 2020 16:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx45YtjRWOaz3DovN4FTP9MUsHDnmhLjrwgKCuGQz6swBAMS5WxN3yPEoXVIqgTzKf9cicu X-Received: by 2002:a17:906:2e83:: with SMTP id o3mr5781721eji.312.1591311606222; Thu, 04 Jun 2020 16:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591311606; cv=none; d=google.com; s=arc-20160816; b=DSdmcvXKgj4J5h1t40ivFmQ1mwuVdBtSgkyIMykkrddc9tG8hUombcS9uPRlkL9SdO goWIkICbZEWoJSKGNqY03qNxVAU98hYST+Z1Vk/Q6CjN32hv1MeXCXK5Dq8Rt72FDJah 2cLF4QWcNmXyWVrgXoWaDiUcw5aLYMOGUVSSgQ2iZ9/XQqv80qRrcOBhZYu2bSt2tk6j 5YSfTLYQqAFb7vVsWwy7IS5S91T9K6oMujCshqqgoqBKHPtoFVOk2bX0axNA5IOyaXvu yXbHqSyvO0Hoa8esDTZ6oBjwnmO2Zh0E2DNTHV41hLQYh7y5/8xWTwhZ8nnspuMxqF8z dssQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=y1LSZGQkJEVh00V8Qot8Gz5G9hgLYAEbbOwLVOv/nBs=; b=a5KLf7mv6qTH4tFvdrD5Crvp+DSKi68vDfd6zBfN0oyQBHOSLE7E0u1RSY8fgkAx6D 0WEF6Jrv4Dze/FwunZxOC+uUmcXPMKNMHa4LaO684Fxzt2eSmw9zU8wkaJRNq1zfXynZ m+s0JTrCKioA2TzH99UTOu4YxpMswFD6rJcqhux+HeNTH23lmboN4J4Do1B+H99IiEtn cU1PvmLdEMuw2XXjRODB6dFvjsRXkTGfDiWhqom6oKiGw5nG5/0AEalSLo+0BLWZ+LFc V7IBv3FFpBqNTURn/U2ojBsa8VpnPKF02htGRY1+jkWVwwCOULSuiW7s8IQc5FsnPFir SE3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RaRdTqoh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si2391809eju.404.2020.06.04.15.59.21; Thu, 04 Jun 2020 16:00:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RaRdTqoh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbgFDW6x (ORCPT + 99 others); Thu, 4 Jun 2020 18:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbgFDW6x (ORCPT ); Thu, 4 Jun 2020 18:58:53 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1354C08C5C0 for ; Thu, 4 Jun 2020 15:58:52 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id s13so6117970otd.7 for ; Thu, 04 Jun 2020 15:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y1LSZGQkJEVh00V8Qot8Gz5G9hgLYAEbbOwLVOv/nBs=; b=RaRdTqohtNRs73bcBo2C9bWkHWqxDni7jqzO76DVm28EG9DlodFsIyM+pqwgBSSHRT i1IBgf2s00IsdZZhpSYq6skFHc9/CNJFppyMKhWspDRCoDW0JXL+NVlInNq874Tc9igS WqVjKA4img5UXp0JU7lgTBuIPaO7LWfGgkUJvDkrAz8YMW7eh7V757pzMktps9NRnonT ZU2J2b28oD0UeKjWt64INbFq844GuJAdc8uYujpFRRn0Pw4P4vugiDmdXztjrk7R1KAK g8VHb55rtXBWO3tPP5zdpVza8pHEVhn0E0aM2RmNIg8s3ztTUm9vMsFXlqN6X61BDayL xKlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y1LSZGQkJEVh00V8Qot8Gz5G9hgLYAEbbOwLVOv/nBs=; b=LSU54IXTO/uANVYeBGJavI3dMy2ECQ8x6TFZ6i98kAtH8ndD/dqzIPyVpQMSUk39S9 lekUm0rHP4aFnnqfxHYc9m1dcMM1L7u9vfh3WcDHvZFN0WGAJUD/LDkHw31wPiBkBgaN 0vacxJEQ39vEHGuqw0F9qHVLiYn83dK0kDZOq46C6bdUvk0LeCIVuxLKtI9ARWh7oOPd ODGfd+VFVyMW12metjHnN2FTJppgoWNlXZK30qT8ftl8GfK3m5mksXGP/LWhtBzeGhIm TuyyJQxZgNS1ksDKxDQfcp1103PLqKJ2+1mOgxYy9zwdY7S+uIhLGMq4ojIiZ5DCQNgV ZIPQ== X-Gm-Message-State: AOAM532Y5KM7hQVdzKdUNdvz3P73wzbSxdXQQLjC1PW4K55ia+wMbtAF fOZF91G6uqAPv5vI5WPu4LqaQC2RSjlxdRhd2eq2dA== X-Received: by 2002:a9d:2049:: with SMTP id n67mr4944474ota.177.1591311532201; Thu, 04 Jun 2020 15:58:52 -0700 (PDT) MIME-Version: 1.0 References: <20200529153814.213125-1-alainm@chromium.org> <20200529153814.213125-2-alainm@chromium.org> In-Reply-To: <20200529153814.213125-2-alainm@chromium.org> From: Luiz Augusto von Dentz Date: Thu, 4 Jun 2020 15:58:41 -0700 Message-ID: Subject: Re: [BlueZ PATCH v3 1/4] mgmt:adding load default system configuration definitions To: Alain Michaud Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, On Fri, May 29, 2020 at 8:42 AM Alain Michaud wrote: > > This change adds the load default system configuration definitions > > --- > > Changes in v3: None > Changes in v2: None > > lib/mgmt.h | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/lib/mgmt.h b/lib/mgmt.h > index b4fc72069..ea89c46b1 100644 > --- a/lib/mgmt.h > +++ b/lib/mgmt.h > @@ -628,6 +628,24 @@ struct mgmt_rp_set_exp_feature { > uint32_t flags; > } __packed; > > +#define MGMT_OP_READ_DEFAULT_SYSTEM_PARAMETERS 0x004b > + > +struct mgmt_system_parameter_tlv { > + uint16_t parameter_type; > + uint8_t length; > + uint8_t value[]; > +} __packed; > + > +struct mgmt_rp_read_default_system_parameters { > + uint8_t parameters[0]; // mgmt_system_parameter_tlv > +} __packed; > + > +#define MGMT_OP_SET_DEFAULT_SYSTEM_PARAMETERS 0x004c > + > +struct mgmt_cp_set_default_system_parameters { > + uint8_t parameters[0]; // mgmt_system_parameter_tlv > +} __packed; > + > #define MGMT_EV_CMD_COMPLETE 0x0001 > struct mgmt_ev_cmd_complete { > uint16_t opcode; > @@ -933,6 +951,8 @@ static const char *mgmt_op[] = { > "Read Security Information", /* 0x0048 */ > "Read Experimental Features Information", > "Set Experimental Feature", > + "Read Default System Configuration", > + "Set Default System Configuration", > }; > > static const char *mgmt_ev[] = { > -- > 2.27.0.rc0.183.gde8f92d652-goog Applied 1-3, thanks. I could not make up my mind regarding 4/4, while it seems correct it doesn't seem to be a common practice on C projects (e.g: linux, zephyr, etc.), most likely because it would not save much in practice since it just making const pointer while the string literal is already marked as const. -- Luiz Augusto von Dentz