Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp770904rwj; Thu, 22 Dec 2022 14:50:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXufltEjFZxXiqAkIVyQCwkkmJ0SCc6k3lchsEqD+N3Yl6cKAOb6+KDIWqwHKRS8HUTEnVRG X-Received: by 2002:a17:90a:d982:b0:223:415c:6876 with SMTP id d2-20020a17090ad98200b00223415c6876mr8343087pjv.30.1671749411517; Thu, 22 Dec 2022 14:50:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671749411; cv=none; d=google.com; s=arc-20160816; b=iT70SAECk9jze068JqdamvR9SgDrtOBhLNXyH8R44yALTfcjCwgnJ412VuooU83xqH HIywiBfbCwtQODQuDx69q2wTsqMeH9tqLs7jTkUq1lU/8MF/ROgpx3sx9V6Eth2F5hl1 5FUFtwUhLjBrqUMtaZUPPxCtdQWXjaBxP1IJKcMyqZn0xeyvPyd8yT0tbGTcaJbLF7rg 6Wtj9gCISt2SnNeGKhkfcYTl46Fu3iMq+yHcZXkDKsgzQ6H5hYopBaaETB4cUUd15WtB lUl6gvEiJ4lcotFEHjJ3PmtIy5VuCJAD//mF7VgmNVT5Q8uZv+Z1XeUYCfbtpKSwqFcX Ka1Q== 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=9dhV8egEZU8cWS7ajuLRcKLQDgDZ98wBiHZ4g2Ri8EI=; b=ZnX45mheTTrvK12GhpgsuNTkPux9Kx+WpsW0RDozaxHnRxpHWgoI4ap/JXEiOBqTBO QXDu4wiZS/uOBIECfud3kKMN9sfEvxhKh58JA2rg6Shx6ORvlM4vYADnMF1+sHFDfRFh ZhD7PfyOdgZSeElUwqUCdwyFPz8rhIJ4gCUlUXZj2mV3n1GhPtOsICySPt5q0QmiXN8Z b2ILQ4J+9uBFtZoQW+wGWHCcE/wDEr/8g97WcxrUrU3ipbCKH7tmeQMj+DQxCDfkh+lW YXv2V/Uy4Ir6/kGcIkjXGj42/DDntJM8LVqlrTasVrMJX/terga6lQDMqxt+ei9ofKDn XpKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jy8gN1TE; 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 pi16-20020a17090b1e5000b002134d2f9848si2099663pjb.9.2022.12.22.14.49.59; Thu, 22 Dec 2022 14:50:11 -0800 (PST) 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=Jy8gN1TE; 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 S230148AbiLVWnm (ORCPT + 99 others); Thu, 22 Dec 2022 17:43:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbiLVWni (ORCPT ); Thu, 22 Dec 2022 17:43:38 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA59B5F7A for ; Thu, 22 Dec 2022 14:43:37 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id b12so2229825pgj.6 for ; Thu, 22 Dec 2022 14:43:37 -0800 (PST) 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=9dhV8egEZU8cWS7ajuLRcKLQDgDZ98wBiHZ4g2Ri8EI=; b=Jy8gN1TEgkEd+0gaIZsXCnXzG/okrp3PJ0G8JWSNNECuz8CEe4BOMZpZudYH99bBL5 H6QIkJppW0n0Xt7lY+f1FSPDaJlLGfKhs3bykUf/wB1SZzUEyynsBDiZBLkL0ME5Ha9U FOTvV14nlXups5eOgsjy1E0hTqcRzyOdyNbappFF02lpeONp+//SQoP+WzgQ/Nt8GFIh txskIHYRkXtInQ624PdBOVn/yMobXk/Zv5R+he0tncw826CNXjLJpMxTnBa1G5ifx7SO bI4faFCGPOEgmJjLrayLWUpmw8d4DnOBFwfkySxCVADt4eifWqrBxtlzasRLA2lckyg8 bH6A== 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=9dhV8egEZU8cWS7ajuLRcKLQDgDZ98wBiHZ4g2Ri8EI=; b=HqHeivKDbGXo9vIMwt7sU+mfVx0ZEApkB4NcXwqDlzFne4a8epPeRjaJ7I6+H4pLNb ZaNEgvuRwZiH5FVW6J2U4vzNmF2hGqYREW0HwiWxl2htE9FkwaKvs3q75RiqpL9fGVEM nBURc26SAQYDf/QitlPemY0Tj8zjp46zfHDDs0AsgTefgE0uBflR19m7qEEdKPmmy5sp /33pV7PnrT49eA98J44CoK2tegeRjt3K/DnPuqJ8a0PpcYHLK2fUgmi4yRj3htoa1Y5d qOTtu+r5kADBU3QLFUxG4b9N/mQhGVMcLrPihNKyP7riuez9C8BjkYFLqyG5EKhxrfoj SuGA== X-Gm-Message-State: AFqh2koUJU1jMvpErb/CTNkQeLMLCMECfmkUGsyEmhnDknmdDsx2df0w uRIAsrmOZQcKj/4utPafx7oTZMtyfm4PWg== X-Received: by 2002:aa7:85d4:0:b0:578:8864:7b24 with SMTP id z20-20020aa785d4000000b0057888647b24mr7828601pfn.12.1671749016695; Thu, 22 Dec 2022 14:43:36 -0800 (PST) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id f6-20020aa79d86000000b0056bbeaa82b9sm1187546pfq.113.2022.12.22.14.43.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 14:43:35 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 5/5] monitor: Add support for decoding RSI Date: Thu, 22 Dec 2022 14:43:29 -0800 Message-Id: <20221222224329.685837-5-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221222224329.685837-1-luiz.dentz@gmail.com> References: <20221222224329.685837-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 This adds support for decoding Resolvable Set Identifier[1] advertising type (0x2e) according to CIS[2] spec: Resolvable Set Identifier: 46-BB-DB-26-D8-55 Hash: 0x26d855 Random: 0x46bbdb [1] https://www.bluetooth.com/specifications/assigned-numbers/ [2] https://www.bluetooth.com/specifications/csis-1-0-1/ --- monitor/packet.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/monitor/packet.c b/monitor/packet.c index 134cf398a66f..44f1941bd30c 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -3123,6 +3123,7 @@ static void print_fec(uint8_t fec) #define BT_EIR_MESH_PROV 0x29 #define BT_EIR_MESH_DATA 0x2a #define BT_EIR_MESH_BEACON 0x2b +#define BT_EIR_CSIP_RSI 0x2e #define BT_EIR_3D_INFO_DATA 0x3d #define BT_EIR_MANUFACTURER_DATA 0xff @@ -4017,6 +4018,14 @@ static void print_eir(const uint8_t *eir, uint8_t eir_len, bool le) print_mesh_beacon(data, data_len); break; + case BT_EIR_CSIP_RSI: + if (data_len < 6) + break; + print_addr("Resolvable Set Identifier", data, 0xff); + print_field(" Hash: 0x%6x", get_le24(data)); + print_field(" Random: 0x%6x", get_le24(data + 3)); + break; + case BT_EIR_MANUFACTURER_DATA: if (data_len < 2) break; -- 2.37.3