summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-01-13 22:37:58 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-01-13 22:37:58 +0000
commit3d400b430ca82b915570be699d98b10648c593ac (patch)
tree7a5a5166ca809d0a3e137a589858342078bc6159 /include
parent32c8a21b7da2397da204015f4bf45983226cbed9 (diff)
Add link supervision timeout functions
Diffstat (limited to 'include')
-rw-r--r--include/hci.h5
-rw-r--r--include/hci_lib.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/hci.h b/include/hci.h
index 54bb8849..a5435cd1 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -677,6 +677,11 @@ typedef struct {
uint16_t link_sup_to;
} __attribute__ ((packed)) write_link_supervision_timeout_cp;
#define WRITE_LINK_SUPERVISION_TIMEOUT_CP_SIZE 4
+typedef struct {
+ uint8_t status;
+ uint16_t handle;
+} __attribute__ ((packed)) write_link_supervision_timeout_rp;
+#define WRITE_LINK_SUPERVISION_TIMEOUT_RP_SIZE 3
#define MAX_IAC_LAP 0x40
#define OCF_READ_CURRENT_IAC_LAP 0x0039
diff --git a/include/hci_lib.h b/include/hci_lib.h
index 969db1f2..2edc9e0e 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -91,6 +91,8 @@ int hci_read_inquiry_mode(int dd, uint8_t *mode, int to);
int hci_write_inquiry_mode(int dd, uint8_t mode, int to);
int hci_read_afh_mode(int dd, uint8_t *mode, int to);
int hci_write_afh_mode(int dd, uint8_t mode, int to);
+int hci_read_link_supervision_timeout(int dd, uint16_t handle, uint16_t *timeout, int to);
+int hci_write_link_supervision_timeout(int dd, uint16_t handle, uint16_t timeout, int to);
int hci_set_afh_classification(int dd, uint8_t *map, int to);
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);