Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753578AbdDMMW3 (ORCPT ); Thu, 13 Apr 2017 08:22:29 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35379 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbdDMMW0 (ORCPT ); Thu, 13 Apr 2017 08:22:26 -0400 From: "Felipe F. Tonello" To: linux-bluetooth@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Subject: [PATCH v5 BlueZ 0/4] Connection Update improvements Date: Thu, 13 Apr 2017 13:21:59 +0100 Message-Id: <20170413122203.4247-1-eu@felipetonello.com> X-Mailer: git-send-email 2.12.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1581 Lines: 41 These changes implements compliant Bluetooth support for any possible way to update a connection parameter. Missing functionality is required to be implemented in user-space, which this patchset allows it. Changes from v4: * Handle Slave Connection Interval Range AD in kernel instead of user-space * Removed new MGMT command, it is unnecessary since it was only supposed to be used for the Slave Connection Interval Range support, which now has been implemented in the kernel. Changes from v3: * Remove role check in refactored function * Added handler for Connection Parameter Update Response * Use Update Request when updating the connection parameters in slave * Fix MGMT command name to ADD instead of UPDATE Changes from v2: * Added new MGMT command * Roll back to first socket option implementation, details are on the patch iself. Changes from v1: * Use simpler user-space API * Added refactor function Felipe F. Tonello (4): Bluetooth: L2CAP: Refactor L2CAP_CONN_PARAM_UPDATE_REQ into a function Bluetooth: L2CAP: Add handler for Connection Parameter Update Response Bluetooth: L2CAP: Add BT_LE_CONN_PARAM socket option Bluetooth: Handle Slave Connection Interval Range AD include/net/bluetooth/bluetooth.h | 8 +++ include/net/bluetooth/l2cap.h | 5 ++ net/bluetooth/l2cap_core.c | 78 +++++++++++++++++++++++---- net/bluetooth/l2cap_sock.c | 110 ++++++++++++++++++++++++++++++++++++++ net/bluetooth/mgmt.c | 53 ++++++++++++++++++ 5 files changed, 243 insertions(+), 11 deletions(-) -- 2.12.2