Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp22544lqc; Thu, 7 Mar 2024 09:12:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXIDBImzem1jRyBSHKvI8N5qyRXKhP/qHySZXHQT+5ep4baTi0KFIF0B3wMhT3ugfsCt4uqJ2CrEIR0tk54eFPCfINolClX5IUAjqbDhw== X-Google-Smtp-Source: AGHT+IFQg5sRtulokEwA6L78DgG2SSZrQW24S/cHV/ji/mJZLG4XsU0xwWox8sQpcPN1vpyAWt2v X-Received: by 2002:a05:6a20:9190:b0:1a1:6f4f:30d0 with SMTP id v16-20020a056a20919000b001a16f4f30d0mr3328457pzd.32.1709831535803; Thu, 07 Mar 2024 09:12:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709831535; cv=pass; d=google.com; s=arc-20160816; b=kUEHMn72gyyRKxPw23cjg6zq/8iqepRgougSZ86WCqVkK5tBVy23hc8ROlXjbbhyRx x5sE6bncOLZnP73IdE9bC7g+MVF6AIdTcstGTB46OV5/JkOC3/GuH5PbVf7btMlWyHcx qCcp232tixNCXd3hwn6ZYvd3zwBwwAjnivapUw3hQBtRd0MhQNsw4vKWl/E+KGC2nBQ6 kPTWe262eTlR7bRQ3U4lTqvmgbZW3PsG799IzKDeHD/6/W28WjxCfaJrIVvhZZAA9VKi Rrm/vdlfikhHtiTkV34IC+J7J8pkaN/sxisBJ6GI/IUXUw75/EL10C0WvM36nYs+gTGW fWSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=Q8nrs+sqbjTUno3Gmy9RVGvmMPDqcLRi6BJsFAiMcC4=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=M0JULqUKRRbyl5WtkwKvf22cPdwKTlAabEHW+6stTTaWe/I2rUPaYeLfikzcf+qHQ2 UCrBhsyzFHTuu7FJ+Dbku8gY7GuMIODkyFd4HGvNEGzmD+e5w6UZ/z8EXpNnwfDkl2vK agw5dXPmFiH1Yh67AXNUWsUJFz8qqM4+TCs2Xu6ixBNEaatgGCOl4LgS/ZSfcQ2mh645 0kNHpGfd9TmPeIelnggj6hpIC6iK6sc2cS2YZ3eb+ul86c6erEq7kfxxmqp1ETrzxCqo C3c5+7oR1PaRDYxkRMa16tO6tc9H9HKCDrSlAsb8xJNxCS6NLKuG5PkhoMEkHTAvY/Vk 9dug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fSns0e4W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ng17-20020a17090b1a9100b0029baae2d46fsi172323pjb.146.2024.03.07.09.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fSns0e4W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 604FCB21321 for ; Thu, 7 Mar 2024 17:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B4E112FF96; Thu, 7 Mar 2024 17:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fSns0e4W" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D13F012FF86 for ; Thu, 7 Mar 2024 17:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709830876; cv=none; b=YyNlnxPt+vC/8ouzCSiSFcrm9tHNRg1McJdkHcW1eRH2rLftOrPSCAIEKhkNNiEJQAYU4Jgq2SJ8WMUzhBcFVUq6R1L/9pU8ZgY8MWN0BEy7utS7oFV/SgaISmAtuylxeltMbMND0zPasHuZvr4xx306+vQWU5yGAkLKM+rIeoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709830876; c=relaxed/simple; bh=GdY0aq29e/r1IjTwX3a32aQDvmZFpdy2FUznLXj7Rcw=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=fsVNlrsdexpBFZQGTHhaShXjCxNnmnMmVgm0nDvVdVJQXzqWYPJOASiLlFmb+XAus496AcF8EV0AFevKOzPV5firgu2jecKbxDSQQ5rhuR/jA9wihjKTDeYwkCmEhZ0/OvRuvHVJ7CLbXSdU4WMg8NCh9t5y8mGI/lqostthMik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fSns0e4W; arc=none smtp.client-ip=209.85.222.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-7dae66def19so565915241.0 for ; Thu, 07 Mar 2024 09:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709830872; x=1710435672; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Q8nrs+sqbjTUno3Gmy9RVGvmMPDqcLRi6BJsFAiMcC4=; b=fSns0e4WbIAbKab4sNyaXLQgXIpFrJNV1m0leHFtB7m8a+FvBx+oNUOYkIm0f0isBN 4NeZ/AYv/ODQqresX8cXoDbPNoANJmyceyPTA04iW7QTk+xcn2JZPAWdru70s21l5ICc atYTLojviBcGK7MEirHGZbA+AbrzX58m/2RM9KhprbSOHayktTDGp/Likty6at/+jGq3 nTs7CtE7mWzbBn4OuNMvvfoKdf5ENmfl1LWAPau2i8lY74XJtD+frdvj6AvdJyGQDeZz Bdyh7dtVpIOTfQ/t3K/KTJyfPxG7j6M61TfuoY2LeSa9gZBsmMM0IKDnP/Bq+3XO9HEK oPqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709830872; x=1710435672; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q8nrs+sqbjTUno3Gmy9RVGvmMPDqcLRi6BJsFAiMcC4=; b=iTjwK5wJYQ9noUmD45yj57wKkZR9hkp16xp7cAQOac1j182kwsIQnnwa3LwDTXbAHE IBllW7nTM0HlMQ6LaMMSmL/XifEsSWJhLz4r2BYMIXV5V0DTa0FWqQN+rf/E7NnhxzPv wHkPvcyts+ayrGFMQHUxNBYnIf2Sm3AcYIifAVgqJp6cSJ5Ns72DmJ8wRnRnisGtxGIV gUl6295rjpHXZ0pQ7M0suiKxJsVgdyqn/Y4uUqTmU/z5QrXZgAVWLDf+pFh9wdFO9/OC JyzOoIMDqlnAln2zqq3LLz7MtBzpd9jg/NP2SxA/ngAJUfpE49NsGVO82y5+DqAMTmVt Nk2A== X-Gm-Message-State: AOJu0YxoBETeJxUVeSrVvevEMBhzH8P7x+6UT4AZGYJe79fCNzo8mZve yG4EnrSr1T923L3hU7zloKn7RRDUoAmVGz4yyxdzbwwmr34d7LR3bAq9yXxA X-Received: by 2002:a67:efc7:0:b0:471:e1ad:39f5 with SMTP id s7-20020a67efc7000000b00471e1ad39f5mr7610067vsp.25.1709830872370; Thu, 07 Mar 2024 09:01:12 -0800 (PST) Received: from lvondent-mobl4.. (107-146-107-067.biz.spectrum.com. [107.146.107.67]) by smtp.gmail.com with ESMTPSA id hx3-20020a67e783000000b0047254aee7cfsm2666218vsb.10.2024.03.07.09.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:01:11 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v1] Bluetooth: ISO: Align broadcast sync_timeout with connection timeout Date: Thu, 7 Mar 2024 12:01:10 -0500 Message-ID: <20240307170110.4096559-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This aligns broadcast sync_timeout with existing connection timeouts which are 20 seconds long. Signed-off-by: Luiz Augusto von Dentz --- include/net/bluetooth/bluetooth.h | 2 ++ net/bluetooth/iso.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 7ffa8c192c3f..9fe95a22abeb 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -164,6 +164,8 @@ struct bt_voice { #define BT_ISO_QOS_BIG_UNSET 0xff #define BT_ISO_QOS_BIS_UNSET 0xff +#define BT_ISO_SYNC_TIMEOUT 0x07d0 /* 20 secs */ + struct bt_iso_io_qos { __u32 interval; __u16 latency; diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index 8af75d37b14c..c8793e57f4b5 100644 --- a/net/bluetooth/iso.c +++ b/net/bluetooth/iso.c @@ -834,10 +834,10 @@ static struct bt_iso_qos default_qos = { .bcode = {0x00}, .options = 0x00, .skip = 0x0000, - .sync_timeout = 0x4000, + .sync_timeout = BT_ISO_SYNC_TIMEOUT, .sync_cte_type = 0x00, .mse = 0x00, - .timeout = 0x4000, + .timeout = BT_ISO_SYNC_TIMEOUT, }, }; -- 2.43.0