Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp603000ybm; Fri, 29 May 2020 07:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbWjB6liQMuRtDL4/6NQlJkPXf0Uc8Ru4vEGgyAlgT14Qb2XlO/g+I6tiTa6FOjrcstwa6 X-Received: by 2002:a17:906:35cf:: with SMTP id p15mr7690882ejb.520.1590763881388; Fri, 29 May 2020 07:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590763881; cv=none; d=google.com; s=arc-20160816; b=e2jXCo+XclY/e9X6ZI5ZdP6vmeNsgDqywrx7e/8Bdlta82UVRegO2X1D2SIpNZKPB2 poaV7wrDvD2UXwllW+cw+dkpYlemnt6UoxKiN0iz1EnltqNhUISg6p74IZEeZ7PhpgAw bh4lRWLuRNM33/a+kALtAhY5ZU4zRz/LJnfSxLwENXUUZLb/g9Z27EmDT5OIO+8h8dLQ xSJqgfaC3OrQV31IpColadL/Z/ml9fKEt4oWqOElvaCPawGDRfThl5eBA94HbHb53vBI 93Pkr4IuFayw/p5bro1lHWI6zWK9UXHGvxyv7KXaxLrE83VLkNKGLM01LnACkcGaLLPk oSMQ== 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=zLzJJaMVoDM5EoEAk4znCaHIyIqYaht6B8SksNLwgIU=; b=jzDV/pEDXW/c3NZNqxryc1oj9MKjMdLyRhcsB91FBAtigZlwAT0XbwVdpo76s7cosP agXdlpmRDO9rmHzbQduEDfSZvfDLMjf20J3mqV/TRSaiT2GNFBfrB5JboBQMv4jzux0n J1dmX986lpONa36Asd3X+aQxum4vvG9U8GqkC2L+OfNGD6D2oSwvzOgVcXyeERD1OKrX hsYyG4ZRKBin++OfGGrpCL8JC0R0GIG/8PrNAzi6QRkbo8M1UWrs2BEgfz3bWkIKplta vL3rcUbsi1iGE2PwI9SEU0MMcXsodAmvs/UeEwMctJKMWXWBBXYlt8LLKmS2jTWPi/nm OYIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cxcGj63W; 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 dt4si7291202ejc.34.2020.05.29.07.50.56; Fri, 29 May 2020 07:51:21 -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=cxcGj63W; 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 S1726903AbgE2Oue (ORCPT + 99 others); Fri, 29 May 2020 10:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgE2Ouc (ORCPT ); Fri, 29 May 2020 10:50:32 -0400 Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C6FC03E969 for ; Fri, 29 May 2020 07:50:32 -0700 (PDT) Received: by mail-ua1-x934.google.com with SMTP id c15so869884uar.9 for ; Fri, 29 May 2020 07:50:32 -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=zLzJJaMVoDM5EoEAk4znCaHIyIqYaht6B8SksNLwgIU=; b=cxcGj63W2HHgk+jMAsUqsmOnx+5DN5L+bvZU23RTLJzgtst/Epq8Uy37/4sdlq+wfD LyIXYP+pfxHUpe0ZUx0NHK7lkUMIkhamzFBwfrxpeA3mF5yRDIeeeBZ1exBulFfoiCMd wFdLNflN9E96fY6Pkh2od6dxFX0wyhO/san1Q= 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=zLzJJaMVoDM5EoEAk4znCaHIyIqYaht6B8SksNLwgIU=; b=GuAKFTk88SaDYHw+srXGGtMbaSWD7RYvU94m7AkL5VYnMZoODhJN0SEc5nj/qImktD yuHGZyyChJgGXfgij7fPvWSAEyhRLoVrOTllJM/Qk+vYEQkxBQZzJYpgMlPHJcCSyTGt 8d+UpFS+i5y/G0f4JETZW2HEvgVyebt4opcGRssi5QOdzsrv+Xzu9Wb4d92oKxC09Wjc 85n5Fre3d7uWT6oAfFc+hmq2QMs4q9Cmngega0vYNq2DWpttfryxnDpHOm72tz9aEQeA tglnHreHxjPMsc4k4ru1BnfvXT1yzuJuYAzJQFDCase/EZ8+b3Fs6cT6xUqy6ahqIH3o G0Mw== X-Gm-Message-State: AOAM5313oEvqW9hyGwkUQhcJmCWeSdpXSgmCoSddDs3onk+UtALyfND1 f5pHNKi44jpFwHfybYcpsdDrYM5ThxU= X-Received: by 2002:a9f:23e7:: with SMTP id 94mr6116936uao.84.1590763831250; Fri, 29 May 2020 07:50:31 -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 c65sm1196998vkh.32.2020.05.29.07.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 07:50:30 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH 1/3] mgmt:adding load default system configuration definitions Date: Fri, 29 May 2020 14:50:06 +0000 Message-Id: <20200529145007.198906-2-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200529145007.198906-1-alainm@chromium.org> References: <20200529145007.198906-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 --- 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