Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9994618rwd; Wed, 21 Jun 2023 14:55:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MgGjM5NP/h4+pzPjq3s/2HiIL7WrdmHIGtk341qyuUcHbD5rU5VRe5E1Ch0hHBWjKlxUs X-Received: by 2002:a05:6a00:a94:b0:666:8403:9f4 with SMTP id b20-20020a056a000a9400b00666840309f4mr17663589pfl.16.1687384544885; Wed, 21 Jun 2023 14:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687384544; cv=none; d=google.com; s=arc-20160816; b=KNyrWZiqFOuCofR/vJg9Ln6YYphQEvQT/Ozq+yyRDwSdGs0KxLG483Bzqkun+Oby7s NKTLVAtDv8Y98ds8wu1Xt9hm5qVd9FSsAFSoTCBwxVrRhdBsd8Mkpm7mwehqfaSBWnFx Xnt1T/ZY1xdNh6rGLtvPwqLEa5JinB9dkfenJZ3rH4acvHL3G/ul0wuTN+/eKUdQdt2Y BaeqMECFA28F0V9LtD8xltTY8fVOixLKSdvdyINyiusACby4IKimTuhg0gf2eUn2DsPa Er5PqVjE/xA4QQgHBwicsdBXhgh3/lB/unB4FaswdbbpcXySj06mF/t60A70HBcj6qpi GlFg== 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=D7vbYS2ToCosmjFXnjFg6iPNeVmbMl9Q6DWSa8U0smM=; b=boRFfCxvum0SDk9Rn4zDSt5BUUeBvn2c02RTUg2m70WyJisKs7g3+tRyk+9wFQWMGp tnGdIeVeYbfUcOiWnJhD1MWTEmpNkOrGqu26Vjpklhi5YFbLIt7MiekXxS3OILK5murU FCf8hMOazbV6NpdyRyMkfumtcM3o+oAm7KAIsBXzJUKPRqkozR+wDwcWIfbCDcuraRT8 9jdAztc0ei2RuEnkiYshAiBazXUnIW00gWkWGN3HfrzJN0vdo4UTjFbZ1nxAkQIRTJfA pAauxbMIMmaploeUPX5LSS8rVb59IVe7tRa+y2DxBk8mK24upyKL6NMhOC/gKkE01eVK 27RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=m2OwKbK1; 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 f15-20020aa7968f000000b00652c20d3522si4764338pfk.303.2023.06.21.14.55.32; Wed, 21 Jun 2023 14:55:44 -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=m2OwKbK1; 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 S229812AbjFUVi4 (ORCPT + 99 others); Wed, 21 Jun 2023 17:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjFUViy (ORCPT ); Wed, 21 Jun 2023 17:38:54 -0400 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CA191988 for ; Wed, 21 Jun 2023 14:38:50 -0700 (PDT) Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-55e299e1d02so3768547eaf.1 for ; Wed, 21 Jun 2023 14:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687383529; x=1689975529; 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=D7vbYS2ToCosmjFXnjFg6iPNeVmbMl9Q6DWSa8U0smM=; b=m2OwKbK1kSmmzxxVaTW/Wc6tlsSdEWbtgOZUZ8nRKCT7ZMRVzLR/i+Lr/Mzc+3vuvu e51HdDv0Zw/OOP6aZc5DzsNMa/92BFQ+LApXXI9iGD4TJrJAYnODH/uqHbHY5ZRLn/he 5Srn+2Og42ce1TiUCZprH03NZnBw8Qf1xORxmXhC2e6SrkQbX+HULSCtVeFFO4PInc76 3DpSVeEztE2blJnnI9EK/aIfc4R7d+w3cXVG3Y9kh4lkJGhtLNo5gGnW3VCrugjbGBSj THta1hsJWn3ZFyo6nFw3SfxWJcyjCDU2Za3cA9Ke56ltOJt7xCa35MvpsfUm3zFEH4Ar tt1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383529; x=1689975529; 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=D7vbYS2ToCosmjFXnjFg6iPNeVmbMl9Q6DWSa8U0smM=; b=QWmyRs1XDF9Eb5FRTDkXl7GthVk8XobIO1t3OmJ2kziYJjaO7IR2I496QJ/Ftf/lNU qrmpxY8O0poG1XUGGRLRYDhJv8s06ygjm27eSqAd6pwfCVDx67DvYb6okak74xNf/2Fs /yn7MdAr6xL+9T9ECdjlE7PwfAF837hvPTPu3UFy09fxc/HBf/i6NSewjiFMEa/rDuqu 4w7+qMH7eO+8WCpQ84GrDrvpTOX5/N31WXIqG3vTKc58IRoVM27dpNkZHofatWKj8nk4 z6FxFdKIQxyxvsQwELXTJQBBT2OPNQmh6A+ty9j2jzdeCqy1QEjsu3xBLy5NOuVW1uqu qjGw== X-Gm-Message-State: AC+VfDwyxGzPOt5SvLZuCluOgjqnPIu1U5P3zPdJP809SLvvKT1EzcS+ fvw+6xVOvisAAm3XrCab9UuNBxLGTO6gmg== X-Received: by 2002:a05:6359:2e99:b0:12b:d4a0:fab3 with SMTP id rp25-20020a0563592e9900b0012bd4a0fab3mr9547274rwb.3.1687383528794; Wed, 21 Jun 2023 14:38:48 -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 c10-20020aa78c0a000000b0064d5b82f987sm3406643pfd.140.2023.06.21.14.38.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:38:47 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 2/2] btdev: Fix CIS Establish ISO Interval Date: Wed, 21 Jun 2023 14:38:45 -0700 Message-Id: <20230621213845.1021997-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230621213845.1021997-1-luiz.dentz@gmail.com> References: <20230621213845.1021997-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..0a375febad68 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) / 1.25; } le_meta_event(dev, BT_HCI_EVT_LE_CIS_ESTABLISHED, &evt, sizeof(evt)); -- 2.40.1