summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-08-25 12:13:09 +0530
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:53:09 +0900
commit6ab62b2d93ab9335c77ee982b416c2c4f2229499 (patch)
tree0ceb11a69a81df092d9d9c26b67586c27ec52a81 /include
parent7154f70eda81d9097a2e3eb13a5cc92fe3f194f0 (diff)
Bluetooth: Set Manufacturer data feature
Added new MGMT command to set the manufacturer data in the BR/EDR packet. Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135 Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h6
-rw-r--r--include/net/bluetooth/mgmt_tizen.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 43c14918ccd7..23406b9114e5 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -185,6 +185,10 @@ struct amp_assoc {
#define HCI_MAX_PAGES 3
+#ifdef TIZEN_BT
+#define HCI_MAX_EIR_MANUFACTURER_DATA_LENGTH 100
+#endif
+
struct hci_dev {
struct list_head list;
struct mutex lock;
@@ -386,6 +390,8 @@ struct hci_dev {
#ifdef TIZEN_BT
__u8 adv_filter_policy;
__u8 adv_type;
+ __u8 manufacturer_len;
+ __u8 manufacturer_data[HCI_MAX_EIR_MANUFACTURER_DATA_LENGTH];
#endif
int (*open)(struct hci_dev *hdev);
diff --git a/include/net/bluetooth/mgmt_tizen.h b/include/net/bluetooth/mgmt_tizen.h
index c912a69d29cd..4f24c42132b2 100644
--- a/include/net/bluetooth/mgmt_tizen.h
+++ b/include/net/bluetooth/mgmt_tizen.h
@@ -135,6 +135,14 @@ struct mgmt_cp_le_conn_update {
} __packed;
/* Add LE connection parameter update procedure */
+/* For Set Manufacturer Data */
+#define MGMT_OP_SET_MANUFACTURER_DATA (TIZEN_OP_CODE_BASE + 0x0e)
+struct mgmt_cp_set_manufacturer_data {
+ __u8 data[100];
+} __packed;
+#define MGMT_SET_MANUFACTURER_DATA_SIZE 100
+/* Set Manufacturer Data */
+
/* EVENTS */
/* For device name update changes */