Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp236985ybm; Thu, 28 May 2020 01:14:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjAkQsSbeTYJqFp/xUOHlXLc354qjZUboNsMddQYWeOlr0TKqVYcC7BexEUuNiHQw4/DA2 X-Received: by 2002:a17:906:1b48:: with SMTP id p8mr1734321ejg.399.1590653679355; Thu, 28 May 2020 01:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590653679; cv=none; d=google.com; s=arc-20160816; b=WdMGwLabyDhgsZp+o/yWYzYD7bhT9lIAdUuG9KmpsS6Kk0QxD0ajTFQjqmJdP8qCMw n2rXGx2FZAqJlsuP9qy0YV+alrQ2NI6JwJyKO57v6FVh1giiTE6sRp7AfZbrA6WAxwE5 rsgaM3EcZxs9BEH/COb3JerQhPHGz5d/i0uHkTGJXYcVjPZLbN5KweGXoq3lnqk8OoR6 mxk6NOeSgnoBuELHs765MF8xphcpWo8DHpBaP8MojTvHAXtDCvIim3RoOACLLDqS1uMQ nCBMOUnTAzIy9Hj27MrFV0Ch+RlNUKp3v8Zy2hm+7C84bPGTc541G6ucsMRKoT1hGyVf serQ== 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=7swPrI7I8aO79K0jDgAGTu0101YeAOJ1H8CY/xait8o=; b=BTZltm/r/cymlY92KNpLJIQZ8j8haHrCFbJScDX/mCRolMMHwgJWfrn51CF4vVoJ6U NoGpbZOP4Bgi/o+d10bv65OqDHWdX9RGzTnHa/6aOwJPZE/L+gko+Aa2Scc/RS6+Vq0h 7v/Hab6lj3sPBIkFyUF9Q5jwrYudd9x5dvENKgQtRkgysSkJFhneM65krPEYoYC3Xxht rGiaqJ9u6C1WaBjqCAnYMajNn3T0vvEmsoiQ2jpg6brpsm1h6grNCBeh6iaWV3COQU2B hfrx4aTMBlt74yw/gTxXmEf0q6d/cdKvy4/zewNGqHYn5dEv6hrYXcmn2+fXVWB8vDwH wQUA== 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 a11si1317919ejg.433.2020.05.28.01.14.00; Thu, 28 May 2020 01:14:39 -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 S1726459AbgE1INx convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 May 2020 04:13:53 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:50759 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbgE1INx (ORCPT ); Thu, 28 May 2020 04:13:53 -0400 Received: from marcel-macpro.fritz.box (p4fefc5a7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id AA550CECB0; Thu, 28 May 2020 10:23:38 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [BlueZ PATCH v5] doc:adding definitions for load default params mgmt op From: Marcel Holtmann In-Reply-To: <20200528012421.136864-1-alainm@chromium.org> Date: Thu, 28 May 2020 10:13:51 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <6239D349-F91F-4C95-9001-A4410AA3BF3C@holtmann.org> References: <20200528012421.136864-1-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 change adds the definition for the load default parameter command. > In particular, this command is used to load default parameters for > various operations in the kernel. This mechanism is also expandable to > future values that may be necessary. > > This will allow bluetoothd to load parameters from a conf file that may > be customized for the specific requirements of each platforms. > > Signed-off-by: Alain Michaud > --- > > doc/mgmt-api.txt | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 59 insertions(+) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index 6ee01fed8..14e3179b5 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -3223,6 +3223,65 @@ Set Experimental Feature Command > Invalid Index > > > +Load Default Controller Parameter Command > +============================= > + > + Command Code: 0x004b > + Controller Index: > + Command Parameters: Parameter1 { > + Parameter_Type (2 Octet) > + Value_Length (1 Octet) > + Value (0-255 Octets) > + } > + Parameter2 { } > + ... > + Return Parameters: > + > + This command is used to feed the kernel a list of default controller > + parameters. > + > + Currently defined Parameter_Type values are: > + > + 0x0000 BR/EDR Page Scan Type > + 0x0001 BR/EDR Page Scan Interval > + 0x0002 BR/EDR Page Scan Window > + 0x0003 BR/EDR Inquiry Scan Type > + 0x0004 BR/EDR Inquiry Scan Interval > + 0x0005 BR/EDR Inquiry Scan Window > + 0x0006 BR/EDR Link Supervision Timeout > + 0x0007 BR/EDR Page Timeout > + 0x0008 BR/EDR Min Sniff Interval > + 0x0009 BR/EDR Max Sniff Interval > + 0x000a LE Advertisement Min Interval > + 0x000b LE Advertisement Max Interval > + 0x000c LE Multi Advertisement Rotation Interval > + 0x000d LE Scanning Interval for auto connect > + 0x000e LE Scanning Window for auto connect > + 0x000f LE Scanning Interval for wake scenarios > + 0x0010 LE Scanning Window for wake scenarios > + 0x0011 LE Scanning Interval for discovery > + 0x0012 LE Scanning Window for discovery > + 0x0013 LE Scanning Interval for adv monitoring > + 0x0014 LE Scanning Window for adv monitoring > + 0x0015 LE Scanning Interval for connect > + 0x0016 LE Scanning Window for connect > + 0x0017 LE Min Connection Interval > + 0x0018 LE Max Connection Interval > + 0x0019 LE Connection Latency > + 0x001a LE Connection Supervision Timeout > + > + This command can be used when the controller is not powered and > + all settings will be programmed once powered. Note that these only > + control the default parameters. Higher level Apis may influence the > + effective value used. > + > + This command generates a Command Complete event on success or > + a Command Status event on failure. > + > + Possible errors: Invalid Parameters > + Invalid Index > + > + you asked me about naming and I was thinking this: +Read Default System Configuration Command +========================================= + + +Set Default System Configuration Command +======================================== + + +Read Default Runtime Parameters Command +======================================= + + +Load Default Runtime Parameters Command +======================================= The Default System is the actual configuration that you load before you power on the controller. These are really the default values for a lot of things. And I used “Read” to get the current settings and also with that the list of supported values. So you know what changes would actually be possible. I called the other one “Set” since it can set/overwrite a few of these values or actually all. I don’t wanted to use “Load” since it is not replacing all of the values like what we have with the other load commands. The Default Runtime would be then all values that can be tweaked while the controller is up and running. Regards Marcel