Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp932624iog; Mon, 13 Jun 2022 16:36:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5rufJggjJGg6vA9BCGFAP+MkIEg83wG+YbNifsYOPalsyOw+MadzEZxLTjMalS/towD8Y X-Received: by 2002:a17:902:8f87:b0:166:3cf5:335f with SMTP id z7-20020a1709028f8700b001663cf5335fmr1394584plo.119.1655163411626; Mon, 13 Jun 2022 16:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655163411; cv=none; d=google.com; s=arc-20160816; b=hyvycJKx9uXYZQ2paYYwvPzrZBRnreaRyvDS+M7QBQtrE+Lk/o5WGpBFqTBjCirCsx T37M3QXuQENOim9D2wcFIDHcWA+CeOqojLD5FoX2L+rwzS+w+FBBx2CiZQZ9FCu3AXHz mmAliyUV7XN91T/S+KwcwJd3APvMb5j954COM+KF3Y3Nle2fHA/Rj09iEFP0pdHqa9tT eEPZCpaRLAFJqvCe5gKw+2O7E6Q4rBWTUFlOE4dojShjn71gHJpY/qUgd3HQjfDGYUX8 LDVj6IcPyQ9LGZSrxdbUOkMsIayJ3fCvUvj3rvXPkJ8ajsIu0tO3FNsmra8AmUskCPMl LhyA== 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:to:from :dkim-signature; bh=7P1wyykzAjdsa0oVX7nZF9urJa3Nda2ECOVn9sOUVOo=; b=Izyvujeq7MhG2ZXuiYxvenzQQx0QQ/8c88P1pfTyJ04i9Tca1mEOwS08J4WjAQXXC3 l+yqrJLl/nCv1rNr9LGNZLvGbVgaiGzfGdtVrjq+PRWEXVfJbP6QkR0gEWtJjk1jOnGZ ycpB/St5BOs0D1KbjPecERY7Wwjt7qPSS5bhUgZ/p9xf1pnp+cTdb9zj/nyaJyJDha40 DRuAnqN2yv8GJS2aCXDU/adMhbqqQoyuhS478Mtkpx9hXWR267AJdmcDqhJRRIsGNknH /sxPrD0Ses7de2F/nQREDC2RHuqmmXEoZYOuu34JzXF9Sjh+k3upmGTSSaRvGccctCPE W7cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EeEx0koe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a63e543000000b003fd4143cb9dsi10286550pgj.284.2022.06.13.16.36.33; Mon, 13 Jun 2022 16:36:51 -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=@gmail.com header.s=20210112 header.b=EeEx0koe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243254AbiFMXeo (ORCPT + 99 others); Mon, 13 Jun 2022 19:34:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343693AbiFMXek (ORCPT ); Mon, 13 Jun 2022 19:34:40 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2356332EE6 for ; Mon, 13 Jun 2022 16:34:27 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id s135so6943085pgs.10 for ; Mon, 13 Jun 2022 16:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=7P1wyykzAjdsa0oVX7nZF9urJa3Nda2ECOVn9sOUVOo=; b=EeEx0koed4qmNyRvxTbfNmBEQy6BEj3HnXVlB9Ko/g3MQGiJsn0UbbYbU4Mk176vZd Wpyah9BLRU8ghQ5M9W7vwDqD0befM6BcINZpdToMJ7ItdQpr6FM6A5VM44bBTrJro3hY rn9nA+aMsSAJcl0jUe0sGQP9XPE+0xziQUIBbWCQcWXd60vo3v2FN+Gv5s5WPjwqhB/c T7FbGtBkxZkTu7YUGAWNEnEwHgj1HsfInClOUw2qWeBIZMubmDS/cvjHHxSH8psSv7KO m5aKscX9DKciarhpQTTsl/NtPvup9YhkivpqK173wKXMWio2AGJ3sQjCiyFe8NLfkkrc u4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7P1wyykzAjdsa0oVX7nZF9urJa3Nda2ECOVn9sOUVOo=; b=SJPYmikGt5CTy1qOsncxx4FFVOhfRizDbWxb0zxJ+HnrVAacIWXN33JMeU9CAsSFob Qn/aAFoKzG3K6WHW2VwQCUS11X2rtefr+pfqjQUVhj4PlXue55SsctoSg+VDazqzCiZQ FEyBFyTiM8T7kJ23qf9Qj8XMHdY5tQvY2bpFu/xVIz8Qh4e6nq2wIpYbRC68K5FhSXFu IWvl45grqHGUCoCv1XTDuqrGH4HuGoVMi/MGuzp3u4OcNgsQsqxAGB3V4mhzt/kVQ7TA 932AP5dKFGddGuSt8RodqC1lO30jBNy9ltNE3iOB0lPr3h9OHCqIedCsvRsNFvhI5OlU sKXw== X-Gm-Message-State: AOAM531hNOvSSYqjwByEngqKClOVXUxmR1P3ek/m4EboIubaRwVmn6Ij 64j3Cfh1Wt627sO2SGMnnDMUPKDjrtg= X-Received: by 2002:a05:6a00:893:b0:51e:77ab:8874 with SMTP id q19-20020a056a00089300b0051e77ab8874mr1354263pfj.21.1655163266142; Mon, 13 Jun 2022 16:34:26 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id j12-20020a170902c3cc00b00163ffe73300sm5691017plj.137.2022.06.13.16.34.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 16:34:24 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] monitor/att: Fix decoding for notifications Date: Mon, 13 Jun 2022 16:34:19 -0700 Message-Id: <20220613233419.177421-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220613233419.177421-1-luiz.dentz@gmail.com> References: <20220613233419.177421-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 From: Luiz Augusto von Dentz --- monitor/att.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/att.c b/monitor/att.c index 00db8ddaa..de70a9dc4 100644 --- a/monitor/att.c +++ b/monitor/att.c @@ -1547,7 +1547,7 @@ static void print_notify(const struct l2cap_frame *frame, uint16_t handle, return; } - attr = get_attribute(frame, handle, false); + attr = get_attribute(frame, handle, true); if (!attr) return; -- 2.35.3