Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp36886lqp; Thu, 4 Apr 2024 06:36:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8GZjx6NPeY68AUrFb5tihqaY5tw5P0P45Gh13BOu+U5bwW3RexnEtD0D9Hq/e5dD+IlSAPxS4wL75u2LcMiPPSzJExerwzsoeygUl6w== X-Google-Smtp-Source: AGHT+IF+rh7a5fGJuN8azCe6H7BvUCr4cxm9fL0nPJtyr3G6uk3U9LS4Uy/UboMvcOmpoVmt+4dm X-Received: by 2002:a05:6a00:b51:b0:6ec:e726:b6f5 with SMTP id p17-20020a056a000b5100b006ece726b6f5mr2936072pfo.26.1712237760062; Thu, 04 Apr 2024 06:36:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712237760; cv=pass; d=google.com; s=arc-20160816; b=xGgkX1WuT9pTR22xQNQ522fBip8ZTXo6yGZ96g0CkrIaBLjFKbvqjGQxFkqF1snLec Q8qGkRSgJ84ifTVWb/kUwryU1nNJzqKHVUkNzuwzxu6PsbnS1tpj3IrCX7BbMuYfcY4o pM5qQshImez7iH8h990gayfE2m2G34gzUhMYvuZc5THbKSf49R112f/rIigHjVbRzD4+ WTpq4/PWpOnc7NQSmfLoJ+YpdAngZTDoIoH7roS3lbTo4mIKBV8A+X8xRwvbohMOE39g P3tnZVG8NaGYv3Djz6tfP7wPHaTypsqbFn5SfGOYkd3WuPSEaMVZDh6u+NhXpi1iDjos KHRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=gcaSG0KoGuuADu0CYTjbyZFQCoIbNHzqZG5pJ9Sh6Go=; fh=XKHMgccEUBGclv3v4+1GtOaUxY/omtjac49bAONT/dc=; b=votDEeM4kpt6oXbh1VNG3PP4uOiikzWWmpeeTM7F1VA+GtlYjqvTZ6TVKn8A3nBrKM t51kU9+tdFWq2wFmpH4Q1fLM6xhu0GsVhZGrTZPnUkvL4NE7yRZlXWZRdY0khox6m9hh LpabPAxcDb6tGUGMCSZS9o9FuKr9jXOcLe73w2Dfn3GX7H9k4pF77OBEAMZMFhu/kw4M Vy5lgq3ikebG7xcUuPfcguCkF1cYUhjENAoZGAH4b4mijYLEPm3cnXfqExBi2dFYu7aT fVudhgf/QUIXYCYp3JZ85WucFlGrnfPwT6ubum+E3Ytjxfa5e4zNdhPy3HIOTsFlJhuI xhWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-3204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3204-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i32-20020a635860000000b005d8bbd208desi15142937pgm.163.2024.04.04.06.35.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 06:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-3204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3204-linux.lists.archive=gmail.com@vger.kernel.org" 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 C6491B216E9 for ; Thu, 4 Apr 2024 13:03:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FDCB8664B; Thu, 4 Apr 2024 13:03:55 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57A3A2E401 for ; Thu, 4 Apr 2024 13:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235835; cv=none; b=m9rUmj627YtpGp9/ZyhNTiO0ojXVK5ynKxIWH10z5dq2xesQ3b+b1nqaxqNqUCvUvnZRt6GzPP5nbHfQWRiWblWW3DjCHoV6EvhP7Fpk/KGJhcoaa4Z+3nSUKKAdxSJ/hypg+s/qVM0IM3+aNacLr0f+0vfXBS9hfAJpn/NlenY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235835; c=relaxed/simple; bh=5+LOEPoEn2zJj6/I5/Os2seFzvs9spi2YA7tp20xc0Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bAqn01qMUt6D5EAARiY2EjFxB5zKIsm9Xl/apCeQ1w5GCukTVvECmoEOK5gapYK/D/LxLu4A1ptYluk8ulzcmGx6+YNjP6lE+v90litxCPRjnnVPJDq0ldKH8sJdaGpRZDGpkhTPeGoW3YpnHloMslAw9YXAPYo/RbeH/u9z4i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [141.14.220.34] (g34.guest.molgen.mpg.de [141.14.220.34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id CC36961E5FE05; Thu, 4 Apr 2024 15:03:30 +0200 (CEST) Message-ID: Date: Thu, 4 Apr 2024 15:03:30 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird 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, luiz.dentz@gmail.com, sarveshwar.bajaj@nxp.com References: <20240404114054.4987-1-mahesh.talewad@nxp.com> <20240404114054.4987-2-mahesh.talewad@nxp.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240404114054.4987-2-mahesh.talewad@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Mahesh, Thank you for sending version 2. Am 04.04.24 um 13:40 schrieb Mahesh Talewad: > - 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. > > 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*/ Please add spaces after /* and before */. > { "AdvMonAllowlistScanDuration", > &btd_opts.defaults.le.advmon_allowlist_scan_duration, > sizeof(btd_opts.defaults.le.advmon_allowlist_scan_duration), Kind regards, Paul