Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp929198ybz; Fri, 1 May 2020 11:07:46 -0700 (PDT) X-Google-Smtp-Source: APiQypLqx+5WWwxvSz+ReRPyu5dzLmru37HnjS8PwYOxrworlwU4x7NiafSOi6Ts46/KN6xcy/B2 X-Received: by 2002:a17:906:131b:: with SMTP id w27mr4401925ejb.230.1588356466455; Fri, 01 May 2020 11:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588356466; cv=none; d=google.com; s=arc-20160816; b=xKLR/XW55kzikIwBPlJXIah/BD6Jb6bfhotSZeGvLl8STtbv1EwGkd269UGfO/HQoI oRsmCpWnUXudw4yHslYxYMs6DBe9JlE0wWzQVcPkNydxWbiJOhXyOGud5I0/RHEdsGsb judQArJoKeM8iccFIQYs7wHDVUaHmGLwRu1kx+GS+Lh7cYiDN1u0x6KtZzQ74lXM0q/y l1NTo6stHkQaofCWy4AAl2tQlFVKJ5pmAxABMkZItfF1eWMEojmdaXsHQu7iilrd8EMx NoMubWbGfurnetaGGe7AUlvF3V9mnk1UvthBpAfYNn2bSNu95a+GArw4+aCYHdQqjocB nQyg== 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 :message-id:date:subject:to:from; bh=pAZUgEiPo5z9I0f9oNp8oSlxgmmfUWbNjbV+ebx3YVA=; b=UBuCaXYu664/ksYCKo8qMP7BUpn0+Mj65vQlBEOk5qSXmzGnNqxj2cEvCLZp3HQey7 vdYfFpR6NtaCgww/QKo5KJnAhoJgx0gGD4b9f56NkVyWUiOoOoX8mrYLetK2QeWm4rCl Q+cMHxQdF7R0xQzxOhHzshEPL/V1KkDNYH8bW/cLJiYOlOV6FVSAzJ5XuqrK8b+OemmD ahqaWHnL8mgE/FlTesiS+uZ0EfhURmHBe8+On1692WYdnQi0/zyo8YKrRyrRbas00Doc hsmx2YtKT+BzHLrgvyGUEt3CrcECncVjg8JjfA5LVHek6qAw5KkTk4SmhdGBaFEQKpFz kzvw== 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 g26si2010055edu.55.2020.05.01.11.07.21; Fri, 01 May 2020 11:07:46 -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 S1729264AbgEASHR (ORCPT + 99 others); Fri, 1 May 2020 14:07:17 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:57607 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729138AbgEASHR (ORCPT ); Fri, 1 May 2020 14:07:17 -0400 Received: from localhost.localdomain (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id A7C96CED24 for ; Fri, 1 May 2020 20:16:55 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] doc: Add commands and event for experimental feature configuration Date: Fri, 1 May 2020 20:07:11 +0200 Message-Id: <20200501180711.115409-1-marcel@holtmann.org> X-Mailer: git-send-email 2.26.2 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 --- doc/mgmt-api.txt | 95 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index 42e467fab261..3669604a806c 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -3138,6 +3138,84 @@ Read Security Information Command Invalid Index +Read Experimental Features Information Command +============================================== + + Command Code: 0x0049 + Controller Index: + Command Parameters: + Return Parameters: Feature_Count (2 Octets) + Feature1 { + UUID (16 Octets) + Flags (4 Octets) + } + Feature2 { } + ... + + This command is used to retrieve the supported experimental features + by the host stack. + + The UUID values are not defined here. They can change over time and + are on purpose not stable. Features that mature will be removed at + some point. The mapping of feature UUID to the actual functionality + of a given feature is out of scope here. + + The following bits are defined for the Flags parameter: + + 0 Feature active + 1 Change allowed during powered + 2 Causes change in supported settings + + This command generates a Command Complete event on success or + a Command Status event on failure. + + Possible errors: Invalid Parameters + Invalid Index + + +Set Experimental Feature Command +================================ + + Command Code: 0x004a + Controller Index: + Command Paramters: UUID (16 Octets) + Action (1 Octet) + Return Parameters: Flags (4 Octets) + + This command is used to change the setting of an experimental feature + of the host stack. + + The UUID value must be a supported value returned from the Read + Experimental Features Information command. + + The Action parameter is UUID specific, but in most cases it will be + just a simple on/off toggle with these values: + + 0x00 Disable feature + 0x01 Enable feature + + It depends on the feature if the command can be used when the + controller is powered up. See Flags parameter of Read Experimental + Features Information command for details if the controller has + to be powered down first. + + The following bits are defined for the Flags return parameter: + + 0 Feature active + 1 Allowed during powered + 2 Supported settings changed + + When a feature causes the change of supported settings, then it is + a good idea to re-read the controller information. + + This command generates a Command Complete event on success or + a Command Status event on failure. + + Possible errors: Invalid Parameters + Not Powered + Invalid Index + + Command Complete Event ====================== @@ -4021,3 +4099,20 @@ PHY Configuration Changed Event one through which the change was triggered. Refer Get PHY Configuration command for PHYs parameter. + + +Experimental Feature Changed Event +================================== + + Event Code: 0x0027 + Controller Index: + Event Parameters: UUID (16 Octets) + Flags (4 Octets) + + This event indicates that the status of an experimental feature + has been changed. + + The event will only be sent to management sockets other than the + one through which the change was triggered. + + Refer to Set Experimental Feature command for the Flags parameter. -- 2.26.2