summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-09-08 10:10:03 +0530
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:53:13 +0900
commita8e0957dc0167bd23dac581f44d91d4ed62c4b0b (patch)
tree045c843b3b8c7308ff56c64909199ed2dc2bc0c3 /include
parented07651f659a019040780870fbe3ddf08e9f97bd (diff)
Bluetooth: Add LE device found MGMT event
This patch adds new MGMT event for LE device discovery and allows the handling of all advertisement packets in platform. Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h4
-rw-r--r--include/net/bluetooth/mgmt_tizen.h12
2 files changed, 16 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index fcd6cb407314..c6425b5dc793 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1517,6 +1517,10 @@ int mgmt_le_conn_update_failed(struct hci_dev *hdev, bdaddr_t *bdaddr,
u8 link_type, u8 addr_type, u8 status);
void mgmt_hardware_error(struct hci_dev *hdev, u8 err_code);
void mgmt_tx_timeout_error(struct hci_dev *hdev);
+/* Pass adv type in the le device found */
+void mgmt_le_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
+ u8 addr_type, u8 *dev_class, s8 rssi, u32 flags, u8 *eir,
+ u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len, u8 adv_type);
#endif
u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency,
diff --git a/include/net/bluetooth/mgmt_tizen.h b/include/net/bluetooth/mgmt_tizen.h
index fd5a9fe3f390..a46003f11c4b 100644
--- a/include/net/bluetooth/mgmt_tizen.h
+++ b/include/net/bluetooth/mgmt_tizen.h
@@ -211,4 +211,16 @@ struct mgmt_ev_conn_update_failed {
} __packed;
/* Add LE connection update Events */
+/* For LE device found event */
+#define MGMT_EV_LE_DEVICE_FOUND (TIZEN_EV_BASE + 0x0a)
+struct mgmt_ev_le_device_found {
+ struct mgmt_addr_info addr;
+ __s8 rssi;
+ __le32 flags;
+ __s8 adv_type;
+ __le16 eir_len;
+ __u8 eir[0];
+} __packed;
+/* LE device found event */
+
#endif /* __MGMT_TIZEN_H */