From 96cd06b189af2a09bde5d752552f58fd495d5646 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Wed, 18 Sep 2002 00:37:04 +0000 Subject: resurrect hci_remote_name() --- include/hci_lib.h | 1 + src/hci.c | 5 +++++ 2 files changed, 6 insertions(+) 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; -- cgit