summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-09-18 00:37:04 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-09-18 00:37:04 +0000
commit96cd06b189af2a09bde5d752552f58fd495d5646 (patch)
tree0ac3c90702c0e73261766ac220787bcf9ea657b8
parent8a3e9d619f548c665569e8c835ed82313db3759b (diff)
resurrect hci_remote_name()
-rw-r--r--include/hci_lib.h1
-rw-r--r--src/hci.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/hci_lib.h b/include/hci_lib.h
index 685eb413..8f17a8dd 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -68,6 +68,7 @@ int hci_devid(char *str);
int hci_local_name(int dd, int len, char *name, int to);
int hci_read_local_name(int dd, int len, char *name, int to);
int hci_write_local_name(int dd, char *name, int to);
+int hci_remote_name(int dd, bdaddr_t *ba, int len, char *name, int to);
int hci_read_remote_name(int dd, bdaddr_t *ba, int len, char *name, int to);
int hci_read_remote_features(int dd, uint16_t handle, uint8_t *features, int to);
int hci_read_remote_version(int dd, uint16_t handle, struct hci_version *ver, int to);
diff --git a/src/hci.c b/src/hci.c
index a9d3268d..af0ffd65 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -801,6 +801,11 @@ int hci_write_local_name(int dd, char *name, int to)
return 0;
}
+int hci_remote_name(int dd, bdaddr_t *ba, int len, char *name, int to)
+{
+ return hci_read_remote_name(dd, ba, len, name, to);
+}
+
int hci_read_remote_name(int dd, bdaddr_t *ba, int len, char *name, int to)
{
evt_remote_name_req_complete rn;