Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2298199pxb; Wed, 9 Feb 2022 15:30:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh5fx4dmcHusCapd2750qkK1hc8jguN1B2n0xcJZx60vo8k1gWAplY3+cDO7tHxs7OxapB X-Received: by 2002:a17:902:f610:: with SMTP id n16mr4798561plg.35.1644449455321; Wed, 09 Feb 2022 15:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644449455; cv=none; d=google.com; s=arc-20160816; b=MgQ95Ok0leQ8rLNGUPwnbyfFAE2RT96cE36gwNJH21gJiYYIizH9Qja3gZBeh/ZCsY gmqJJlabyOc3aTQzKQBRD3hj+pYkSHXyffWi+QDNaiahkg8P0qStQATAfeP8X83ODjSF fEGQifQu/vAoty2FxylhnfpiO074i+78/TFMcu33c57Ye3JDzCEgQS0JZUK+FYFNkPkt eV5WFMeqgP+w7y2DpvVK1tLE+iGRYy6PuzvRg5Pbvqse/xE39t85GMmVezK0j2qvPISW lnBW49j13NEecvw0mdlbtYOj4UDbN4Al2Q0gdov3lZMHZ7m/tvbMEgbxSIKLmkz/I9Jo CoyQ== 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=vtA0ZOgHYQSdmUM1ccRyi/P+RfV2VS+rKHiSIc6R0TY=; b=ZYcSVQSiiiAio8eB2qiYwDZ2eAGo6L/WGQZqxCDXiTXvZ+4dlHzvAYSi3SY8PYYg2D c5eo1mKb6f4SWG2wlLx7rQzB3yHbtY67/3Z3UL7SVrO9rTWr8pG8JoIOxCMnaHHuqO+1 EFHwnRA336oDYSxe8kYW4GbydSb6gSSLke0csDwTOK6GFN08D9feS4I/Ugwih9kmxXKC Vd03yptKbLiXmGKlbUDH9fWrBicSAgmcFqiOLs1005xnb81L+CNawD+TYTymT7hj547k +WHUSx4gBs9ecwQV3aaoxoDYZv32STiRQXXSuJ4TpQo0Xa6yza/VPRGzsxMWF7eNRB8M 7qcQ== 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 u11si319141plm.292.2022.02.09.15.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:30:55 -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 12507E074896; Wed, 9 Feb 2022 15:21:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232867AbiBIVJI convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Feb 2022 16:09:08 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbiBIVJI (ORCPT ); Wed, 9 Feb 2022 16:09:08 -0500 Received: from mail.holtmann.org (coyote.holtmann.net [212.227.132.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EDA05C050CF8 for ; Wed, 9 Feb 2022 13:09:09 -0800 (PST) Received: from smtpclient.apple (p4fefcd07.dip0.t-ipconnect.de [79.239.205.7]) by mail.holtmann.org (Postfix) with ESMTPSA id 7E3F7CED2D; Wed, 9 Feb 2022 22:09:08 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: [BlueZ PATCH v3 9/9] monitor: print quality report cmd From: Marcel Holtmann In-Reply-To: <20220209092414.751642-7-josephsih@chromium.org> Date: Wed, 9 Feb 2022 22:09:07 +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: <289435E7-4B3D-415C-B13A-AF31D1BF87E8@holtmann.org> References: <20220209092414.751642-1-josephsih@chromium.org> <20220209092414.751642-7-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, > This patch prints the set quality command properly. > > Signed-off-by: Joseph Hwang > --- > > 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 397000644..4dce2f681 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 = *(uint8_t *)data; please use 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_null_rsp, 0, true }, > { } > }; We also have a few mgmt commands that miss decodes. If you have bandwidth, feel free to add these as well. And we should have them also added to btmon --todo. Regards Marcel