Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp633624ybm; Fri, 29 May 2020 08:30:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygcaqwoe3wA1G7FEZXQU8K2CBXGFYjek0RROOcD7Js1jCMRyo0oG60U2Vbzr2V029LH+a7 X-Received: by 2002:a17:906:2c03:: with SMTP id e3mr7972140ejh.206.1590766232403; Fri, 29 May 2020 08:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590766232; cv=none; d=google.com; s=arc-20160816; b=te1x5hwObJx/qNW4uVqCKEwtqbLPuCJJTY+QnO2LOvvk3rDX9XNla1aqUxcEF2YQqn 7EzbqrIzKLTRBSLqOIHianQw2Z9vdLrCs7q6D7HSb5VhKevSr3FndzdQqehYFYA+iErq of2bJmVEV/IqNTuBi9tBbzNPCFdlnjHd54K84BPGS4TVmit+9SVep7HbSqEV8n3hssIG x8danpEtHeX+Nzc/qtcOOLbOwNzj2LsmndnouU0n/0NNoORtT2FN0428RT5IG4HWaZOm lyN6gYjpB8vEZ69qNb+AbxQcls++I+2zG/4sHmPO2uhSpk1hmrxAXKAEW/tFUWjIBzYw QSMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7M2tfYh80B9hmGNpy89uPZ4yjgvheWE9VRKIf2ge+mQ=; b=Exk68RWgZHemk7jJGlgEiP28cVuwDDdOFhB/b+5ReNQxgLdurl2f5qHqMYX/Jmb0AE md0tgQ2DuhdMe1TA/sRw2y03bAzoMb4TVxP8hg5q/FUie3BAakKUfkID29uF2PPzhHUo pUJbrLeoxlRHaUxRlQ35cJoqqBQNPDWlx8YZd5TtMW40N9LOXuUbjphXx1d0zQsjsteV tfhFjCWoS/+oisqmwSQnQ9tqeV06E8x7equeAmv4wHV4oFlkf7GOXCYGwp2kIxHWaOF3 YYjIUbL34C5JxPOEbQBAodusxmquy1NRmpqSMVcN4QxNKjzzp25WK6zo1sTJtPFJV4u4 6tXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FCIdltDe; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce14si5997916edb.101.2020.05.29.08.30.08; Fri, 29 May 2020 08:30:32 -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=@chromium.org header.s=google header.b=FCIdltDe; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbgE2PaG (ORCPT + 99 others); Fri, 29 May 2020 11:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgE2PaF (ORCPT ); Fri, 29 May 2020 11:30:05 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 097C9C03E969 for ; Fri, 29 May 2020 08:30:05 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id i89so933604uad.5 for ; Fri, 29 May 2020 08:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7M2tfYh80B9hmGNpy89uPZ4yjgvheWE9VRKIf2ge+mQ=; b=FCIdltDe14eg5SienV6NQ21GpiJL8rjPbhU/wAshdh1YNbfHkypTWvf42bvYuj0OAB H5VzxE4Brrjkb2pw1KbGM+sIWdX59vTPQx8vlKoiTKTUFSJCMPpT63Pu70339GAI8C7s UcGU52fpKIFsiIVmihPWS8zhJtUTcLhp3ga1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7M2tfYh80B9hmGNpy89uPZ4yjgvheWE9VRKIf2ge+mQ=; b=GajY2ZImGTngqw5jwSnEyQqrckojkrPiK3EH/Zhw7bS6hre72smD0goS0uielsuPQ2 2iWwrgkehfXZCkVV+wQEvdaU+6AgEjilqbUqvDNP0r4wglg6TgDJuKZGMKLJGeoR9kL6 8iPCrKqaEgyV+JQj8XQgpAON21SIlli4UVrBWUU87ezlS88AGpmymJlcRb6/Ajewsl5e Y6k+BlhEQk5hbloLttb1o71sLDMxomT7yZjRFDWeJiQZNFjcHHfAYAe2T9tcMkouM1Ek 7BXjU5YLoqw71P8yqqhvKT+3wrFHjxQciW65E6tceE+eMEZdtzS1f8VQf4155mIMrj41 CBHw== X-Gm-Message-State: AOAM531gghM60JEDQslAJj6Pjkv0LLvgA8IFEmWBmZhEmmb5DiffTs8q 7TSF1E52d3AfK/lR4yTWuJZa6mOsMYE= X-Received: by 2002:a9f:2a82:: with SMTP id z2mr5995780uai.71.1590766204006; Fri, 29 May 2020 08:30:04 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id c65sm1216286vkh.32.2020.05.29.08.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 08:30:03 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH v2 1/3] mgmt:adding load default system configuration definitions Date: Fri, 29 May 2020 15:29:39 +0000 Message-Id: <20200529152940.208214-2-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200529152940.208214-1-alainm@chromium.org> References: <20200529152940.208214-1-alainm@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This change adds the load default system configuration definitions --- 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