summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/hci_lib.h3
-rw-r--r--src/hci.c10
2 files changed, 13 insertions, 0 deletions
diff --git a/include/hci_lib.h b/include/hci_lib.h
index 3c44bd8a..f6259f51 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -97,6 +97,9 @@ int hci_read_link_quality(int dd, uint16_t handle, uint8_t *link_quality, int to
int hci_read_rssi(int dd, uint16_t handle, int8_t *rssi, int to);
int hci_read_afh_map(int dd, uint16_t handle, uint8_t *mode, uint8_t *map, int to);
+int hci_local_name(int dd, int len, char *name, int to);
+int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to);
+
int hci_for_each_dev(int flag, int(*func)(int s, int dev_id, long arg), long arg);
int hci_get_route(bdaddr_t *bdaddr);
diff --git a/src/hci.c b/src/hci.c
index 8e0b7938..87f4874b 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -1619,3 +1619,13 @@ int hci_read_afh_map(int dd, uint16_t handle, uint8_t *mode, uint8_t *map, int t
memcpy(map, rp.map, 10);
return 0;
}
+
+int hci_local_name(int dd, int len, char *name, int to)
+{
+ return hci_read_local_name(dd, len, name, to);
+}
+
+int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to)
+{
+ return hci_read_remote_name(dd, bdaddr, len, name, to);
+}