Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp224218rwi; Tue, 18 Oct 2022 16:51:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XpmheQWFAunYPdVYgbBTxR7QW7O3msbuGGkUEsCNpkyRlbHEDrT9J8b/HBpxZF9S5/C1y X-Received: by 2002:a17:907:3ea9:b0:78d:fdf0:88fe with SMTP id hs41-20020a1709073ea900b0078dfdf088femr4586388ejc.667.1666137096087; Tue, 18 Oct 2022 16:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666137096; cv=none; d=google.com; s=arc-20160816; b=UxhkG05tEz5/Koun0I8JS5Glk7gt6Dt3hYIgii7/fg+DPbj6zNAnuJMlMWEXuMP9fZ E3IoRymtXUtNfXoCjJVmqn+BeIyUziJKY2RNyPD+NPSIOsaWk+2Lb93SDUyXdRg/8Q7u Ce5G/9C0LiMT8ukK/SDraOC+M5Uby+VSS0tMIDJQDQV5lcpK5sDMwhlV3ggHssbtlphu 0Z/74WtmQp4jG0CIlGGK2fywhcjEO9ySGhdpBD5WlONpeQ16o+mqAnlKDgs+elZJO6xU LVxbJKnO31D866uiKEw+KIww52QXOPS1ehBVHHDGto7VcOy0t0o+Jf8tKaU7Ut17NlUp k07Q== 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=qdeBnWLi1p2OWSh/6GSZ28/2GrjhlAjLt5fiAujUhM4=; b=KQ3r174nk72LVSYEaY5zZCoiJItm6dWGqDQrG/MJEgVsxen9watC61UXHHLnuLo2RM GgrD16eOh2FBPdAllvNnjB62qlEtM0pGILR0kd1diCG7/JFizvSyCp6xqolG5umhRSnk qtrCyhVb/GPynPfOXV8XeY/GcRNZ8G7+1fkWOj5MMWVyvCMW5ILoN/LisVIkQDAGYDI7 pXOxu5tToXbGK1qkXSDDwVlIvdTU9MUSsAUYklTOeTw2xu0WtuFxFGnColggVXBRj0MW 2XKlAFe4QSyfWzhm0+fhAVlON2W0sisKtPLRGWnuZOf/QVdfkE2PRR3E6CFnZshODqVy 77Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PQkZiM6Z; 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 kl12-20020a170907994c00b00780af308970si11461516ejc.185.2022.10.18.16.51.10; Tue, 18 Oct 2022 16:51:36 -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=PQkZiM6Z; 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 S229674AbiJRXqN (ORCPT + 99 others); Tue, 18 Oct 2022 19:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbiJRXqN (ORCPT ); Tue, 18 Oct 2022 19:46:13 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35721CD5C6 for ; Tue, 18 Oct 2022 16:46:12 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id t10-20020a17090a4e4a00b0020af4bcae10so15430539pjl.3 for ; Tue, 18 Oct 2022 16:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=qdeBnWLi1p2OWSh/6GSZ28/2GrjhlAjLt5fiAujUhM4=; b=PQkZiM6Z9OH+tadRYYz1ml804enRYF0N56cnlaCCvfBo/5dbr5+nM8FF2xpq1fi44v gwp/unfQG8xtPi/LX3/vCaK0y0KpU9Hq/a25bI+HZZQF+n+8AJGM1nuAnKpDQP28c0MM sG7nqFQEArHEoQqYah/12rdL7N5GlmmevcMZ6LKgv2z/kw2qifH6LVgzxAuMM2obIeur l9hK106C5prPycVSJGrUii/M3YsOMsCJSgu0PQ/mPVtq/OCiy9Hd+K4wt/HiMSd9Pmx1 oyz5TrxdPCLFggxFddd9H+htgY77VIziwK3N6uEBZXyJias9/756JaT5238g/NGkAl9z eAQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qdeBnWLi1p2OWSh/6GSZ28/2GrjhlAjLt5fiAujUhM4=; b=0lXwwWKU4gPBAiNbpzTB+REwb3eh+7XxjrYQx1ic9GZrWCoVcr7Yo16oqW9o7kJpBR KClGzc1l/lvL+9cAe9ubruHPIVhrvjHUILOlr40TQwL6iPSvQHY8LxN9izGWvq1dxl2G O+5JW0xOijOkqJBZshP93RavOpBGJmyZ6ucQeGh3cSWflWZHtwgTVmUYTdCRhwcZe/Tw pzjr2AkhhRlfnPrHvbOPGEjY1nqxv4Cfjs1rfpr9kP0W+5msvv1sGV+fk8O3y9sOJ/nC NFMuUUQxfWVw9j0WVOb1ZDcbqsjvnLrKQ0hEuEN3ZGWaqyWpGPw9mpHce/nlw4pUeDtz uimg== X-Gm-Message-State: ACrzQf0OzAiA8U6egvudRMnJdO3IJpkmCMFl92Vs4k55n+VE73+C8rLK BHsG1O7KGUPGygBoA67CjUgYDrvQ39g= X-Received: by 2002:a17:90a:e7c8:b0:20d:6c60:c38 with SMTP id kb8-20020a17090ae7c800b0020d6c600c38mr6374404pjb.26.1666136771152; Tue, 18 Oct 2022 16:46:11 -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 ik3-20020a170902ab0300b00170d34cf7f3sm9137783plb.257.2022.10.18.16.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 16:46:09 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2 3/3] monitor/att: Revert treating Notification/Indication as a request Date: Tue, 18 Oct 2022 16:46:00 -0700 Message-Id: <20221018234600.3990980-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221018234600.3990980-1-luiz.dentz@gmail.com> References: <20221018234600.3990980-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 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 Notification/Indication shall be treated as response (rsp=true) so the correct database is used: > ACL Data RX: Handle 3585 flags 0x02 dlen 14 ATT: Handle Value Notification (0x1b) len 9 Handle: 0x002a Type: Report (0x2a4d) Data: 0000feffff0000 --- monitor/att.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/att.c b/monitor/att.c index 7a4125567498..fbd75db03b83 100644 --- a/monitor/att.c +++ b/monitor/att.c @@ -2785,7 +2785,7 @@ static void print_notify(const struct l2cap_frame *frame, uint16_t handle, struct gatt_handler *handler; struct l2cap_frame clone; - print_handle(frame, handle, false); + print_handle(frame, handle, true); print_hex_field(" Data", frame->data, len); if (len > frame->size) { -- 2.37.3