Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3EA6C6FD19 for ; Thu, 16 Mar 2023 09:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230489AbjCPJzZ (ORCPT ); Thu, 16 Mar 2023 05:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbjCPJzU (ORCPT ); Thu, 16 Mar 2023 05:55:20 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 222428A79 for ; Thu, 16 Mar 2023 02:54:53 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id q11-20020a056830440b00b00693c1a62101so654649otv.0 for ; Thu, 16 Mar 2023 02:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678960489; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VyPonuJpZPidvHoqyiiruN24ythJvcvhCRR+oFRBUQo=; b=WyWOmRYmWcARaQCKIPx+a6QDZPLHID9oiKEAMY+tiT94N8XaE2hCNwpz6cthuoqsIC ZAktAfvp1rs4auNQ3CUVx1jJm4azn+SV6VKXrpqxM0kO/Xm/msc058zKrLNtBeuB8Sme fkhw0vzc3NE3W/dene1RTv5OEQgLg0EV9JiPBCNC2pNg9Klwf2bDAdeCWeSraWx8dJ23 cSjTxL7kDc4N80/SrzIuSVD48LcyzpRDkGvOUNCm2/Uul7QVm3K+G4LkVBn7K7uo23ay f6Rrf/77JRtZ/vH2zoQRyr4Fm9wYGEqByxWv8Ux+L80WogoaxMQ2cuwGSLsWw0lIZoYF BF9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678960489; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VyPonuJpZPidvHoqyiiruN24ythJvcvhCRR+oFRBUQo=; b=AE+cwXi6aAf4hSZ5Vdkj3GkjTgiH8U8cJb+9j58aBxTlz5EI1hYu5EuW9AD2rFQi3M 6K8QAUM/DhjowNfAUayfJWlnS08x++Nuc/uDf/egR5KPflfn5HCev7FI2Ss4w4MnZaTP LYAkM5er9Zfzcr/LqTWcsbSl3kXBaDyscttt107nb18TFW7/q0pKMYRZCT7fo16nT4+p qgKfs9FtKX9sOnwz+FuocoZ+5gVKEdJSabHpXnDaUa6PkXbElGJQJxYPiRPeKCZ/sDKM FP/wQ4v1jbIHpme9JzLoHiYvnjWI1+ei+zV0Gd7D9NBQY8OJJPzj7AY1r15oNvtu31WR 7Ktw== X-Gm-Message-State: AO0yUKWeNDfjASNygKsyX7fbrcpbYNzw/3KNjqCF+3aaE+IHPRsCO5h+ Z9qtR+1HaVCN22n3wPj4bQ1Ip0kVJWqDQAGJx2vi4Q== X-Google-Smtp-Source: AK7set8ESZuKFscSM5ferhiXnh130+wa+CzR5SXyFtwgeeEzFZ+4AkmMqxD1bMJYgiKOMVTt9xBpvcWhDnsBF8JYhpU= X-Received: by 2002:a9d:12e9:0:b0:698:f988:7c37 with SMTP id g96-20020a9d12e9000000b00698f9887c37mr2280261otg.3.1678960488957; Thu, 16 Mar 2023 02:54:48 -0700 (PDT) MIME-Version: 1.0 References: <20230316151018.v1.1.I9113bb4f444afc2c5cb19d1e96569e01ddbd8939@changeid> <116b1db5-bf75-9fbf-c37b-2fe1028ddaeb@molgen.mpg.de> In-Reply-To: <116b1db5-bf75-9fbf-c37b-2fe1028ddaeb@molgen.mpg.de> From: Yun-hao Chung Date: Thu, 16 Mar 2023 17:54:37 +0800 Message-ID: Subject: Re: [PATCH v1] Bluetooth: mgmt: Fix MGMT add advmon with RSSI command To: Paul Menzel Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, chromeos-bluetooth-upstreaming@chromium.org, Archie Pusaka , Brian Gix , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the reply! A new patch has been sent. Please take a look when available. Thanks, Howard On Thu, Mar 16, 2023 at 5:47=E2=80=AFPM Paul Menzel = wrote: > > Dear Howard, > > > Thank you for your patch. > > Am 16.03.23 um 08:10 schrieb Howard Chung: > > From: howardchung > > Please configure your full name: > > git config --global user.name "Howard Chung" > git commit -s --amend --author=3D"Howard Chung " > > > The MGMT command: MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI uses variable > > length argumenent. This patch adds right the field. > > argument > > Were you seeing actual problems? If so, please describe the test setup. > > > Reviewed-by: Archie Pusaka > > Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh") > > Signed-off-by: howardchung > > --- > > > > net/bluetooth/mgmt.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c > > index 39589f864ea7..249dc6777fb4 100644 > > --- a/net/bluetooth/mgmt.c > > +++ b/net/bluetooth/mgmt.c > > @@ -9357,7 +9357,8 @@ static const struct hci_mgmt_handler mgmt_handler= s[] =3D { > > { add_ext_adv_data, MGMT_ADD_EXT_ADV_DATA_SIZE, > > HCI_MGMT_VAR_LEN }, > > { add_adv_patterns_monitor_rssi, > > - MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZ= E }, > > + MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZ= E, > > + HCI_MGMT_VAR_LEN }, > > { set_mesh, MGMT_SET_MESH_RECEIVER_SIZE, > > HCI_MGMT_VAR_LEN }, > > { mesh_features, MGMT_MESH_READ_FEATURES_SIZE }, > > Acked-by: Paul Menzel > > > Kind regards, > > Paul