Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1024281ybe; Wed, 4 Sep 2019 11:18:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7zdMboWeFiB0tO1z7mZ+WHyOysfPEivqwdhD/KWJxEoMnNs2McI6ZPIk8ZnH72ri6E7l7 X-Received: by 2002:a63:9e43:: with SMTP id r3mr36967762pgo.148.1567621121750; Wed, 04 Sep 2019 11:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621121; cv=none; d=google.com; s=arc-20160816; b=0ag7y7taUJMMHd56L4cHs3Bu1cfgV4evuuO+UN6AkedJDZQuJlXkvmtDqk5TDxcmWg 1GjH9Y4QShL9cX14wP1dCXQx5w2lo+NhP1goqAvwai9aAsL6MLPcDfRic/FnlwYqJ4AU Qp+RLi6ku8IpPRzZ1OKYxU2fbR7F+M0oCbsfXAdaBkr6OHZdF4oAWXp4ZAjyxDQxrFIB +/dx68Y+HOdBLJb7XM6eSgP9xezP5wCloT3V4ZO5I8nGBVmWMFT8e1xRTULeaX1WkyeB XiRgAVUi+GhW6H85O/m5f3ubHJbpGMbxu5muOzJgctBOcgc9VvEbe4jsXEYErsh/Rmas C6iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=ZcnSXNKREp0g2roRuOSfHOVbikx+Q19b9GExpSld404=; b=Em+VNkj/9Zoc5BpiOkAPVpg3ehoyyipnq4kH65Rv8YWcTGKCN8Z6ZdJFST4Ew4cEYA srq5kPZyC/hOhDKQztYZBxwgaR33TXsQb25AWcjd/8NihklEQJ6KK8g1TiTgxxytaqAx XXDBjnjaNRioGCWWzvmRGT0HULiOEXloR+WOZJYKLg1UNGTmebIA13/mta7Q+CkjfSN8 5uIbEhy1PY1RHbVPUaNLXOmoeVoCxVZ0YGGZG886AP1oJtwOr4lQtf7gRaLaXXw6OEwC qiLtMvdyCVOMCMtggOOHub97aDhOvNiL1e21WKaYDvtSQxx4Cb9NLRvrgpVyEjqBkaan VdmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i187si21043371pfe.21.2019.09.04.11.18.06; Wed, 04 Sep 2019 11:18:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389998AbfIDSNM (ORCPT + 99 others); Wed, 4 Sep 2019 14:13:12 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:46682 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389844AbfIDSNM (ORCPT ); Wed, 4 Sep 2019 14:13:12 -0400 Received: from localhost.localdomain (p4FEFC197.dip0.t-ipconnect.de [79.239.193.151]) by mail.holtmann.org (Postfix) with ESMTPSA id 61ED7CECC5 for ; Wed, 4 Sep 2019 20:21:58 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] Revert "Bluetooth: validate BLE connection interval updates" Date: Wed, 4 Sep 2019 20:13:08 +0200 Message-Id: <20190904181308.14948-1-marcel@holtmann.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This reverts commit c49a8682fc5d298d44e8d911f4fa14690ea9485e. There are devices which require low connection intervals for usable operation including keyboards and mice. Forcing a static connection interval for these types of devices has an impact in latency and causes a regression. Signed-off-by: Marcel Holtmann --- net/bluetooth/hci_event.c | 5 ----- net/bluetooth/l2cap_core.c | 9 +-------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index cdb00c2ef242..c1d3a303d97f 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -5660,11 +5660,6 @@ static void hci_le_remote_conn_param_req_evt(struct hci_dev *hdev, return send_conn_param_neg_reply(hdev, handle, HCI_ERROR_UNKNOWN_CONN_ID); - if (min < hcon->le_conn_min_interval || - max > hcon->le_conn_max_interval) - return send_conn_param_neg_reply(hdev, handle, - HCI_ERROR_INVALID_LL_PARAMS); - if (hci_check_conn_params(min, max, latency, timeout)) return send_conn_param_neg_reply(hdev, handle, HCI_ERROR_INVALID_LL_PARAMS); diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index dfc1edb168b7..da7fdbdf9c41 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -5305,14 +5305,7 @@ static inline int l2cap_conn_param_update_req(struct l2cap_conn *conn, memset(&rsp, 0, sizeof(rsp)); - if (min < hcon->le_conn_min_interval || - max > hcon->le_conn_max_interval) { - BT_DBG("requested connection interval exceeds current bounds."); - err = -EINVAL; - } else { - err = hci_check_conn_params(min, max, latency, to_multiplier); - } - + err = hci_check_conn_params(min, max, latency, to_multiplier); if (err) rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_REJECTED); else -- 2.21.0