Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8467276rwd; Tue, 20 Jun 2023 15:55:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6m8mVqP8y8p+/Vajfn2hQYiwealhR3i7pWT2hLeKgKcgZA9lSJeCmnzdbEg8qbppt6cTn/ X-Received: by 2002:a05:6a20:3d27:b0:11f:765:905a with SMTP id y39-20020a056a203d2700b0011f0765905amr12130670pzi.61.1687301719759; Tue, 20 Jun 2023 15:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687301719; cv=none; d=google.com; s=arc-20160816; b=o1bmRFtR5N/3NOYp58IPy8bIlqmTpK6Ej7NL8S+ad8mNTmrgTCjiMtaJWnJrMysTLq oZlOMpoUX8pg6Ia6+tKebML4LIlCqxiQB4bgZbBnpslzKhuGox8GSYyeOmGB2/K3CyWF zIO6tsmtGgihQHCSdUWWOVZF+1RxDS9STQl0dx3efw+bPXDcF9bs/i8tN/4R4ACRFNNB 4Hccpw8QotEdGFvDkgNcYLMJNM+zBXrVLWtlvszkyeRdp7FAmIeTAoj3MVknOdbAvRzi XmKa7YfydtYJBjr0vhvU/7itCGJ+xEcRT3pdNygJN9t0yTe7iqO3rZJeJWJ0f3Dlqpno eOMA== 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=qJ5FIZj/SKdAeq20bSrvzdHR7dTVT01cacr2mmglXvI=; b=kAvGdFaPQVp+hu8S7LkVhTsXaUchJYFrolaMppkdfcN6BC4n2QRuwCA2ZODza8dILI TiXt9gtT7Vky0Ys98wOhteI1I34Ijti6ryY9MA3imdXV3m/3wAfC676KwmrWE3rNh5s6 Ed1pgTvhdmeODTN252TrE610GylcQDBjccXLRHzIMjJ2UNIQ8lzSCtlhX3Y78bi+f3AE /tuB8hXknaTQLDL/Lmfw0KhTH7JJrasOV3BnmUgZkOpCBHF1BZRL9mEnqTLAO3AMgwHF 6QnYy4iBia7POuscCC7UtV0y5iUxg5GsSU350hDPLozGW2r1FsYO28uQl0k9pRYyI+tO hxGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="jSSJG/Ne"; 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 c11-20020a170902d48b00b001b662f49f60si2968039plg.419.2023.06.20.15.55.06; Tue, 20 Jun 2023 15:55:19 -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=20221208 header.b="jSSJG/Ne"; 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 S229521AbjFTWoB (ORCPT + 99 others); Tue, 20 Jun 2023 18:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbjFTWoA (ORCPT ); Tue, 20 Jun 2023 18:44:00 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F16F10FB for ; Tue, 20 Jun 2023 15:43:59 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-666e64e97e2so2950334b3a.1 for ; Tue, 20 Jun 2023 15:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687301038; x=1689893038; 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=qJ5FIZj/SKdAeq20bSrvzdHR7dTVT01cacr2mmglXvI=; b=jSSJG/Ne3eVDrfXS5B7+xJ1Pdv3CFv8wLQ9mcEQLMcxq3k8lXUp60nL1IDKN4bZdHr q5LU67tMp4vlk3GlhjDGyu+wCyIhSKRi2Arh/LrGxSdnAlI2Qh1mx1OmpjrdqyNpcask +YFEKseci18NXIDUPltno273x3PNIZ9zYhgaF2QMbRN6VmN/910Nypu4F/bv159O+d4b QIOo9SB1THMhPD9Ma1N5w8rYPn5FYXD2R1IElDL19X1LCmOER/YxD6nAWr521kNu84pV tJXdv4qUHEdlCWIUN9RcZtLyEhb7J45T0UQG4Fgp+CxV7cstYnEOVhjSdumBNfNW8sLn 3q9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687301038; x=1689893038; 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=qJ5FIZj/SKdAeq20bSrvzdHR7dTVT01cacr2mmglXvI=; b=aAnnO3g6XBSKfjIIQkpEK/gyV5Cgch3ovObmW+u8HO032MEOfposX52JtaM9QdlGEL DvkXtatbIhIxpxQ9wxa0RhPFz4RVOFmj6fbltObpdLAjS0uKqRw4nZ8ewOcbcO4nMf+n YP2uiOf4EikcWlW0UqVZKjYJgEwyeAipTAeKdSi0cKSuYaueH6weUdCE8NXHaQj/r3T6 hcPzl373/lrm1fZuzMU2a6MST3XVvUwz2aBvby3Ri4C0ElL+BIjZP3K3Az4AEd68Q3Mj Hkg4tYINufpEC/ccOz7ofzgA16cHVxM0ACih9UdPaxP9/+uYlv+B3XWAL/dy0IjrdfO2 G6AA== X-Gm-Message-State: AC+VfDyr3j8QsrmSi6snAmXsQY4A5JwnRl72/WndBM8Sh9eQciU8l62Q TVpTs9kT7d/QH7IOuNolD/Ou4pwfyyZMnA== X-Received: by 2002:a05:6a20:4423:b0:120:452f:1c09 with SMTP id ce35-20020a056a20442300b00120452f1c09mr10357079pzb.26.1687301038267; Tue, 20 Jun 2023 15:43:58 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id y18-20020aa78052000000b0062cf75a9e6bsm1734532pfm.131.2023.06.20.15.43.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 15:43:57 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 2/2] btdev: Fix CIS Establish ISO Interval Date: Tue, 20 Jun 2023 15:43:54 -0700 Message-Id: <20230620224354.729781-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230620224354.729781-1-luiz.dentz@gmail.com> References: <20230620224354.729781-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 ISO Interval is actually using 1.25 ms slots so it needs to be properly converted. --- emulator/btdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 462f352ea252..ad637ecb8afd 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -5977,7 +5977,7 @@ static void le_cis_estabilished(struct btdev *dev, struct btdev_conn *conn, evt.p_ft = 0x01; evt.c_mtu = le_cig->cis[cis_idx].c_sdu; evt.p_mtu = le_cig->cis[cis_idx].p_sdu; - evt.interval = le_cig->params.c_latency; + evt.interval = le_cig->params.c_latency / 1.25; } le_meta_event(dev, BT_HCI_EVT_LE_CIS_ESTABLISHED, &evt, sizeof(evt)); -- 2.40.1