Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp196442lqp; Thu, 4 Apr 2024 10:23:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8A4ZzrYWoz7pI1mz3xyMPIc+DLWycYOq767khHB8SX9a9oWzR8eJkM0KWG1dUdkeDpW338yloU0e/swskEkAfNEf28epBqsJJULme9A== X-Google-Smtp-Source: AGHT+IF9UO5DxJJmu3uiPfEM4dMwbV7n9wRAr3xnDr4/RzLPacVh1U/fapGo8wE3BJCXH8nlAgvJ X-Received: by 2002:a17:906:5615:b0:a51:9cdc:bbc6 with SMTP id f21-20020a170906561500b00a519cdcbbc6mr212234ejq.60.1712251435246; Thu, 04 Apr 2024 10:23:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712251435; cv=pass; d=google.com; s=arc-20160816; b=VfD8qUIICDQW6Q4hIyLnoiqmZ1ual0pHJgTy5aIa1bGj6Drq5wsmJFR3oDbvu/jefC xZDDzHyG6MyLLH8Bc47pxsLmOc5WnoThojvMHISqzKhQ9k1ENLCuZqiphDcUYVE7xOXi MfcL3SCs+FAkA8QmKbh0cRd40xRo33K9mfx+6JETU7biIyRd6rbuJzC3K4PTXtIWyc92 lbR8RAzmfMDBdKyRsLrc8ZJNY5MC5ubFKx2MFui2Zv3R04yjNw84+mZp+UDNIXZ2GMTx BIVBVWPdnBVTCnKnLztzt6HRjPRlR95LTLaaPkVIIszD7YJLQI6sH5qAEumS5BlBJYNZ yaLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dphtDnuqG2CBnaoHx7hObVeKoWyOrQju5EENgq0NXvE=; fh=0NWajra1XRwuR6CVQ6ZxSOe23Cl+apSkegTmEj8fiT0=; b=ULgw5826QJzlFITnIL7MvYsf+uZHZ66lA7nu+2jgc+0M5vEGyVgxFu4bb2iWwN826u k73xZHG2d9N1W4RuaX791HMJFc2XQyo5KEbeyj18xtd+MF4lJU1FQgrCoCkpohm0gJg5 bdjnW/+WQbQvWVQRqpcSQgis7vNKiLRjGfbUn7DWlBcyEzeORfL/eWbfqTMBfU9KcQNX cmrJjRG5RUx523mxOyw+aDc7SEQRDyUzvckqSUCkJrwq6tCokhCc5DIvCUQ8HDLpkxmE 3vOKk0t/61vQYCoFrnqoUe64u/I3ILzPPj5eEAfmCJNmsmepg1g6DV11pIH7bjmsKwlx +6hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kZNrsi80; 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-3223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oz8-20020a170906cd0800b00a4e531ad383si5504089ejb.466.2024.04.04.10.23.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kZNrsi80; 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-3223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3223-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C07861F282B3 for ; Thu, 4 Apr 2024 17:23:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82F1E12D203; Thu, 4 Apr 2024 17:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kZNrsi80" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 4F7C314A8B for ; Thu, 4 Apr 2024 17:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712251429; cv=none; b=es/dgPMzP/jZUKYJsUy8cuSGu/3Npr+pLJVbZ543/OIRAYU61QDtwGyww4JgMb5LUjJXD+NkGSfLUhv/+21ZHOvd5RcUzi+hGF3rpIYkrDb4YKzaTa0piusEy+aoVOZrY022aYcgaBVTItm+2xTyNSsrZjxuMhCBh2VndocDh3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712251429; c=relaxed/simple; bh=aXk8GQ8e9/t6QvqkN/T1GzCR4SiMXCYVRE15IgLGCVo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rXVH6OSRB4sqTL0svezbqh0UGMhcP1SAzxAqRdiydKgJoMnUcXItK3RjokvFtdvwVVip+Yr/DlxvtKgUUBgO7S9SrfG2QsbpAX6250giVUwmyOWmxTnvV6+IaoiLtxAKYQdkfaAme7EtfbZ81CSsh+JBgtuW0WopHmXL+Tdrx6Q= 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=kZNrsi80; arc=none smtp.client-ip=209.85.208.175 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-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d6c220a377so15151711fa.2 for ; Thu, 04 Apr 2024 10:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712251425; x=1712856225; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dphtDnuqG2CBnaoHx7hObVeKoWyOrQju5EENgq0NXvE=; b=kZNrsi80dGxNEJfQqTnrB+gM+rEZUbTl2ligZOQMcpTnlNhkinyg/bnlRqGULNr7Q7 lYdm3Ezg970mpYrHL8u5bOo13gIyjKZv6fawyGEbYN/5Pk0hA+Pp2veoqwp51k1xjkgg etBO2fDe7MhJCkb++D/D5VXMLj64auU3lEjLd2pu8ePz0gp/2rgbHOMmqej5d+Mr+OK3 5MrpWyfbhDjDpX5cwzS9P+TZniL+fEMGzLAk8d3B1aQwn80bAmsK04KlNzrkuRBtf0EP Dvux+AxCOjp+KOyrVYgE3ISVUzFfgVfR6OAIkmlZ7oo1JmHm1sesbe7IWc6OpJGbDuMA ywEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712251425; x=1712856225; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dphtDnuqG2CBnaoHx7hObVeKoWyOrQju5EENgq0NXvE=; b=nhEbqZwUBrudVsH9dGe6JlaS6vow2zcembknPG5FtN8thITM5Ml472xZdjQeTK3y0v CGxxcO34YGpenJe9hfBFtQulQypPR+39JU5u5RwGY90PmF48R7NgqsanHWLpLpz+RfwI apK0FMmrk/m/Cd8Cj26ZnqaL6oUCMmLNE+1hVSHh4qfWuMoBSEl1tFTcB6uRzqOZ7YJO 3oCmNXKS0kUG4cpmi/9eDpbFpBnvG5HPYVLXpKYZtzvN0y6hiYhYEofYkNBG3Xj8vYIQ bAlK+uZ5JdHXbI8PeL2U5x8DSAV0oUK/0F/qXdpHmns61LwrJB0mUsyiRbSS9kTiQwLX ZraA== X-Gm-Message-State: AOJu0Yzjnv3RNWbdDEHBxSviNXpV2uICTc1lEJZ73w331jmuNychZXvu b6EQLLLPdGCeZa2XPqgp0GDSRwmAfZVNRJpv6oXhodVod+FIdXs9NDIzrpvw+oL6IrvpuBo9hFx QE90uldMsiXGxKNXonhWG2HupXcBGVXVjmXM= X-Received: by 2002:a2e:b994:0:b0:2d8:3e52:66bb with SMTP id p20-20020a2eb994000000b002d83e5266bbmr16144ljp.42.1712251425044; Thu, 04 Apr 2024 10:23:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240404114054.4987-1-mahesh.talewad@nxp.com> <20240404114054.4987-2-mahesh.talewad@nxp.com> In-Reply-To: <20240404114054.4987-2-mahesh.talewad@nxp.com> From: Luiz Augusto von Dentz Date: Thu, 4 Apr 2024 13:23:32 -0400 Message-ID: Subject: Re: [PATCH BlueZ v2 1/1] Increase autoconnect timeout max from 16.384s to 20.480s To: Mahesh Talewad Cc: linux-bluetooth@vger.kernel.org, devyani.godbole@nxp.com, sarveshwar.bajaj@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mahesh, On Thu, Apr 4, 2024 at 7:41=E2=80=AFAM Mahesh Talewad wrote: > > - In current implementation Autoconnecttimeout max value is > 16384[0x4000] msecs. > - Since some controllers need some more time to respond to cmd > 'LE Extended Create Connection' hence increased this > Autoconnecttimeout max value to 20480[0x5000] msecs. > > For ex: > - In some controllers, If we include LE-Coded PHY in the initiating > PHY List, BLE INIT scheduler selects the 1M and Coded PHY scanning > as an initiator in round robin manner, and due to this available > bandwidth gets distributed between 1M and Coded PHY, and this > results in longer time taken for connection establishment by > the controller. > - If ref device is advertising at 1.5 sec intervals, with create > connection timeout of 4 sec, the controller gets only 2 opportunities > for the connection. Without the inclusion of LE-coded PHY, > DUT takes ~3.8 sec for the connection establishment.Hence as described > in above point with the inclusion of LE-coded PHY it is difficult to > achieve 100% connection success with the device having > adv interval of 1.5 sec. Have a look at: https://patchwork.kernel.org/project/bluetooth/list/?series=3D841493 > Hence increased Autoconnecttimeout max value to 20480[0x5000] msecs. > > Signed-off-by: Mahesh Talewad > --- > src/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/main.c b/src/main.c > index f774670e4..081a388ad 100644 > --- a/src/main.c > +++ b/src/main.c > @@ -657,7 +657,7 @@ static void parse_le_config(GKeyFile *config) > &btd_opts.defaults.le.autoconnect_timeout, > sizeof(btd_opts.defaults.le.autoconnect_timeout), > 0x0001, > - 0x4000}, > + 0x5000}, /*max val: 20480 msec*/ > { "AdvMonAllowlistScanDuration", > &btd_opts.defaults.le.advmon_allowlist_scan_duration, > sizeof(btd_opts.defaults.le.advmon_allowlist_scan_durat= ion), > -- > 2.34.1 > --=20 Luiz Augusto von Dentz