Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4314287ybl; Tue, 20 Aug 2019 10:02:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqycvjIVdp4thAkKqawm5T6ujK29DGg5U4QQUyX/hAZUT9FOZEgD2QKnOQ5ZiNkhtfxy7Dwl X-Received: by 2002:a65:6401:: with SMTP id a1mr25522295pgv.42.1566320538748; Tue, 20 Aug 2019 10:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566320538; cv=none; d=google.com; s=arc-20160816; b=icA4/V5i/yGDrUi2cXPvOANwru8FecKauyP9hW+BILn1HKnFgmd4zbBiH6IuPtZtVs 1MMDuyg5uCQA5pOFJ4+L3diBfAyJ18/c7iwYhUptnAoVWHzXUt7lOJYftTcaPpLPzoLm dVEOobmx3vpwe9Xi+swiZb+mBk39PCkVBeft4/FwXq4766+1uwNo4tjj/ZOkc48NVGOD +tK7Z7OYb9k959kQtYdtu1Xq0QnEKZvAEE/nGI3HkZMKLAQlQfaK5Z/9xgC/vVXwHKZz bVL8ysayPmJpBtRrEOaa0Q6SSPVrUPRqDVBKrAxEGyFmJ0eP2yvviqjsjA66xHF/r6Kd AoKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:cc:to:reply-to:dkim-signature; bh=aS5PNUy2MHt/9aSHzx1Jx8fCt54+FF9VE9gI0rGoi3w=; b=gbCjd8YTzWOow+K10qqwL5PNq4Tk3I22U5MWbN6W6UnEZZ7gv1LEq/VM3n80bv00tk ywABL4SUrEoNL+6QCLdk3Oie0c9UTTtaB9Zwx2SaCG/QzkeNsTWtAFl9lQsdBIzzLe7b 8is+jOtXLIWJWbow0AV0BxlmlGLubC/e8m+EptT5ff3jnp2OkoiP9Q7j/+e6vfLsoEmg Lmq7uDOOk+gcTU/KT8VE2TyXY6dMIeF4Wico4mIib6v0yaiNin2BOGJxt4KpbsnRwgsg gZhMSSSkM+gVecWchwLRwcuXvWuWoGI4buPt5EbtOkGAe4mp4PqG2ZrsAryGCfrpn5NI Z6Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JfU8br0I; 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 h31si12376285pgb.67.2019.08.20.10.01.47; Tue, 20 Aug 2019 10:02:18 -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=JfU8br0I; 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 S1726663AbfHTRBp (ORCPT + 99 others); Tue, 20 Aug 2019 13:01:45 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41435 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfHTRBo (ORCPT ); Tue, 20 Aug 2019 13:01:44 -0400 Received: by mail-io1-f67.google.com with SMTP id j5so13655788ioj.8 for ; Tue, 20 Aug 2019 10:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=aS5PNUy2MHt/9aSHzx1Jx8fCt54+FF9VE9gI0rGoi3w=; b=JfU8br0IKMAtBeZqIK5B5m9NCInQmFgbbCsttTtM8wd+pzXKy/lRf8kHRV0wjrX6Q7 eUC08SnBAlFmo03Ij//nargupChAJPBUXzv5gubGHWNZYLNF0WixPHzZpIo59wwPtkPb IJC3gurnLYmiNeH28auktMrXl+bq2Qv7Pa8Fdvnx9OuWqgIuULXDoTypyRgxDuCmjsdc qRunJ5KTX5mSIpFaudBxiYC9X4Cm5IL3OADaARHCEzAgL2vpxL/g/Tru4z+NFPTidEJo GUIN4MWDWVq9aCFbo8BYFbyT29V9FKitssLTmvXxQ/VT04U7fEs1+YzUaAaJWctw7qzI y88w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:to:cc:from:subject:message-id:date :user-agent:mime-version:content-transfer-encoding:content-language; bh=aS5PNUy2MHt/9aSHzx1Jx8fCt54+FF9VE9gI0rGoi3w=; b=sU4aa2BJpjB7NxLykOIRJKHkMkvUa9MzAV/WlquMD/b56VsghbB4VWdtDjuyYPt2Mq P/QUKaWZa+n+oFGuWZlVLzQENS0QBkuGCq4BjFxKI35oRanTYU76qHqAgiQKkDIgN6zi hyutP+2JVCWC6BBHzEAClbcToXnrC4+3skTeUjHhg9Ed7AL8ZAYDyM68UtWoTdEE5i22 eg2ZMjySWp6ZNF6GKLUxsKJy7OVRilx1/XpcBSj8vVt5PwhEglhMeWM34vbZ6hwN3FZA 4w2qJxT/YN6buPrceuiUV3R4R9zV8J0CH+sfa2+B9+Vvpv7qQ5eHny7eDyL8tNYDrzaX 2b/g== X-Gm-Message-State: APjAAAUINFTejPpw/NqKmJFrqmgYLW3aBLb58DQ8Wwdx314is05R4xKW 7WpMBDmVdG3sl2VTw6+UeDmS1iW+3oQ= X-Received: by 2002:a02:495:: with SMTP id 143mr4735961jab.94.1566320503947; Tue, 20 Aug 2019 10:01:43 -0700 (PDT) Received: from [10.1.1.187] ([8.39.228.178]) by smtp.gmail.com with ESMTPSA id v13sm13909880ioq.13.2019.08.20.10.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 10:01:42 -0700 (PDT) Reply-To: Carey Sonsino To: Marcel Holtmann , Johan Hedberg Cc: Andreas Kemnade , Jamie Mccrae , "linux-bluetooth@vger.kernel.org" From: Carey Sonsino Subject: [PATCH 1/1] bluetooth: update default BLE connection interval bounds Message-ID: <1c707bb9-999b-7ca3-3c91-7b183dacfdd5@gmail.com> Date: Tue, 20 Aug 2019 11:01:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Update the default BLE connection interval min/max bounds to the full range of permitted values (6-3200, corresponding to 7.25-4000ms). 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. 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. Fixes c49a8682fc5d: (validate BLE connection interval updates) Signed-off-by: Carey Sonsino --- 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 = 0x0800;      hdev->le_scan_interval = 0x0060;      hdev->le_scan_window = 0x0030; -    hdev->le_conn_min_interval = 0x0018; -    hdev->le_conn_max_interval = 0x0028; +    hdev->le_conn_min_interval = 0x0006; +    hdev->le_conn_max_interval = 0x0c80;      hdev->le_conn_latency = 0x0000;      hdev->le_supv_timeout = 0x002a;      hdev->le_def_tx_len = 0x001b;