Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1400319lqt; Wed, 20 Mar 2024 02:51:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7HAd2EWcrFhoDCs+od+k0enQRK4oR6QE9aWBOToBj7cyp02iFX/vKO1WIo43BEAvlF1SOgTFYk5SEv2BcAVHd0a69qiBhvYxbxkG5VQ== X-Google-Smtp-Source: AGHT+IHUXI9mlTWR/UuCV3c+MSgIemsbV0DJDnd+f7pecd+2hbb4r/AEI3qiSPbtYOqtZXHJd22O X-Received: by 2002:a0c:f048:0:b0:690:dab5:93cf with SMTP id b8-20020a0cf048000000b00690dab593cfmr16115844qvl.65.1710928282559; Wed, 20 Mar 2024 02:51:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710928282; cv=pass; d=google.com; s=arc-20160816; b=ZIeHWWyaB4HWadYtGI3pjl3akGGkgz9O3GbstuIvqwCGGo7RD//F39lr8coR7ZiYPZ IK4KwhKdc6a6yImXULHlHChpJkJQrqBKuamZ+cqAqXJymwG+MnmyuBIknN8XgiTgV2kt uEZVTo52iqMc9bq1AKYPabw/xJdFMOYoGu4gKxzW04MPEoV8fMfuCWtXlItGfOE7fSPA hecQ5SMGEcEwjNZl6DRcOwW/brZRJzKP2aN1iZ9S5AO9TCQyJ7r/QCgJmbrvRTdK4Q16 aYJHfP+ldHKu26LozIMXHcAGUiRKbp0/zg8AexqMYQg1Tq5MyaFQNDH0/A4Kw5qgU4s1 mlqw== 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=dKLww8Ci/BbD3UE0UuQPCCAX6/UZsF54eeur5DBeP08=; fh=0NWajra1XRwuR6CVQ6ZxSOe23Cl+apSkegTmEj8fiT0=; b=Su+XRiYA6w9eBSmYSgCLE6DOAmPsnoetks5aQsT3jLWQNmWFO/8WQVDuDHFYHIJy2F zF9FZhNx8G4YwiM1UU7bnHUiVu9hYLFdHDjeAW7nfjSeHxntWx0AFlQBBKg6e3AZL/3F cYL9jMdJLAdIZoAa06u0RYUfVeTKhCSHvBv4ZRnoiBPvu/KRu6EXx/2nC7oxoqoMyX7x GdJCqBHJNNSlqzNy4B/dUzrjoJAKxBbKkE6GMS99DrFNGoeb6J1EAF62Udl/oE/4WYaJ gkylIlkdcHbyIFMOsG3X0R/xPvWJepLCMgYxqHxSxOdCJ+ecLXjXJ8dRDk/t1B4D9ucY w+oQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SkR59QDh; 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-2660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jq15-20020ad45fcf000000b00690cb71c174si12263326qvb.419.2024.03.20.02.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SkR59QDh; 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-2660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2660-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 499751C21C45 for ; Wed, 20 Mar 2024 09:51:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5CBC3C068; Wed, 20 Mar 2024 09:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SkR59QDh" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 570953C467 for ; Wed, 20 Mar 2024 09:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710928264; cv=none; b=J2yW8Avb58ecAQzVd2osdmZnv6JshR4nEyDU0Eo+6Wqwc5afvzdoUeI8a1SHwAbXkr6T6vzsteCSPU8J92UFqdvb9KhdGq76XZmEKeA4JvWfHSer4Kpt1IZZRmLKTkxZAVQk+uGMywuy8RQc9dn6Gr23pNGsJBYkQ+bNCCLiiGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710928264; c=relaxed/simple; bh=/pEYGv5J9LGh3P5S3DoAnhj6soFr3oajjduf3+o6HLw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Ktivf5p3ubslruB79pSHhuQ9q70ZQyCgdf+sau9fassTij+RTeuEpAoY/ZKCA3yuDzXeEN+Xl9OWB7M3dzHaEVZD4SDNMV43t6uj2q58XZCP9ogsdsG/rUAc3SOIENNg/wCTI83CpjZk99FgwM3/EvALXLaQhXUWXpBqJ7tANzY= 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=SkR59QDh; arc=none smtp.client-ip=209.85.208.179 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-f179.google.com with SMTP id 38308e7fff4ca-2d46dd5f222so74725011fa.1 for ; Wed, 20 Mar 2024 02:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710928260; x=1711533060; 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=dKLww8Ci/BbD3UE0UuQPCCAX6/UZsF54eeur5DBeP08=; b=SkR59QDhva0lzZeGvw7Q5E6bSVcSnVFQUFHzleMFRN7+AQ7GZQxhoaJaAk5tlo1NE7 Um2mdwjgu4SH84l6TJEVblpFDJ7QEGTTwqWpyKWUcZbLUP3Jy639d5zqSRQy3n3/pEKt XgrqSXgYTBL8jIDGakQaulSkL5eOfZliXosCcb30/PGTSiDUqGa/O4YtURuUXzd/af2j tpAj2t07FGBefYZgAilIJi7R0Vf0jag1hhS+4RGLRh8K7ynLL9AKs31gu9uRMAhixJmD 6RTFOnYDUG1J+q41WI821eoUunwpRuiAuQrblzJN4Mba0UesTRK5KDJxcB0p2gcQOWfh 2T/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710928260; x=1711533060; 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=dKLww8Ci/BbD3UE0UuQPCCAX6/UZsF54eeur5DBeP08=; b=G+lqc6+Gm0ebmAX74r9732JR3wArhb31JKwHmjcvTAeaaeorZ2ZZFrjZTxmHFJ3Em3 5hGNGfrYCKpikdxyxLnIa2EV/8s2gkOms4XvpDCkOIw+hqpUCXZ8GsL72zRvXivpgpnt 2M8hDt92RBp/V3u54lOeCTHGeZaGocX3oQ2J0icEFnkMnNlaeCYO1TOT3zgxK8pQ6wK1 mNYJ8ZQ3E3g8ljiUwcRdrGLlOTBaHy+QiL2zqdCTuDXls7LVGfsJj7Bi3Yy8WtLTGkWh MHqzz5GOlIDcHvCSuPkpVJ9/OD9vqGT7ZJHwjlR78r06kEIHNAGkmseNtoRRE22+d6Q6 rBqQ== X-Gm-Message-State: AOJu0Yy9da7nuCdsbwV5AL8nQhMlUXzbDihpAqCWoY/eiEFO4/4k0rUw D789I+BRKbC3QEucloKAqRv3RxDccmhUyHyfCFHRA9PMGTU/EF0MDsORFkL1ntm9fJ9o9Qhu1mM enPVB3GK0aj/w+w54aw1EEgch0nvv6D13pGPBzg== X-Received: by 2002:a2e:9008:0:b0:2d4:5bc6:23a9 with SMTP id h8-20020a2e9008000000b002d45bc623a9mr11278067ljg.33.1710928260132; Wed, 20 Mar 2024 02:51:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318123712.9729-1-mahesh.talewad@nxp.com> <20240318123712.9729-2-mahesh.talewad@nxp.com> In-Reply-To: <20240318123712.9729-2-mahesh.talewad@nxp.com> From: Luiz Augusto von Dentz Date: Wed, 20 Mar 2024 09:50:47 +0000 Message-ID: Subject: Re: [PATCH BlueZ v1 1/1] LE Create Connection command timeout increased to 20 secs from 4 secs 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 Mon, Mar 18, 2024 at 12:37=E2=80=AFPM Mahesh Talewad wrote: > > - As per specs LE Connection timeout is 20 secs but in implementation, > it was 4 secs. Hence increased this timeout to 20 Secs. > > Signed-off-by: Mahesh Talewad > --- > net/bluetooth/hci_event.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c > index 4ae224824012..06fe5f6b9546 100644 > --- a/net/bluetooth/hci_event.c > +++ b/net/bluetooth/hci_event.c > @@ -6067,7 +6067,7 @@ static struct hci_conn *check_pending_le_conn(struc= t hci_dev *hdev, > } > > conn =3D hci_connect_le(hdev, addr, addr_type, addr_resolved, > - BT_SECURITY_LOW, hdev->def_le_autoconnect_t= imeout, > + BT_SECURITY_LOW, HCI_LE_CONN_TIMEOUT, > HCI_ROLE_MASTER); > if (!IS_ERR(conn)) { > /* If HCI_AUTO_CONN_EXPLICIT is set, conn is already owne= d > -- > 2.34.1 Afaik this is on purpose since it is the autoconnect procedure, rather than user initiate connection, so are you running into a problem if the timeout is different? --=20 Luiz Augusto von Dentz