Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2728465pxb; Mon, 31 Jan 2022 03:03:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzvNrxeyD+k94PF86vZ5XC1Iq/PMqR3BsHnUjQOoT5WTM+wMiWM0MOL5GuVDpgeTwNwZTt X-Received: by 2002:a17:902:f687:: with SMTP id l7mr20004167plg.167.1643627039611; Mon, 31 Jan 2022 03:03:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627039; cv=none; d=google.com; s=arc-20160816; b=QjSf0figscJIL6QDuNxghouS+jXUt7dU2Rk2hUSLp5bvRjrhk+xuqKga/u+/cafjCB yL7DyfNThG8J2GCjWm+05ff+M5PUmWwXL8UbJzhLTvVPlX6CwXTqh7mN0dpUXbaX6gLO qjctAvBxY8016txQu0IH1yQyvMatcvEI/vqKrXWfXAJa+X2t2VNHTIFKAyw9Iu/IqDdo mPGTiM7uegKxXYmP4Y+MRdkFksa8vr3fk7qPvLBlFCbJXewVsmVvnmEpbhpiA1/ffX+P RiV6HvATFDbr4spKWSM9/s9FGkmf/068cqw+Tgm7uHmrex61UsRRRe6y0jMl7lAWsrF7 5JiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=CZSK2GkKPf5Y1s88pqO8CfmhcZjTR2WPY8WkUZA+5+0=; b=Q37FvufaGz2ZVSW9drTSVL5UgaLG+FlWtfBoEEbkQYsk+OFMLyH645U4zvsdBYDVVC csuH0DTVlscUszCVdJqHrWl9/oFP+/jqQFMMUzmwQYWcWLoavY8aocUbLpzsNZzT784o XI1WqORBd1jg2fnXPuQ5GEUrPCHd/zg9qb0QZC5yM2xQGKHXaT9EPmTy1DOCHgeby56p DikOm+kXUzUsPU2AxWSjgacyWuaYV/+kAVVOcQod9KfEKEYEp8vyhHKFaGZttFjbzdPh KOhjdsJDlabKzaWoC4DiNjo+TQOPEi1d/9NXNTIaBPi02gfqI8NDI/Ps8+l+EutG+nzs Ba9w== 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 u187si13987922pfc.16.2022.01.31.03.03.33; Mon, 31 Jan 2022 03:03:59 -0800 (PST) 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 S239322AbiA1N2w convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Jan 2022 08:28:52 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:51966 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiA1N2w (ORCPT ); Fri, 28 Jan 2022 08:28:52 -0500 Received: from smtpclient.apple (p4ff9fc34.dip0.t-ipconnect.de [79.249.252.52]) by mail.holtmann.org (Postfix) with ESMTPSA id 2CC2DCED37; Fri, 28 Jan 2022 14:28:51 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: [BlueZ PATCH v2 1/4] doc: Add Bluetooth quality report event From: Marcel Holtmann In-Reply-To: <20220127101609.3646316-1-josephsih@chromium.org> Date: Fri, 28 Jan 2022 14:28:50 +0100 Cc: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz , pali@kernel.org, chromeos-bluetooth-upstreaming@chromium.org, josephsih@google.com Content-Transfer-Encoding: 8BIT Message-Id: <6A836EC1-7D2C-4638-8069-C3DF2A2A764C@holtmann.org> References: <20220127101609.3646316-1-josephsih@chromium.org> To: Joseph Hwang X-Mailer: Apple Mail (2.3693.40.0.1.81) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Jospeh, > Add the Bluetooth quality report event in doc/mgmt-api.txt. > > Signed-off-by: Joseph Hwang > --- > > Changes in v2: > - This is a new patch for adding the event in doc/mgmt-api.txt > > doc/mgmt-api.txt | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index ebe56afa4..a0e71a732 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -4978,3 +4978,23 @@ Advertisement Monitor Device Lost Event > 2 LE Random > > This event will be sent to all management sockets. > + > + > +Bluetooth Quality Report Event > +============================== > + > + Event code: 0x0031 > + Controller Index: > + Event Parameters: Quality_Spec (1 Octet) > + Report_Len (2 Octets) > + Report (0-65535 Octets) > + > + This event carries the Bluetooth quality report sent by the > + controller. > + > + Possible values for the Quality_Spec parameter: > + 0 Not Available > + 1 Intel Telemetry Event > + 2 AOSP Bluetooth Quality Report Event > + > + This event will be sent to all management sockets. > -- and since you are now adding a mgmt event, we can no longer use debug setting to enable this feature. diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index ebe56afa4494..ff7d81af2f90 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -332,6 +332,7 @@ Read Controller Information Command 15 Static Address 16 PHY Configuration 17 Wideband Speech + 18 Quality Report This command generates a Command Complete event on success or a Command Status event on failure. @@ -2924,6 +2925,7 @@ Read Extended Controller Information Command 15 Static Address 16 PHY Configuration 17 Wideband Speech + 18 Quality Report The EIR_Data field contains information about class of device, local name and other values. Not all of them might be present. For @@ -3858,6 +3860,15 @@ Add Advertisement Patterns Monitor With RSSI Threshold Command Invalid Parameters +Set Quality Report Command +========================== + + Command Code: 0x0057 + Controller Index: + Command Parameters: Quality_Report (1 Octet) + Return Parameters: Current_Settings (4 Octets) + + Command Complete Event ====================== Please add a Set Quality Report command for this as well. You need to fill in the description, but you get the idea. Regards Marcel