Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2295256pxb; Wed, 9 Feb 2022 15:26:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJziqIw6Pghy2cCLXg+FVleQypLH6AwhCiS3SiUvUVqZdHAzcWGrJJ2H/rAXsB0QeKH1crM5 X-Received: by 2002:a63:1266:: with SMTP id 38mr3809274pgs.261.1644449161610; Wed, 09 Feb 2022 15:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644449161; cv=none; d=google.com; s=arc-20160816; b=D03kPUuMA7IaYW5pE3nv2WXu3LNhHc5KKZ73l5Fl3k2fVXNqnnGBPXXM8wzYkMe1Le pDJOKK1W+zvlxQzWkMdiyag3LM8oqzUcuOVk3800IuTONBr1qPnVeYWWBm7ps1xHQlo7 b57V5sS84o7RS1dnEXqsl+qur2hL3FonwjTjzlqSh44SV1EXzNXpU30RqA85FdWdNkuC nwpigRj5g9haH+nJrRE+OrZiVYIQMfM0axzNdG7hlctkNrnujOVraO98Tbx/4PTQGa0P hYaT5avVaCN0N4Ic2hGtvqY2/4rA+kXuhtU7Bdpya3/qtM2llemEBwhmKo1P0f3Dy+l0 g6hg== 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=k3q1Mny06h9T1r+ftsB2atzcWok/NrxowRx4GN+umeY=; b=hZrGnY+abxaIMUNheMIZVGF5ZdFo/981W0wA99XCIYGctkhESAEEE647eidDUuPlcr oAAY83ZJ6W+2K1I5OqHCzkUgtEFYT4vFI1pxGdaYph/XymwknMhGPwgylkiMc+fE8yOn 5H5IslNoD5/ay0S5MM/F57PodnBdWnxal9Jbabhlqm97rEcwKTcjHjsJZSXjyKhx4TIV FBdf+heYEsATszgRzAQI6r0qOXQ2vCaxug1SklEb6C/1O9ewfzOcqRxRZi5WaFs8lrQI 9kmtg2DJUUh5baopAZWHK+j+8uYHB8y/DhS6ylxwfwVRaD8NEMmtJ0UrHN/sYuytsS4/ 9EqA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g5si290904plo.326.2022.02.09.15.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:26:01 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0BEC3E056C12; Wed, 9 Feb 2022 15:20:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232715AbiBIVCl convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Feb 2022 16:02:41 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:52572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbiBIVCe (ORCPT ); Wed, 9 Feb 2022 16:02:34 -0500 Received: from mail.holtmann.org (coyote.holtmann.net [212.227.132.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 77997C08C5F5 for ; Wed, 9 Feb 2022 13:02:34 -0800 (PST) Received: from smtpclient.apple (p4fefcd07.dip0.t-ipconnect.de [79.239.205.7]) by mail.holtmann.org (Postfix) with ESMTPSA id 605A9CED2D; Wed, 9 Feb 2022 22:02:33 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: [BlueZ PATCH v3 2/9] lib: Add structures and constants for quality report event From: Marcel Holtmann In-Reply-To: <20220209092414.751642-2-josephsih@chromium.org> Date: Wed, 9 Feb 2022 22:02:32 +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: <91511B47-1A3B-41FD-9C02-D47666B4C091@holtmann.org> References: <20220209092414.751642-1-josephsih@chromium.org> <20220209092414.751642-2-josephsih@chromium.org> To: Joseph Hwang X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Joseph, > Add the new struct and constants to lib/mgmt.h. > > Signed-off-by: Joseph Hwang > --- > > Changes in v3: > - Swap AOSP Bluetooth Quality Report Event and Intel Telemetry Event. > > Changes in v2: > - This is a new patch for adding the new struct and constants. > > lib/mgmt.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/lib/mgmt.h b/lib/mgmt.h > index 922a24367..db9a24cd6 100644 > --- a/lib/mgmt.h > +++ b/lib/mgmt.h > @@ -1032,6 +1032,15 @@ struct mgmt_ev_adv_monitor_device_lost { > struct mgmt_addr_info addr; > } __packed; > > +#define MGMT_EV_QUALITY_REPORT 0x0031 > +#define QUALITY_SPEC_AOSP_BQR 0x0 Just AOSP. > +#define QUALITY_SPEC_INTEL_TELEMETRY 0x1 Just INTEL. > +struct mgmt_ev_quality_report { > + uint8_t quality_spec; > + uint32_t data_len; > + uint8_t data[]; > +} __packed; > + > static const char *mgmt_op[] = { > "<0x0000>", > "Read Version", > @@ -1172,6 +1181,7 @@ static const char *mgmt_ev[] = { > "Controller Resume", > "Advertisement Monitor Device Found", /* 0x002f */ > "Advertisement Monitor Device Lost", > + "Bluetooth Quality Report", /* 0x0031 */ > }; > > static const char *mgmt_status[] = { as with the mgmt-api.txt changes, just “Quality Report” and combine command and event changes. Regards Marcel