summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-09-16 12:54:31 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2024-11-12 13:03:14 +0900
commitfe6b6115cfc7d9c69a2b8d8d180e9f20f118848b (patch)
tree3b341788bf4be055bed3a12096f5deb9d230a4ab /include
parentbd1cb3005697b4aa50ba7840951b1a43106cf120 (diff)
downloadlinux-rpi-fe6b6115cfc7d9c69a2b8d8d180e9f20f118848b.tar.gz
linux-rpi-fe6b6115cfc7d9c69a2b8d8d180e9f20f118848b.tar.bz2
linux-rpi-fe6b6115cfc7d9c69a2b8d8d180e9f20f118848b.zip
Bluetooth: Read host suggested default le data length
This patch adds MGMT command and code for supporting reading default le data length value set at the controller. Change-Id: I6194023bf41ef1fe5606f41fdb0776f6ec84cb4f Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com> Signed-off-by: Amit Purwar <amit.purwar@samsung.com> Signed-off-by: Wootak Jung <wootak.jung@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h2
-rw-r--r--include/net/bluetooth/mgmt_tizen.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 0ebbe173b620..e9e1af0a9e64 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -2433,6 +2433,8 @@ void mgmt_le_read_maximum_data_length_complete(struct hci_dev *hdev,
u8 status);
void mgmt_le_write_host_suggested_data_length_complete(struct hci_dev *hdev,
u8 status);
+void mgmt_le_read_host_suggested_data_length_complete(struct hci_dev *hdev,
+ u8 status);
#endif
int hci_abort_conn(struct hci_conn *conn, u8 reason);
diff --git a/include/net/bluetooth/mgmt_tizen.h b/include/net/bluetooth/mgmt_tizen.h
index 0f36ecdcad2b..2d11d5bf4f0b 100644
--- a/include/net/bluetooth/mgmt_tizen.h
+++ b/include/net/bluetooth/mgmt_tizen.h
@@ -201,6 +201,13 @@ struct mgmt_cp_le_write_host_suggested_data_length {
} __packed;
#define MGMT_LE_WRITE_HOST_SUGGESTED_DATA_LENGTH_SIZE 4
+#define MGMT_OP_LE_READ_HOST_SUGGESTED_DATA_LENGTH (TIZEN_OP_CODE_BASE + 0x17)
+struct mgmt_rp_le_read_host_suggested_data_length {
+ __le16 def_tx_octets;
+ __le16 def_tx_time;
+} __packed;
+#define MGMT_LE_READ_HOST_SUGGESTED_DATA_LENGTH_SIZE 0
+
/* EVENTS */
/* For device name update changes */