diff options
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 9 |
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 |