Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1809679pxb; Wed, 9 Feb 2022 05:06:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9WgsFxhYBjAY2USXgYFCd+uApAqagethyGMgZqPurZb/cT7Hfy6PRsgFgChDvhjpIK8pC X-Received: by 2002:a05:6a00:1411:: with SMTP id l17mr2202491pfu.55.1644412003511; Wed, 09 Feb 2022 05:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644412003; cv=none; d=google.com; s=arc-20160816; b=OFGeazmSchzhz5kUmdwrTdp9Mb6h4oCr/PFkd6r9mE9Dv59ZkiE0OOB+PPnnO1QibN +JjWPZu9ydVmlUcQwQdcHL/9mSVEYBIFvMakQdVZS8vmJCg4oGsUpINH5mXkgZgWjbMe 1iBjuVHyhX84vHaRpm+88xDBs/+MQRFLvBlbPyOdrduOQywU39glwD0rWiiifcOw9bC3 bC0aVa+SiZYo/eLFBe3FQvSkssfoc3W3tSbYxXyajsfKDxoth3TDlvPhRInDa63VXdR0 dVmFQ/tsLG5P2uKL/kSJvoScQoBlR7D4//oJxMlr4U11NtRrdKBdGSlBZfFmIHFSPIVH A+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qW1SUmdDnvNIzHcgBGusXb1sIBN2gf/ZGCzEYdsEAfc=; b=mrdUYRBvywzt3n5HdmWPf1YbY19NR9gMI71/8C2cQff23vcF9wU/NLgBzHypg1j1Lx 5uYUDv4diJGTkPD4fokHaFr8fklunqh/mwXiLopyEj5Pg6rSeGiuk5ELsEemfPaN9o+v dTVM5RYoheZbxeWJz9qKy8lja//ey+LKztQ/ArpilnxxNSL+j9Z9YlFgajLwjA/qqTAl N8inZvCNRaWO114Hy3VrAK3CLCSzH9aIvkD5g1oJFw+w+5XhxL7JJAd+FiS1VHWTjUz6 4XSbQEkRNw5WhSeKAAfoUXhg0TxFMILtvPjb2InrgntFWpczX7FGbImJqHMKWIG2HU7C 8zwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MWmD2Afh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g10si14223972plt.228.2022.02.09.05.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:06:43 -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; dkim=pass header.i=@chromium.org header.s=google header.b=MWmD2Afh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47501E0A6C2B; Wed, 9 Feb 2022 02:35:01 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiBIJZb (ORCPT + 99 others); Wed, 9 Feb 2022 04:25:31 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:45796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiBIJZb (ORCPT ); Wed, 9 Feb 2022 04:25:31 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D118C094CAA for ; Wed, 9 Feb 2022 01:25:26 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id d187so3191205pfa.10 for ; Wed, 09 Feb 2022 01:25:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qW1SUmdDnvNIzHcgBGusXb1sIBN2gf/ZGCzEYdsEAfc=; b=MWmD2AfhTv3A9VTNplgDSqlug7tyqFypWaK7cntCV/fcPL2fxT8GTklLl6I64rgn/5 hlzZPrj7u53g4PJAQ3QSMj5KASh5El1nam1uMlF9UkBjh/SAI4RZNTLRw1rp9I/I/cOY yZXZDR0Jyx+jHDkpKoRqWZDFy2jGbNpLimRqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qW1SUmdDnvNIzHcgBGusXb1sIBN2gf/ZGCzEYdsEAfc=; b=RnhGKxuMSaSyuVQeo0+UOo23wAoPUJX9DzxsY9xRtg8BHrkCQirRLhhDIIrH2HmC4M cX3gZLHwar50Y/Mofv0zl/4EH9kBdNB3xPU3tWqq8x/XWfwlGr8Yttu8mQXMhpkPSHhK 3z0RYpoNi0sO8iRSTy5/hm0mhEIkwgp+Xqsh2/u0Sdc7iFO4U4uK9hRnJpjLycti3SAC ZhUmbiTeIgt6mDU7fOHRGQEQaoOMZLVfNvqzjDIpLBejFoxuW/4g4JS9vH5Sp6TbgGr3 M/pLSVBFewpzyYLEcadbBIaRR2wgWUn4uEuOEzkouxwXeQkaJyo1xNKjl2HpVHKHD+vt 7LBQ== X-Gm-Message-State: AOAM5302ecPbs4FMgJKTpwf+Z7Y6epaxrFS/m+v3OogV9gpSf6T5uGMq PkfPPEk4z8D5kKv5ecKF0yA1zTYJynLgZg== X-Received: by 2002:a63:8ac2:: with SMTP id y185mr1181395pgd.608.1644398664316; Wed, 09 Feb 2022 01:24:24 -0800 (PST) Received: from localhost (174.71.80.34.bc.googleusercontent.com. [34.80.71.174]) by smtp.gmail.com with UTF8SMTPSA id 16sm5437731pje.34.2022.02.09.01.24.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 01:24:23 -0800 (PST) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, josephsih@google.com, Joseph Hwang Subject: [BlueZ PATCH v3 2/9] lib: Add structures and constants for quality report event Date: Wed, 9 Feb 2022 17:24:07 +0800 Message-Id: <20220209092414.751642-2-josephsih@chromium.org> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220209092414.751642-1-josephsih@chromium.org> References: <20220209092414.751642-1-josephsih@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 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 +#define QUALITY_SPEC_INTEL_TELEMETRY 0x1 +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[] = { -- 2.35.0.263.gb82422642f-goog