summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorh.sandeep <h.sandeep@samsung.com>2016-11-15 16:38:58 +0530
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:53:31 +0900
commitd0e66637e6bb0c6bef60af86389515ec55f0b61d (patch)
treedf1fed154bad300b14aee4df67ca8d48072c0755 /include
parent4905f405a5119a25a7e85be423153b671c86b016 (diff)
Bluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution
RPA resolution support of peer device to be checked before starting directed advertising. This patch load the resolution support info of device and check before starting directed advertising. Change-Id: Ia1e7b2ae1ef9d5e12877d96759cb9089b52c20b7 Signed-off-by: paras.kumar <paras.kumar@samsung.com> Signed-off-by: h.sandeep <h.sandeep@samsung.com> [Fix coding style and adjust commit-msg] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h5
-rw-r--r--include/net/bluetooth/mgmt_tizen.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index f9d117c1bf14..fe6eb86fba90 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -133,6 +133,9 @@ struct smp_irk {
bdaddr_t bdaddr;
u8 addr_type;
u8 val[16];
+#ifdef TIZEN_BT
+ u8 rpa_res_support;
+#endif
};
struct link_key {
@@ -1071,6 +1074,8 @@ int hci_get_conn_list(void __user *arg);
int hci_get_conn_info(struct hci_dev *hdev, void __user *arg);
int hci_get_auth_info(struct hci_dev *hdev, void __user *arg);
#ifdef TIZEN_BT
+int hci_set_rpa_res_support(struct hci_dev *hdev, bdaddr_t *bdaddr,
+ u8 addr_type, u8 enabled);
u32 get_link_mode(struct hci_conn *conn);
#endif
int hci_inquiry(void __user *arg);
diff --git a/include/net/bluetooth/mgmt_tizen.h b/include/net/bluetooth/mgmt_tizen.h
index a2ec784da31a..3fe7c7d4ea8b 100644
--- a/include/net/bluetooth/mgmt_tizen.h
+++ b/include/net/bluetooth/mgmt_tizen.h
@@ -228,6 +228,13 @@ struct mgmt_cp_set_irk {
} __packed;
#define MGMT_SET_IRK_SIZE 16
+#define MGMT_OP_SET_DEV_RPA_RES_SUPPORT (TIZEN_OP_CODE_BASE + 0x1a)
+struct mgmt_cp_set_dev_rpa_res_support {
+ struct mgmt_addr_info addr;
+ __u8 res_support;
+} __packed;
+#define MGMT_OP_SET_DEV_RPA_RES_SUPPORT_SIZE 8
+
/* EVENTS */
/* For device name update changes */