Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp378588pxb; Mon, 16 Aug 2021 07:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsnsUO8Qplo0jMcJJwMiKoIbgLgKP6k/pYYKtV0QaS2QN9lgpM2cJHsnbfQwsk/0oKn+QB X-Received: by 2002:a5e:de41:: with SMTP id e1mr13273959ioq.125.1629124300994; Mon, 16 Aug 2021 07:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629124300; cv=none; d=google.com; s=arc-20160816; b=a6i8EgCPkvBVr+mE+byz2+oQXIjAXWhb+HQU/NL/CGWuv9XTAbSAdlfAY08lBIuBg+ YXyFcHKbZxMl8BRJIDB9aD7/g9xvP5wEec9X+clpqeJJRlCdrbHN6fUUCS6yjoAeHcA4 I9us9GW1QUEtkBQr9M/opVVqELJ0qFjLD9djQqwz2SgXtojbbXD4/00DMRnbluUCOU+o uC+GfIiFeLPxwopADQa3Cg3AWafGZNxZoEmo04F/swJDm2KUmHBUSY11YePgeCVfaVcV U84e4f3C1xL0/v1mhsxWiSgajjB8cONMt+KXVQLjw6v9eUyKjbN502Rpqg9XPMn+cJIq DyBQ== 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=1FTyxWhF82ipYTsVFvJpZeL/btz8Utu8BJqwqEetVps=; b=XvipR2ErlZ/2v/2sieb0P3iGUtXIMEUST+tYNXwQGFXsMwauJvM9nX/AwNVTLAbWHg qZcOTSDvW38cWAE/IWnxnviGcPIu4cKYmJXfh5SsKDgzNC6SEZyDxjvGEJbf0EbJGHLE sohVXJ8TkT5e4oPiuohZQU018tPcFmt56Sj2eS+K83gtLig6jBN/TSCxTTMSXTtd+Gpz emoH68SeqC44sZLZ6uns27G1qnN3DY+S653qEVLPS6nANdslS0H3kxAlcG9JD4Bp6b8o A8TWixk8x3kLeezJhMY79hZefdXHpBUjim2gx2rLp7iRsEcFhCUO1a8Bu7W9P/QO3jut 454A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=mmI+UFoV; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si11423701jaj.47.2021.08.16.07.31.08; Mon, 16 Aug 2021 07:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=mmI+UFoV; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231354AbhHPOai (ORCPT + 99 others); Mon, 16 Aug 2021 10:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhHPOai (ORCPT ); Mon, 16 Aug 2021 10:30:38 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD0A7C061764 for ; Mon, 16 Aug 2021 07:30:05 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id k5so7007494lfu.4 for ; Mon, 16 Aug 2021 07:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1FTyxWhF82ipYTsVFvJpZeL/btz8Utu8BJqwqEetVps=; b=mmI+UFoV9f7c90wdinSV6fXqEoOiWPXVBSN9S5rMejHsUnifKhAfAgao33FwfN8DUn /l2UFb+tzb9lFoQfC+NNsP8wc5lktwHdKgH3aClFsz3nPk8nxCmzi4Z59+mjUt52TobT NKq8bw/HT7Dw4a96cnTbvsHwhQkSZdI5AxQRu5tg26PpeyKqqRj23iGOT57Qo6i4y7+z Mvby0ZKD6FcYM7QEHRYB6PfMeYyZbNXKxKX3YYJugkr4f9qwz5vnFFD6Xf7qHlJLxY1f cvKgxY/26hBmCITwIzLzftDgER+Idxa1+EznClxvFIRu4lfg8wjoWK6sVKp0oVUbFSKR yAmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1FTyxWhF82ipYTsVFvJpZeL/btz8Utu8BJqwqEetVps=; b=X3+jfVtD7F6bTTaiiEBmH+vAyd8yzv1ZuZbBmBlEKGoq2jgxZ9HcVanglgBjN/3Xc4 TjpI/YJ4s5IwVOAtsa00q018MAlP4mpH87oIn8It9FTlpVd38QaCvdoY+AALPYFulEBn LC5v6hYRmhj6j5mLJjSKZlpoj4E1omJ2KRhrSCFF8L8BGpiari4O/UbEYAi8+QzgN4k0 HgThnfPnvk7klmeu9fcHNpyrSRardk6zp8QxV3GFpar8WO/eY/ILK1a69xjm5qhpLE9J 5tBn2fhsGNesu117ttTsv7p3pEPrSp8LgqMUw9FBCN5lqk74KHeHgwjFHPz2lf+XPodp ybhA== X-Gm-Message-State: AOAM530eUYuU0jD/bbW/f7ocdxhos6Tic4vtvRFipfmCh2wljbFOUz5K 7dKEsGSEbnlIm+yBLLlLwPdhjBpa1x0ErQ== X-Received: by 2002:a05:6512:2210:: with SMTP id h16mr2910996lfu.621.1629124203985; Mon, 16 Aug 2021 07:30:03 -0700 (PDT) Received: from localhost.localdomain ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id t142sm959619lff.269.2021.08.16.07.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 07:30:03 -0700 (PDT) From: mariusz.skamra@codecoup.pl To: linux-bluetooth@vger.kernel.org Cc: Mariusz Skamra Subject: [PATCH 1/2] monitor: Fix Maximum PDU type in CIS Test Param Date: Mon, 16 Aug 2021 16:29:55 +0200 Message-Id: <20210816142956.1690272-1-mariusz.skamra@codecoup.pl> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Mariusz Skamra The Maximum PDU in CIS Test parameters is 2 byte value. --- monitor/bt.h | 4 ++-- monitor/packet.c | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/monitor/bt.h b/monitor/bt.h index 738bc294b..0bc5718a0 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -2681,8 +2681,8 @@ struct bt_hci_cis_params_test { uint8_t nse; uint16_t m_sdu; uint16_t s_sdu; - uint8_t m_pdu; - uint8_t s_pdu; + uint16_t m_pdu; + uint16_t s_pdu; uint8_t m_phy; uint8_t s_phy; uint8_t m_bn; diff --git a/monitor/packet.c b/monitor/packet.c index 025b7e9b0..210c03259 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -8063,12 +8063,14 @@ static void print_cis_params_test(const void *data, int i) print_field("CIS ID: 0x%2.2x", cis->cis_id); print_field("NSE: 0x%2.2x", cis->nse); - print_field("Master to Slave Maximum SDU: 0x%4.4x", cis->m_sdu); + print_field("Master to Slave Maximum SDU: 0x%4.4x", + le16_to_cpu(cis->m_sdu)); print_field("Slave to Master Maximum SDU: 0x%4.4x", le16_to_cpu(cis->s_sdu)); - print_field("Master to Slave Maximum PDU: 0x%2.2x", + print_field("Master to Slave Maximum PDU: 0x%4.4x", le16_to_cpu(cis->m_pdu)); - print_field("Slave to Master Maximum PDU: 0x%2.2x", cis->s_pdu); + print_field("Slave to Master Maximum PDU: 0x%4.4x", + le16_to_cpu(cis->s_pdu)); print_le_phy("Master to Slave PHY", cis->m_phy); print_le_phy("Slave to Master PHY", cis->s_phy); print_field("Master to Slave Burst Number: 0x%2.2x", cis->m_bn); -- 2.31.1