Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1118636ioo; Fri, 27 May 2022 01:44:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDe3/ZPYLlcNs8wPwKXcqFsppls8sBlyg6GMZLJjI/KKP3p1tlt+lDPEQ9SdS/4IeEqy9Q X-Received: by 2002:a05:6402:4408:b0:42b:61c0:14b4 with SMTP id y8-20020a056402440800b0042b61c014b4mr26272391eda.17.1653641085524; Fri, 27 May 2022 01:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653641085; cv=none; d=google.com; s=arc-20160816; b=xBqxv5tcFp5gh2Or77qyFOZG8vYGzeGDAEFarPiiIky/X73FRHODnKLBNpCr8VcpTR tpPgIr9Uo5slWOf5uu4jklTBKk1ijix5yWjhX6KpxvPfWTgjLtxXJ1So4rXl+skLnQlo 09t99PDsCKXT8+I6lVlvZjvzkV67pEczW8mmsx28kkFio9i/7v3iPMnpoRbz8xBe0K81 3gFEODxupjkAlIstV+YkykGOq3Ald5W1woUYwD3Zy+/YraEbSeVMR/LgPtcfPSgH4hZY VwCnZhJS7zWrPz12sfNxcfvyo3PXCcjIpz1gr1URdltuHZRVxYAIRt+LCHYLybbA4IR2 GfBA== 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=RQyL9hl58hb4vBidS+w324Rh2XQfFyfi08875p0ZLPg=; b=zQNgHdbNLMsOXv2h/e9m7OV77iQfvCB+TE3a9aQduIzlduTseWF3gTDO0zMs1EVTpr 2OaWcqQFV7MGHZJ+ZTGAcF0N19gbePV/fAiPPs+bP/KocxIyXWUW9jO9Fw9lAR2m1OdB /N3lx4zTKOFn7lISko4ig/kN4YQ0CZzXJkPUKknj1UxOK1s65CA1OcCwZ/EI0s/QmB8J ItZnTTyPuLC+67+1STOkfvw7TLVQT4BVZ3L9XVX2mK6OHOxr25jH3tCemK1BzAnXD3G6 ztW9FeYPny0v+lnlMxRPAW3eMltzUyAjDQBQmUvbQUdn3MfPZIOTYkPBJOrXoXiu7PGI 81hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WLXPXgIJ; 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 o12-20020a50c90c000000b00423e4228df0si1852900edh.497.2022.05.27.01.44.04; Fri, 27 May 2022 01:44:45 -0700 (PDT) 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=WLXPXgIJ; 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 S1347143AbiEZLZU (ORCPT + 99 others); Thu, 26 May 2022 07:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245265AbiEZLZT (ORCPT ); Thu, 26 May 2022 07:25:19 -0400 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 D9CDB5C75B for ; Thu, 26 May 2022 04:25:18 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id gz24so1494665pjb.2 for ; Thu, 26 May 2022 04:25:18 -0700 (PDT) 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=RQyL9hl58hb4vBidS+w324Rh2XQfFyfi08875p0ZLPg=; b=WLXPXgIJX3xvBTUQuKVSEKPGh2wJxUPPuHbODQkDjjNNdWkUrjX5Au+GqN4FCSJTV5 Og8T10RYl390Ky/z08zRwCui5dmfGQVYb25NclFuo6jWPg0X2uHDI2VzAG0MjnhtPoau B7ULeDobUAg36D0o0zkLBT3+ED0qjXpo+3ZQs= 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=RQyL9hl58hb4vBidS+w324Rh2XQfFyfi08875p0ZLPg=; b=KmfG75iVkgcsj/8daC8tO0++uPL0Ytmt/EX46UmM5+2d9ddNSEvTAQjKW3nHywNmlU DQwSkUikwL5MuAC06eTDhNaTCgUl/n7I8guRiYAAT/WpO7Ht37XF7naJuOFyIh1Tih1K jhNQAo3QXE1qwfO172K4nH2zW8uf059K+XC4en16Nur425srcTVoq2QXa4mgLoPahe0Q UZeebFigKMYrJLGvbYsx4/DnxiZMsDAQwQjS01tJ8VJxuoIDFYbDHtoKzQLjjDdoazt1 C7pzRloq4fZxz8L48Hu77fy+cW48+yr4uziLh3PHHrms6yVQlmENj6X3er/QQyoismXW YWuQ== X-Gm-Message-State: AOAM532k0CyVJhFgVsjyXKvIxeBgTeEB0gGS3KmX+4QMh55ZxNh+Yl8E A4pVKRYdrzMZ5JlQo21VvADVR6QOOIFJPw== X-Received: by 2002:a17:90a:149:b0:1df:3da1:3549 with SMTP id z9-20020a17090a014900b001df3da13549mr2131852pje.90.1653564318050; Thu, 26 May 2022 04:25:18 -0700 (PDT) Received: from localhost (174.71.80.34.bc.googleusercontent.com. [34.80.71.174]) by smtp.gmail.com with UTF8SMTPSA id u9-20020aa78489000000b0050dc76281a4sm1233530pfn.126.2022.05.26.04.25.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 04:25:17 -0700 (PDT) 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 v6 7/8] monitor: print quality report cmd Date: Thu, 26 May 2022 19:24:55 +0800 Message-Id: <20220526112456.2488536-5-josephsih@chromium.org> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog In-Reply-To: <20220526112456.2488536-1-josephsih@chromium.org> References: <20220526112456.2488536-1-josephsih@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 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. --- (no changes since v4) 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 e854c1a8e..851296ee6 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -12552,6 +12552,7 @@ static const struct bitfield_data mgmt_settings_table[] = { { 15, "Static Address" }, { 16, "PHY Configuration" }, { 17, "Wideband Speech" }, + { 18, "Quality Report" }, { } }; @@ -14148,6 +14149,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; @@ -14405,6 +14413,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.36.1.124.g0e6072fb45-goog