Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3561509ybb; Mon, 6 Apr 2020 11:04:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLxuZI7qJl0rxzV9LMIVbPrdvw0st2mE691S8JqoNqAg5MHRdDdXzGnwiFdSfOdd4yKeoY+ X-Received: by 2002:a05:6830:1541:: with SMTP id l1mr18592655otp.297.1586196257583; Mon, 06 Apr 2020 11:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586196257; cv=none; d=google.com; s=arc-20160816; b=XLnebalkzy8OULj8wHK4ANc/VfigilCrFLvLJ7O3mWRuzCA2YXldxij/JGK6rs9F3h mAX3gDECnBrfYIcNrDyliw9Txoyjv3KevZS1vBOhrQPbceog/E+NMZMFbLMrVC8k4t2R eht9U8wnlJdN+I8+hEgIzuLCr6dSFwcB4jlvrH+byDIeNxc6460sTRqLwb67JaoSjZcU UiRF35PsowDRrv+APhfTPrMgMHTJAgA5YWFFtV2Dl6ufONa0XyRVGWlzZpZp6gRYFaE3 5n8IBfDJ6zsZdon5cdxf3Uh6nt+Zqs2A0eps16nzJ5eEcV8UK5fuPBsL3yzLBb1Qjaqj VToA== 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=r3XjUqTPh4ncj3IPOIhGzsEbqAcq7FI+OCPyTrvtwsU=; b=WRT1eiqJn4aBM4SzvIcSX7Muu6mi+z6smWU+SU8fYoPh9Rdi7vdPcwKccEHbrB6Uf4 fRPsZNBt+maTbM5KBXj+toa3A1j8GOtH6XiIyiVYMmd0zqTrMkIwKjER96cLq/x914Fl UwopTCNgnIG8cnAireZiM/u0/BuyVHWlZL0bYzBCn3L93FmAboQkevCDX3m3WE1R1Xut nb+udVy081Naj1mVAF4si9l1JOLnbtFZclxu0IGFet5gnntDpqd/j5wiJaL9DpILM+Yi kkFsSUT03u9TDx+fUp953OdjQo0Nlm12n4J3cBH1vzeBeTFcVkUI3AcfecjCsBhI143d lrZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si135956oto.105.2020.04.06.11.03.44; Mon, 06 Apr 2020 11:04:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbgDFSDh (ORCPT + 99 others); Mon, 6 Apr 2020 14:03:37 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:51690 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgDFSDh (ORCPT ); Mon, 6 Apr 2020 14:03:37 -0400 Received: from localhost.localdomain (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 3E8D0CECC9 for ; Mon, 6 Apr 2020 20:13:10 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] doc: Add commands and event for handling device flags Date: Mon, 6 Apr 2020 20:03:31 +0200 Message-Id: <20200406180331.891822-1-marcel@holtmann.org> X-Mailer: git-send-email 2.25.1 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 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index 39f23c456080..ac5b6c97d64a 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -3138,6 +3138,74 @@ Read Security Information Command Invalid Index +Get Device Flags Command +======================== + + Command Code: 0x0049 + Controller Index: + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Return Parameters: Address (6 Octets) + Address_Type (1 Octet) + Supported_Flags (4 Octets) + Current_Flags (4 Octets) + + This command is used to retrieve additional flags and settings + for devices that are added via Add Device command. + + Possible values for the Address_Type parameter: + 0 BR/EDR + 1 LE Public + 2 LE Random + + The Flags parameters are a bitmask with currently the following + available bits: + + 0 Remote Wakeup enabled + + This command generates a Command Complete event on success + or a Command Status event on failure. + + Possible errors: Invalid Parameters + Invalid Index + + +Set Device Flags Command +======================== + + Command Code: 0x004a + Controller Index: + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Current_Flags (4 Octets) + Return Parameters: Address (6 Octets) + Address_Type (1 Octet) + + This command is used to configure additional flags and settings + for devices that are added via Add Device command. + + Possible values for the Address_Type parameter: + 0 BR/EDR + 1 LE Public + 2 LE Random + + The list of supported Flags can be retrieved via the Get Device + Flags or Device Flags Changed command. Selecting unsupported flags + will result in an Invalid Parameter error; + + Refer to the Get Device Flags command for a detailed description + of the Flags parameters. + + This command can be used when the controller is not powered and + all settings will be programmed once powered. + + This command generates a Command Complete event on success + or a Command Status event on failure. + + Possible errors: Invalid Parameters + Invalid Index + + Command Complete Event ====================== @@ -4004,6 +4072,7 @@ Extended Controller Information Changed Event The event will only be sent to management sockets other than the one through which the change was triggered. + PHY Configuration Changed Event =============================== @@ -4020,3 +4089,30 @@ PHY Configuration Changed Event one through which the change was triggered. Refer Get PHY Configuration command for PHYs parameter. + + +Device Flags Changed Event +========================== + + Event Code: 0x0027 + Controller Index: + Event Parameters: Address (6 Octets) + Address_Type (1 Octet) + Supported_Flags (4 Octets) + Current_Flags (4 Octets) + + This event indicates that the device flags have been changed via + the Set Device Flags command or that a new device has been added + via the Add Device command. In the latter case it is send right + after the Device Added event. + + Possible values for the Address_Type parameter: + 0 BR/EDR + 1 LE Public + 2 LE Random + + The event will only be sent to management sockets other than the + one through which the command was sent. + + In case this event is triggered by Add Device then it is sent to + all management sockets. -- 2.25.1