Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp120044pxb; Tue, 15 Feb 2022 06:44:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWAxO2SpZnGZD0Vsli9qESU0qbZdYzAEMXU4W1Z8vUp557oytgCsMk2k4Auc4K1m0+6L1T X-Received: by 2002:a17:906:d555:: with SMTP id cr21mr3380519ejc.428.1644936276364; Tue, 15 Feb 2022 06:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644936276; cv=none; d=google.com; s=arc-20160816; b=f52nY3xzkJOlzbFsuWK8mCQoluj7F5GpdNUECURFuTvN/ZN7oscJlqwq/ux8mR4gLX 6TVpKxdaAofZ8Yi8bzcdTT3TVZrFn4FiWnGWczjkpNSIrbsAqM6D1h0pgHnij1RFObju 9zTTZDzZUrmSFhXUh0xH8u3vvz1jHk7mEXISAeI6l8NOxnsubMeDz9ltG9K8Bf651L0h ZhfVRL75QrEVXfwDyVntO0YEkQvKDhrw3waKpyFblnNIpbse9VIJCfPCuIIQdN3KXxfY 6DUDGYr4PlVMS5p7yuQK0CtYKXtq0/4klVMOe37KSqg05mB44DezKPvgLwAWL/x/7HIg 6X8w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=NtYn16i6PJcNVrCsQ+T6vBaD/84nYyIgGCOm5X0Geo8=; b=RN8BNNiLjLip226knW+ovIvoOiChVbyuvel0UyQ/XsykTfOYDBm807ERcyOMIetCes hv/M+woCE0hBmU8vQs5w1EjYNbFc94Sirn7/uIjG1JVdgyXaOqbiQYEYEWFprLE1Nhgr 1zfv41dVd+j34g2WGrg68YbvuHQVHm9Am3R4DuO3UzlAVXm/qtGGQYdrPdqspj45UPuJ aqrV7TWFpQ0V0FKgxpuFJV1fwA/rX+7m8bk3XzpqwSoJptMysZI/h9Bu09GtQDcjbCp8 FymgtK0ldcqsut4X98l3RcRSJYHy0+126OXEqXYK9g0CS3aoNmHZHAjLgly63NXPou/P UK4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IsluOudZ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz18si27448730edb.432.2022.02.15.06.43.48; Tue, 15 Feb 2022 06:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IsluOudZ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbiBONgv (ORCPT + 99 others); Tue, 15 Feb 2022 08:36:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231797AbiBONgv (ORCPT ); Tue, 15 Feb 2022 08:36:51 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAF565179 for ; Tue, 15 Feb 2022 05:36:41 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id n19-20020a17090ade9300b001b9892a7bf9so2822584pjv.5 for ; Tue, 15 Feb 2022 05:36:41 -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:mime-version :content-transfer-encoding; bh=NtYn16i6PJcNVrCsQ+T6vBaD/84nYyIgGCOm5X0Geo8=; b=IsluOudZIENxbcowX78dU+siIAI+y1KS7Pv9LAboZAVdAwdGtHeCMNfnynJ8b96iEG JIrhUxbZbKvXGqDnu8ahrkLO8I4gCBA94//wEpJrV0lsuAv6TDQw9xYFirm7zfdrsQNR TsiXSGLZe7ImOVfYtEXPqdPnExlTRgxQrN4Ks= 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:mime-version :content-transfer-encoding; bh=NtYn16i6PJcNVrCsQ+T6vBaD/84nYyIgGCOm5X0Geo8=; b=wcDEfJr6TzBH4uu/TpDXOyzm5SazZXQ09+jitMXLo0k+PJAGeLc1+JVdS7U08+nnIU vevWpaOMkQHmODK6Df+MCSrquqFTmKsaSCXDwY5ydZ18ptRGOgTGsxqRQmsOz0mkTtpi OwmaP0ujxKzQFHs1gpWwM2TFAuED6+1d/0KvxMDc7WquAfUMuQOR4hQ3PpmeZw1NedhJ WCCBteAMfNR3bTubg0+28B60AoCkgiKWTZTHCTsKvJPNoU6vrzoaA+3EEhFujcGLDTTv ShBQL4/i/SxZxjzd7TsXA1Gs5OuKDsMYIu4JrFI4vqez/k2dlvA/08MffGMUFovZPaY5 jnCQ== X-Gm-Message-State: AOAM532iPusMmUhh5LUcoQ4xySwNQgDoC5k0GfdHMuYIkbIG1nWcuPG0 hZg9Sfo/JO7Gnzm83730XmKZYGKfSA3KFQ== X-Received: by 2002:a17:903:2443:: with SMTP id l3mr4223570pls.146.1644932200442; Tue, 15 Feb 2022 05:36:40 -0800 (PST) Received: from localhost (208.158.221.35.bc.googleusercontent.com. [35.221.158.208]) by smtp.gmail.com with UTF8SMTPSA id s29sm3035010pfg.146.2022.02.15.05.36.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 05:36:39 -0800 (PST) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: josephsih@google.com, chromeos-bluetooth-upstreaming@chromium.org, Joseph Hwang Subject: [BlueZ PATCH v4 1/8] doc: Introduce the quality report command and event Date: Tue, 15 Feb 2022 21:36:29 +0800 Message-Id: <20220215133636.2827039-1-josephsih@chromium.org> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 MGMT quality report command and event in doc/mgmt-api.txt. Signed-off-by: Joseph Hwang --- Changes in v4: - Use "Quality Report Event" without the prefix "Bluetooth" word. - Combine both MGMT quality report command and event changes in a single patch. Changes in v3: - Swap AOSP Bluetooth Quality Report Event and Intel Telemetry Event. - Add 5 new patches (5/9 - 9/9) to enable the quality report feature via MGMT_OP_SET_QUALITY_REPORT instead of through the experimental features. Changes in v2: - This is a new patch for adding the event in doc/mgmt-api.txt doc/mgmt-api.txt | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index ebe56afa4..a494f5d7e 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,46 @@ Add Advertisement Patterns Monitor With RSSI Threshold Command Invalid Parameters +Set Quality Report Command +========================== + + Command Code: 0x0057 + Controller Index: + Command Parameters: Action (1 Octet) + Return Parameters: Current_Settings (4 Octets) + + This command is used to enable and disable the controller's quality + report feature. The allowed values for the Action command parameter + are 0x00 and 0x01. All other values will return Invalid Parameters. + + The value 0x00 disables the Quality Report, and the value 0x01 + enables the Quality Report feature. + + This command is only available for the controllers that support + either AOSP Bluetooth quality report or Intel telemetry event. + For a controller supporting the AOSP specification, it should call + hci_set_aosp_capable() in its driver. The controller should also + return version_supported v0.98 or higher in its Vendor-specific + capabilities responding to the LE_Get_Vendor_Capabilities_Command. + On the other hand, for a controller supporting Intel specification, + it should set up the set_quality_report callback properly. The driver + is responsible of setting up the quality report capability as + described above; otherwise, a Not Supported status will be returned. + + This command requires to use a valid controller index. Otherwise, + an Invalid Index status will be returned. + + The command is sent to the controller to enable/disable the quality + report feature, and generates a Command Complete event on success. + If the controller failed to execute the action, a Failed status will + be returned. + + Possible errors: Failed + Invalid Index + Invalid Parameters + Not Supported + + Command Complete Event ====================== @@ -4978,3 +5020,22 @@ Advertisement Monitor Device Lost Event 2 LE Random This event will be sent to all management sockets. + + +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 AOSP Bluetooth Quality Report Event + 1 Intel Telemetry Event + + This event will be sent to all management sockets. -- 2.35.1.265.g69c8d7142f-goog