Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2726485rwb; Sat, 29 Jul 2023 12:35:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaNFN6xIj/uT7b0FxbBPM9vdf/iixWX+sWdL6xcMw1PQWSieUDRjk5ACdmjNsgGythBEZ/ X-Received: by 2002:a05:6402:1511:b0:522:5957:44e0 with SMTP id f17-20020a056402151100b00522595744e0mr4500216edw.28.1690659325628; Sat, 29 Jul 2023 12:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690659325; cv=none; d=google.com; s=arc-20160816; b=Ls6WzC/PyFnQgIowkr8w7YsGoKoTgDrobhTmqz5dd26wxytYhYnn7WV90o08yuNKzL ZzhLGHlwhP958Jwy7IwN53V6D7plVFKLKSyQn0YbUZbZA+0NvN3WhTWSWn9E5jLWFz6V gdRCHcN/8bV7v1CSIUtwhnen9Rv3e0dQem8mr8qTCNHhlitfMog634/b68Jq73tbGZ/o 0c5HfQ0V7/q3oZxJHIqBx84nHh/clUaWy3oW6sJ5swu3OnAcSL82Hoprj0JibKq/VJBy QTtiAh0mzzla2+HgOBbZt1mvaQX8hcvhcJlbdU+8UQOUh5pjpcOCy/UOwK7TyIE27Ly0 03fw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=h2f9G3S3gQHFDX8koiPrvowoAowEL/8UCFombGPSuuI=; fh=h17+BUkPRHr2lw0HFkFHFzUM5qc9wHMn/JTuJpN4p7U=; b=BCx32g/BDmYcED7zrFiuxjaqCyj3fDAaAHewxGEPcE+HjAekmTNhcBTYTuOEaMnuo8 mfLCgichUTkceu8fFnsgSlrif8xbGgX0tWvmPSuuhxN50+Ln/X43LC2zf9IFVdOCmvTQ jnZhX0v6PhZyKKWpPyfApiu6IeFF+qK6BAxyGHsW5ZYGvnQe3zw2eHSMOUs6FFd7jm/N U8mSEjlsNFzcY8YfOf5+Wrp1JsHo7zUxbB6bWTtuYjTYopBaXJb7635eR4pVV8fNSyZ0 ySIhU2ebIDjzSXUu0qGUuiOBPPHarSDkWMfT8lvoDaDjKTpfAkGXfP8/inqi5n25mOOZ 5wSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20221208.gappssmtp.com header.s=20221208 header.b=0dIY32Hq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r26-20020aa7cfda000000b0051e27ecdd08si4310783edy.114.2023.07.29.12.34.47; Sat, 29 Jul 2023 12:35:25 -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=@codecoup-pl.20221208.gappssmtp.com header.s=20221208 header.b=0dIY32Hq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229730AbjG2TJy (ORCPT + 99 others); Sat, 29 Jul 2023 15:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjG2TJx (ORCPT ); Sat, 29 Jul 2023 15:09:53 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C84730FA for ; Sat, 29 Jul 2023 12:09:51 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9b9f0387dso48576991fa.0 for ; Sat, 29 Jul 2023 12:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20221208.gappssmtp.com; s=20221208; t=1690657789; x=1691262589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h2f9G3S3gQHFDX8koiPrvowoAowEL/8UCFombGPSuuI=; b=0dIY32HqiixFcLZrUI3TM0WepE+WjqZlBAej5bPAIAivIqYs/qP4uSccl44H1SKgZU jnUHqz+GwsKqB5Q7DziqvMgpBvLCjEeHDspST6UpnRWp7Q6SCrjrFzoOY5IUbpIKP8/4 /k8imn5cojETRbc7ggai7JWWBzyA5PsycEOWhCmtiYi7Bz32ZcqA/cNBWeq+JYhJkrC8 l61FuBMfFm7XNtvWMyXgimIfL+ew56IP+nX/0Vp4nVS10usGmvDywjUet68/JRIasz1c v/DbGX14h7/JT5kQJv6/aU1JyxCMGSavlZk3SDPIz2iq7eiGfofi6k30MTtvraMn9aLx FdMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690657789; x=1691262589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h2f9G3S3gQHFDX8koiPrvowoAowEL/8UCFombGPSuuI=; b=kEPYl6TojfHVt1tlR2q6xEj5/eBPH5Jv6xbBdaSP/6/9UV0WANClJJn0LDD4xww0FR qzBAkBQPw0PsSq/Dp58SX8kCTzRBV0lV1Ajiho987fV69Dpa8Eo/WsopWUSI2WghMDEN yrGxIc0PKY0TZU5ELyZXwwkQtzckk8Vd2BTzxEPyuXcIcIYbcDLtgHkZNQMkET4ExJdY Wu8PKyo8HKUIRrah8LQzJbAAZ2BfL+tNjWqMqah4IPGDyHkkqd+KN6YoPvcfT8ba/mXu LUVSfNYd1emiC43G8DPCnE7hpbnLYlNfLBBdJexa+6s1rj4YwXvyoFyeVOLUh+10hDLq gTpw== X-Gm-Message-State: ABy/qLaC2CCOeqi/HtGX3Ucmkf0iGreWLCXxkhAj2Ni/QvDAkhM40r4P lIh4oIlJD2sd+gfegFZWtv/wmsoMl8LEGDAsRCg= X-Received: by 2002:a2e:90c8:0:b0:2b7:7ab:3c60 with SMTP id o8-20020a2e90c8000000b002b707ab3c60mr4440642ljg.32.1690657789438; Sat, 29 Jul 2023 12:09:49 -0700 (PDT) Received: from localhost.localdomain (217.96.255.138.ipv4.supernova.orange.pl. [217.96.255.138]) by smtp.gmail.com with ESMTPSA id l14-20020a2e3e0e000000b002b6e13fcedcsm1663531lja.122.2023.07.29.12.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jul 2023 12:09:49 -0700 (PDT) From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= To: linux-bluetooth@vger.kernel.org Cc: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Subject: [PATCH BlueZ v2 5/5] monitor: Add parsing Service Data of UUID 128 Date: Sat, 29 Jul 2023 21:09:45 +0200 Message-Id: <20230729190945.1427101-1-lukasz.rymanowski@codecoup.pl> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 In the advertising report, instead of parsing EIR 0x21 like this: Unknown EIR field 0x21: 3a048f2ba97ea6ae1b49c619e973a4a701480d130d We can do bit better Service Data UUID 128: Vendor specific Data: 01480d130d --- monitor/packet.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/monitor/packet.c b/monitor/packet.c index 3031b028f..21e08ccef 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -3997,6 +3997,18 @@ static void print_eir(const uint8_t *eir, uint8_t eir_len, bool le) print_service_data(data, data_len); break; + case BT_EIR_SERVICE_DATA128: + if (data_len <= 16) + break; + + print_field("Service Data UUID 128: %s ", + bt_uuid128_to_str(&data[0])); + + if (data_len > 16) + print_hex_field(" Data", &data[16], + data_len - 16); + + break; case BT_EIR_RANDOM_ADDRESS: if (data_len < 6) break; -- 2.34.1