Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp950497lqh; Fri, 29 Mar 2024 02:13:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAQs2qlInNwNl788CZlfxObr8+sUrWvlSnYBtv3Mzv1CuSd6ujXHZh7thA86fl3tnL64R1dHatjkW7KVkQwnnqKu5KNQkcYi2woIyHvQ== X-Google-Smtp-Source: AGHT+IFQXSu3Kvi5bIqt4xvsm7jk4mF0gCRigTFQKcW5cAOQHpShFKg88kP1nShN6af/trPTV0j0 X-Received: by 2002:a05:6a20:841a:b0:1a3:5b82:a88b with SMTP id c26-20020a056a20841a00b001a35b82a88bmr6493962pzd.18.1711703610936; Fri, 29 Mar 2024 02:13:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711703610; cv=pass; d=google.com; s=arc-20160816; b=BWY/uaK3Nu+G1r3Nb1f/7C0IIa4mP8MBPVBUAo7JXtsRa2IYDF7SaV3Yua2SJlHu9H j8QzUhc2wlkp6tIdsp3lBSIhVx5LjeJMeoeISKK1TnePkFjBEzXFw4lRyGyO6Fh4HeNN 5wzhR3MaE9mYOI4XT34ZOEMFkXJnrMciBi87aJsYWZ7Sdk4WSCyEg2pGFFcGs8nTX4zF eRgfo+Jj6kqbxGHlfihu3KTRiZL/R3awo71zATr7tyT40b4sqykTO+5EwY6mNODSA6ic Ur5IIMQpzua/PbF5ERAocoadv1NkY3AcXOIHLWHV+kWZ3wSQY6GUYbBJG1nkrsOdbFLp iBxg== 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=qaWDnhoX2BG/AxWDFMq9LvaazGYxoRp1LbDEH1e72HQ=; fh=XKHMgccEUBGclv3v4+1GtOaUxY/omtjac49bAONT/dc=; b=zWTACFSnD+mYHnEphFrKLklmWAT/ALpQq2flXvDFjZSBrh/rnkLAUqJYqHW02s0jxc Ft1Fxw5VIHORn3vyoSpnBUUYIsisTP6tlwko/77J7B4qatNtuqw6kIw/CHb/unbkZSUd 0syaso9YSOnP1AV/NPRDT0bBPouo/f0I52Afki8FNeC39WQ3Moa/g63rVb84CZDuKLKm CsSeB7qHaJ4/3eD0hLux25iuWo6qUuHu0zVrXeMCq9T1zBcEttyGVVKBmvYeZRwsWAOc U2r7phgE0e+GhHdBdCdVxQ+B6m88NFNfgGi5zbB8M0S01m1NKhuxHX5p6EJjAMTuHdVl 1LMA==; 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-2939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2939-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 g2-20020a639f02000000b005dc3e73597dsi3110467pge.293.2024.03.29.02.13.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 02:13:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2939-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-2939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2939-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 11B87B21610 for ; Fri, 29 Mar 2024 09:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1318639FCE; Fri, 29 Mar 2024 09:13:17 +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 153FE3CF7D for ; Fri, 29 Mar 2024 09:13:11 +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=1711703596; cv=none; b=uLB+YP4WNioHgeO2cuvnHdz+3B6aEK7X0Q968onQRo42SzxX6/SOhjGVvtdJkB9nwz+8DLhgZGHloXMNrIRHxvbaubPBY86ST4u89vIjW5gt9zyF4GY7yomaf1fX0mFRGruZDuq5INh4GnKKdhiPbUxJVD6WTdXToZ9b9NkeOJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711703596; c=relaxed/simple; bh=8pBZqcXYozg+NDDMS9/9XZJw12sGkJSfubs4bVyvQuw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mr3ImV5sLdGGUFgotk6j0vowWdXTx9OE7tiUtsQS5O79et2sqVQ4P680NZNADeOLxoDYmo7BfyeuThbTm4TZfW6AS13GYmxDsq6ZNthIWl4zXA1RAJejz0ytUyo4iJq/NuXmt3FgzvOi00Uq2LKEBwZNJkl4jpS6eGVhAFGe+HM= 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 [192.168.0.2] (ip5f5af607.dynamic.kabel-deutschland.de [95.90.246.7]) (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 7956261E5FE05; Fri, 29 Mar 2024 10:13:02 +0100 (CET) Message-ID: Date: Fri, 29 Mar 2024 10:13:01 +0100 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 v1 1/1] Autoconnecttimeout max value increased to 20000 msecs from 16384 msecs To: Mahesh Talewad Cc: linux-bluetooth@vger.kernel.org, devyani.godbole@nxp.com, luiz.dentz@gmail.com, sarveshwar.bajaj@nxp.com References: <20240329063534.56892-1-mahesh.talewad@nxp.com> <20240329063534.56892-2-mahesh.talewad@nxp.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240329063534.56892-2-mahesh.talewad@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Mahesh, Thank you for you patch. Am 29.03.24 um 07:35 schrieb Mahesh Talewad: > - In implementation Autoconnecttimeout max value is 16384 msecs. > Increased this Autoconnecttimeout max value to 20000 msecs. Please do *not* format it as a list item. I’d also rewrite the commit message summary/title to use imperative mood: > Increase autoconnect timeout max from 16.384 s to 20 s Please also add, why this change is necessary. > 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 b1339c230..8ce72badc 100644 > --- a/src/main.c > +++ b/src/main.c > @@ -656,7 +656,7 @@ static void parse_le_config(GKeyFile *config) > &btd_opts.defaults.le.autoconnect_timeout, > sizeof(btd_opts.defaults.le.autoconnect_timeout), > 0x0001, > - 0x4000}, > + 0x4E20}, Please add a comment with the decimal value. (Or why not use a decimal value?) Also, isn’t 2 * 16 + 15 * 256 + 4 * 16^3 = 20256 Why not just use 0x5000 (= 20480) to make it easier to calculate? > { "AdvMonAllowlistScanDuration", > &btd_opts.defaults.le.advmon_allowlist_scan_duration, > sizeof(btd_opts.defaults.le.advmon_allowlist_scan_duration),