summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-02-22 11:42:03 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-02-22 11:42:03 +0000
commit1ec0481800a50aa14afe0513f69b4c7c04d5962a (patch)
treec8d632e97e175c8f9639c18bd1812164cdc37e2b /include
parentdb01d7596aa2ba2e40df5d3c7ef9b7cd0489ecad (diff)
Support pscan_rep_mode for remote name request
Diffstat (limited to 'include')
-rw-r--r--include/hci.h6
-rw-r--r--include/hci_lib.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/include/hci.h b/include/hci.h
index 4ffa34fc..b651e22d 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -395,6 +395,12 @@ typedef struct {
} __attribute__ ((packed)) remote_name_req_cp;
#define REMOTE_NAME_REQ_CP_SIZE 10
+#define OCF_REMOTE_NAME_REQ_CANCEL 0x001A
+typedef struct {
+ bdaddr_t bdaddr;
+} __attribute__ ((packed)) remote_name_req_cancel_cp;
+#define REMOTE_NAME_REQ_CANCEL_CP_SIZE 6
+
#define OCF_READ_REMOTE_FEATURES 0x001B
typedef struct {
uint16_t handle;
diff --git a/include/hci_lib.h b/include/hci_lib.h
index d140444a..b1ab43cd 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -69,7 +69,8 @@ int hci_devid(const char *str);
int hci_read_local_name(int dd, int len, char *name, int to);
int hci_write_local_name(int dd, const char *name, int to);
int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to);
-int hci_read_remote_name_with_clock_offset(int dd, const bdaddr_t *bdaddr, uint16_t clkoffset, int len, char *name, int to);
+int hci_read_remote_name_with_clock_offset(int dd, const bdaddr_t *bdaddr, uint8_t pscan_rep_mode, uint16_t clkoffset, int len, char *name, int to);
+int hci_read_remote_name_cancel(int dd, const bdaddr_t *bdaddr, 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);
int hci_read_clock_offset(int dd, uint16_t handle, uint16_t *clkoffset, int to);