Return-Path: From: "Felipe F. Tonello" To: linux-bluetooth@vger.kernel.org Subject: [RFC][PATCH v4 BlueZ 0/4] Connection Update improvements Date: Tue, 14 Mar 2017 18:30:54 +0000 Message-Id: <20170314183058.25555-1-eu@felipetonello.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: These changes should improve applications who want to update the connection parameters for both master and slave devices. Note: Connection Parameters Request Link Layer Control Procedure (>=4.1) is not supported in BlueZ yet. I will work on this later as this RFC is approved. 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 patch #1 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: mgmt: Added new MGMT_OP_ADD_CONN_PARAM command include/net/bluetooth/bluetooth.h | 8 +++ include/net/bluetooth/l2cap.h | 5 ++ include/net/bluetooth/mgmt.h | 10 ++++ net/bluetooth/l2cap_core.c | 76 +++++++++++++++++++++++---- net/bluetooth/l2cap_sock.c | 106 ++++++++++++++++++++++++++++++++++++++ net/bluetooth/mgmt.c | 103 +++++++++++++++++++++++------------- 6 files changed, 261 insertions(+), 47 deletions(-) -- 2.12.0