aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-09-15 08:17:27 -0400
committerDavid S. Miller <davem@davemloft.net>2019-09-15 08:17:27 -0400
commitaa2eaa8c272a3211dec07ce9c6c863a7e355c10e (patch)
tree8454a23d36b2ff36133c276ee0ba80eabc00850e /net/bluetooth/l2cap_core.c
parenta3d3c74da49c65fc63a937fa559186b0e16adca3 (diff)
parent1609d7604b847a9820e63393d1a3b6cac7286d40 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor overlapping changes in the btusb and ixgbe drivers. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c9
1 files changed, 1 insertions, 8 deletions
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,
5305 5305
5306 memset(&rsp, 0, sizeof(rsp)); 5306 memset(&rsp, 0, sizeof(rsp));
5307 5307
5308 if (min < hcon->le_conn_min_interval || 5308 err = hci_check_conn_params(min, max, latency, to_multiplier);
5309 max > hcon->le_conn_max_interval) {
5310 BT_DBG("requested connection interval exceeds current bounds.");
5311 err = -EINVAL;
5312 } else {
5313 err = hci_check_conn_params(min, max, latency, to_multiplier);
5314 }
5315
5316 if (err) 5309 if (err)
5317 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_REJECTED); 5310 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_REJECTED);
5318 else 5311 else