Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp237292pxb; Tue, 15 Feb 2022 12:09:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGXebx8BOm9yCJYZl3R0r+NhME++dirTopaa4Cc0IiAXnal7dDSWkI8INU7paUlvzCJO+I X-Received: by 2002:a05:6402:2366:: with SMTP id a6mr628929eda.1.1644955789318; Tue, 15 Feb 2022 12:09:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644955789; cv=none; d=google.com; s=arc-20160816; b=E652pB006Pz/Swd+PA61fHQJPTgvXPhIMl3Ka+pgNnVTO14/952l0XD+/xLQCVaqeA nbFLBHKz3JdGzbNXaiORFNnyvN0hgWhX6AeZ2UDfT7ltpV+97wMFT2BEXXcR9/l66QPO OZT2d3DRnU+hEuXWhL4jHKooI6rd877zn4H1rBcB6Gs4Irl2y+MwzwXmSfmkTCfrdej7 2hfPgELngNZF4Yk98RZqY+5Swh7rMg54NK0DZSM2nzcjVEUHI/SD+MuQDi4hNZ48eLeD dwt6FXhR5iJfF1Ma35heuImxmGIlPVSeqrmYZFYT5MRD+kgG4tpcizlge3I8OBsoJ3tc 4lWA== 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=Iah9qiR9JL2Z6N4lIow2hFh0pGExklk07rIIDc0sSuc=; b=tPilWDmS+bE9HZtU4+tx0hj5IXE62Ayaz1lgxLaaTAsX8OnCpyRzhpa3ZcNljDKuZN kUZz5cXkSh8YDdFbXl0LCul1pqSE5DUnayF+yj/Azy87YHuKaiOJn9i6xecCr9omQ33A qPyTaymOZnaCfsLnirtp3NHLrIeai8/ecnDqOLneVDIn3U9JBsaaHEGoV2CK6g5VFLhp 6bxvlApyRLx2dViug6ZKoYl6xHcuGOVW68vavxzM9CB9XG1k53rfKPGQXZyY7xz/QtNf tC77N4LLRM1QSr7Vtz3O0w19NPMhPB+yq0dc24s88TI7LU8oMbIkoFKK8NGBBX/pilzz KVaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dlatdPrw; 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 27si19485835eja.214.2022.02.15.12.08.59; Tue, 15 Feb 2022 12:09:49 -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=dlatdPrw; 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 S238319AbiBONhJ (ORCPT + 99 others); Tue, 15 Feb 2022 08:37:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238283AbiBONhI (ORCPT ); Tue, 15 Feb 2022 08:37:08 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43EA06E8DE for ; Tue, 15 Feb 2022 05:36:59 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id qe15so17406887pjb.3 for ; Tue, 15 Feb 2022 05:36:59 -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=Iah9qiR9JL2Z6N4lIow2hFh0pGExklk07rIIDc0sSuc=; b=dlatdPrwHL36yknZMfXwV1wj3YvmwXeGHNqE0vcpyTuvUCN5JLiUcoETKTpXjBYNKp hzpY3kz1nUEPYPpudL/yDke+wDRXX/tZxrRRkRbS0rQegh/fYooQ8KNWJh3b/cgt+/5w 98kVIFpRg6YsfrFkSbrQkLpzLfqXMJ3jC1FVU= 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=Iah9qiR9JL2Z6N4lIow2hFh0pGExklk07rIIDc0sSuc=; b=EToDxwOVOy1rHl8G3cqIrG86stBC3Og4uh9gAOv5DikIeywB6Bvdd0MAKJ50hjVoEd j/DKZE2qprUlluu31sWAcUYK4MBPktbdtVgfHDgxtDvehIXBQGg9vZUMAwTdZ0W6Vbtp xj8avredWY+6npwjwlOT0ZOdK5x7HAWF8iT9lzlwnJNhlb4lN7+Ua4R1KysgfUZxLXWh ro7N6doFRwO4jJOsLTigMiNRoX1//4s95eo14ttPdDMejCTs4u8r2VEzvXBg1l914obr /ZdRY9Hf7gw4/CruZuEaRPmk+kE3rlh8ve695mBOUcU+HFLHKBrgNtqpn+tNAXcOAxum P/Kg== X-Gm-Message-State: AOAM530KVTcJ8GL18rspVurG3/7PKGW70n89deF13+LXwBN8NiUXDqbv xPiOz4BjwaldqTQcUZvJLZtOiXPVMuwWSA== X-Received: by 2002:a17:902:e888:: with SMTP id w8mr4353658plg.109.1644932218600; Tue, 15 Feb 2022 05:36:58 -0800 (PST) Received: from localhost (208.158.221.35.bc.googleusercontent.com. [35.221.158.208]) by smtp.gmail.com with UTF8SMTPSA id 84sm11267279pfx.181.2022.02.15.05.36.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 05:36:58 -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 7/8] monitor: print quality report cmd Date: Tue, 15 Feb 2022 21:36:35 +0800 Message-Id: <20220215133636.2827039-5-josephsih@chromium.org> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog In-Reply-To: <20220215133636.2827039-1-josephsih@chromium.org> References: <20220215133636.2827039-1-josephsih@chromium.org> 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 This patch prints the set quality command properly. Signed-off-by: Joseph Hwang --- Changes in v4: - Use get_u8() to replace *(uint8_t *). - Use mgmt_new_settings_rsp as the rsp_func in mgmt_command_table for Set Quality Report. Changes in v3: - This is a new patch that prints the set quality command. monitor/packet.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/monitor/packet.c b/monitor/packet.c index ec779a9d5..5f2085b4e 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -12011,6 +12011,7 @@ static const struct bitfield_data mgmt_settings_table[] = { { 15, "Static Address" }, { 16, "PHY Configuration" }, { 17, "Wideband Speech" }, + { 18, "Quality Report" }, { } }; @@ -13607,6 +13608,13 @@ static void mgmt_remove_adv_monitor_patterns_rsp(const void *data, print_field("Handle: %d", handle); } +static void mgmt_set_quality_report_cmd(const void *data, uint16_t size) +{ + uint8_t action = get_u8(data); + + print_field("Set Quality Report %u", action); +} + struct mgmt_data { uint16_t opcode; const char *str; @@ -13864,6 +13872,9 @@ static const struct mgmt_data mgmt_command_table[] = { mgmt_add_adv_monitor_patterns_rssi_cmd, 8, false, mgmt_add_adv_monitor_patterns_rsp, 2, true}, + { 0x0057, "Set Quality Report", + mgmt_set_quality_report_cmd, 1, true, + mgmt_new_settings_rsp, 4, true }, { } }; -- 2.35.1.265.g69c8d7142f-goog