summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Crane <steve.crane@rococosoft.com>2002-08-21 16:38:15 +0000
committerStephen Crane <steve.crane@rococosoft.com>2002-08-21 16:38:15 +0000
commit803bf105508009f7efc87276a539dda244527690 (patch)
tree6a2dfa70768b0d06bdb52461e59c0823ad160c15 /include
parent63a52518621efce1ec40afb05b8b698e4d6b9b2f (diff)
implement hci_{read, write}_current_iac_lap()
Diffstat (limited to 'include')
-rw-r--r--include/hci.h16
-rw-r--r--include/hci_lib.h2
2 files changed, 18 insertions, 0 deletions
diff --git a/include/hci.h b/include/hci.h
index 90d148f0..e12352b4 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -329,6 +329,22 @@ typedef struct {
} __attribute__ ((packed)) host_buffer_size_cp;
#define HOST_BUFFER_SIZE_CP_SIZE 7
+#define MAX_IAC_LAP 0x40
+#define OCF_READ_CURRENT_IAC_LAP 0x0039
+typedef struct {
+ uint8_t status;
+ uint8_t num_current_iac;
+ uint8_t lap[3][MAX_IAC_LAP];
+} __attribute__ ((packed)) read_current_iac_lap_rp;
+#define READ_CURRENT_IAC_LAP_RP_SIZE 2+3*MAX_IAC_LAP
+
+#define OCF_WRITE_CURRENT_IAC_LAP 0x003A
+typedef struct {
+ uint8_t num_current_iac;
+ uint8_t lap[3][MAX_IAC_LAP];
+} __attribute__ ((packed)) write_current_iac_lap_cp;
+#define WRITE_CURRENT_IAC_LAP_CP_SIZE 1+3*MAX_IAC_LAP
+
/* Link Control */
#define OGF_LINK_CTL 0x01
#define OCF_CREATE_CONN 0x0005
diff --git a/include/hci_lib.h b/include/hci_lib.h
index b988de5f..afa2fb51 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -70,6 +70,8 @@ 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_local_version(int dd, struct hci_version *ver, int to);
int hci_class_of_dev(int dd, uint8_t *class, int to);
+int hci_read_current_iac_lap(int dd, uint8_t *num_iac, uint8_t *lap, int to);
+int hci_write_current_iac_lap(int dd, uint8_t num_iac, uint8_t *lap, 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);