Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1242919ybl; Fri, 23 Aug 2019 16:03:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzihkWTj/hh24uk/R9E99PURLJwCWzL4eUfvmzgFE5J7SiS6DYjdhAhT8eph6xmiC7Lpczy X-Received: by 2002:a62:8246:: with SMTP id w67mr8180496pfd.226.1566601417665; Fri, 23 Aug 2019 16:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601417; cv=none; d=google.com; s=arc-20160816; b=cQ3G+tjq3TspihUju8atVB3NXCaT8/TBWkQOiFp5mWlru5I17n9c528jH615TWdCBu Ah1dJJ96FAT3to6rcJYTrOx9g3ZYnBxJzvyfqsjE4O7uyo/mjzSKhtEj63hoQVYZPW9z aNdecQ4KWPgqgodyIG8OnXTwSgEqN7d3ykYXlaeowtZnpmM3XffRdo1r2cjIH6AETl7u wFJsA19AfMwLYAARROpFkKdYN1xzxJSULstaABbExoqC+N2gXtPKK00SFLMuXkAdZXIb 3jdUe66AJZd8iN4FzGn2yPyOugBWFr5R25SlIzQzLVQXToRRB5iczVr/hgkvFsFTuB1H F6qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Gonkm/8q51fc4SdRxd8PQpe0Xki37dFxGWur6VybDyg=; b=BcotwVofJxnWx5ICI2gLtDsTQR9I+EQcPoBcfBmrQVL4dj1e6GAbV/jP1Gwm1h4z1A M4czTrYxCwjfar2/yuGQ8uXj1mbtvwnRtL2HjiXEAUmyH+6m3PQeHAFomgAbQqYtQ2NB ZD7Xjfr0YG7RBwc6WxJsHntI8vN0aI6/nk3w+Ecx+Ob6l0kJKIemMXx6N7x4YZuoek8+ VUUXDLPbEtE5arV6WhEq4uBaatgTyc/c0P3uruycqm9MORRJ+vs7WPVtJF3S8bXCSEIt rrmI+R+FBuk2cUAipNkdDqN2fENDqfXS5FVgk4naShBzBjp79i1UDTRK33qtZ0wGuh8g zqtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ikMLIto/"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si3725734pli.374.2019.08.23.16.03.22; Fri, 23 Aug 2019 16:03:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ikMLIto/"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389254AbfHWKw6 (ORCPT + 99 others); Fri, 23 Aug 2019 06:52:58 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33934 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731280AbfHWKw6 (ORCPT ); Fri, 23 Aug 2019 06:52:58 -0400 Received: by mail-pl1-f196.google.com with SMTP id d3so5396094plr.1 for ; Fri, 23 Aug 2019 03:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Gonkm/8q51fc4SdRxd8PQpe0Xki37dFxGWur6VybDyg=; b=ikMLIto/m/wgbVe+UaDxGzgDL+uRulcFkZBXkragmjxZA+3lybLmjyJrLhBHPyUJAE aecrNS6Q0Gn8epCK/qrV1InWZmYJuxz1/OvuH3nJP04jUoyD+AIkVB7tcp24MK/OsMZm bFvxWD/heusl9cmtBnL50LMnO1KvN1td0vD0G2HdSUKshg5nJVKAgHdaH3Jug4yro4nN ddE7arql9utMeDe4ljqgAlNCtdDgKazwGCwK1oKSLrCkGkKreMY19ZHzs04EhVk1/92q Oq+aCKDu2zzIQAnMBAqCfARTqO/2Ys5QSMYuWj4h2+qm+mUKtrN+6OwNU1tUr+BPYmZX gphg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Gonkm/8q51fc4SdRxd8PQpe0Xki37dFxGWur6VybDyg=; b=gS1dQf8GgBYKymhaEHOuLkhB3CH0qVnmkKYIWTVm2Dhojufsc1nhDiqdcE/7hr2oIL d44G1CkCeMeiXIhTQ6O6PnS3l1pfHh7NwBA1pA0yFiake/uHosI1yCdcXgL3jCwKQVJw CHt4QdF1no7nc0Aodv/pkeC0RnA8IKDsV0RI0OZ/mavu6lsCoS+fvEbetvVQ7QHvvOwp +CwDM2+TJxHFlBmptezdgStyOYWg27LPLx+COXXHSij1qGEAIjTmBeFEY9BbM7romEzj PZamvOivLLHKROfWsNrqHOzXJLcZGbxaBXUlQvRYhU2OacXdrqXmJ39EShABIsT9+YlP hqGA== X-Gm-Message-State: APjAAAU6fQiauBRvlFn3tVIoatDGIjUdzg9uHn9HKEhSAy6nbV/K8too HPL+Mq+J0c9P7V8DrmGzNZA= X-Received: by 2002:a17:902:20cc:: with SMTP id v12mr3783868plg.188.1566557577542; Fri, 23 Aug 2019 03:52:57 -0700 (PDT) Received: from jhedberg-mac01.fi.intel.com ([134.134.139.82]) by smtp.gmail.com with ESMTPSA id v145sm2548410pfc.31.2019.08.23.03.52.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 03:52:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH 1/1] bluetooth: update default BLE connection interval bounds From: Johan Hedberg In-Reply-To: <1c707bb9-999b-7ca3-3c91-7b183dacfdd5@gmail.com> Date: Fri, 23 Aug 2019 13:52:49 +0300 Cc: Andreas Kemnade , Jamie Mccrae , "linux-bluetooth@vger.kernel.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1c707bb9-999b-7ca3-3c91-7b183dacfdd5@gmail.com> To: Carey Sonsino , Marcel Holtmann X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On 20 Aug 2019, at 20.01, Carey Sonsino wrote: >=20 > Update the default BLE connection interval min/max bounds to the full = range of permitted values (6-3200, corresponding to 7.25-4000ms). >=20 > Commit c49a8682fc5d298d44e8d911f4fa14690ea9485e introduced a bounds = check on connection interval update requests, but the default min/max = values were left at 24-40 (30-50ms) which caused problems for devices = that want to negotiate connection intervals outside of those bounds. >=20 > Setting the default min/max connection interval to the full allowable = range in the bluetooth specification restores the default Linux behavior = of allowing remote devices to negotiate their desired connection = interval, while still permitting the system administrator to later = narrow the range. >=20 > Fixes c49a8682fc5d: (validate BLE connection interval updates) >=20 > Signed-off-by: Carey Sonsino >=20 > --- >=20 > diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c > index 04bc79359a17..f4f2f712c527 100644 > --- a/net/bluetooth/hci_core.c > +++ b/net/bluetooth/hci_core.c > @@ -3181,8 +3181,8 @@ struct hci_dev *hci_alloc_dev(void) > hdev->le_adv_max_interval =3D 0x0800; > hdev->le_scan_interval =3D 0x0060; > hdev->le_scan_window =3D 0x0030; > - hdev->le_conn_min_interval =3D 0x0018; > - hdev->le_conn_max_interval =3D 0x0028; > + hdev->le_conn_min_interval =3D 0x0006; > + hdev->le_conn_max_interval =3D 0x0c80; > hdev->le_conn_latency =3D 0x0000; > hdev->le_supv_timeout =3D 0x002a; > hdev->le_def_tx_len =3D 0x001b; This looks fine to me, except the commit message line lengths need = fixing (max 72-74 or so). It seems we=E2=80=99d want this through the = Bluetooth stable tree, i.e. still into the 5.3-rc series, correct? = Marcel, do you agree? Johan