summaryrefslogtreecommitdiffstats
path: root/include/hci.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-16 21:22:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-16 21:22:47 +0000
commit44f113d701858c5c502b30873b5a0375140eb211 (patch)
tree8a09ab82f2e744b2ebe03d78898974cd81548ff6 /include/hci.h
parent8ce8108e712e40e1b9530c96f7ff6cbb32b5cb8b (diff)
Add extended inquiry definitions
Diffstat (limited to 'include/hci.h')
-rw-r--r--include/hci.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/hci.h b/include/hci.h
index c9de094d..3b977033 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -901,6 +901,25 @@ typedef struct {
} __attribute__ ((packed)) write_afh_mode_rp;
#define WRITE_AFH_MODE_RP_SIZE 1
+#define OCF_READ_EXT_INQUIRY_RESPONSE 0x0051
+typedef struct {
+ uint8_t status;
+ uint8_t fec;
+ uint8_t data[240];
+} __attribute__ ((packed)) read_ext_inquiry_response_rp;
+#define READ_EXT_INQUIRY_RESPONSE_RP_SIZE 242
+
+#define OCF_WRITE_EXT_INQUIRY_RESPONSE 0x0052
+typedef struct {
+ uint8_t fec;
+ uint8_t data[240];
+} __attribute__ ((packed)) write_ext_inquiry_response_cp;
+#define WRITE_EXT_INQUIRY_RESPONSE_CP_SIZE 241
+typedef struct {
+ uint8_t status;
+} __attribute__ ((packed)) write_ext_inquiry_response_rp;
+#define WRITE_EXT_INQUIRY_RESPONSE_RP_SIZE 1
+
/* Informational Parameters */
#define OGF_INFO_PARAM 0x04
@@ -1316,6 +1335,18 @@ typedef struct {
} __attribute__ ((packed)) evt_sync_conn_changed;
#define EVT_SYNC_CONN_CHANGED_SIZE 9
+#define EVT_EXTENDED_INQUIRY_RESULT 0x2F
+typedef struct {
+ bdaddr_t bdaddr;
+ uint8_t pscan_rep_mode;
+ uint8_t pscan_period_mode;
+ uint8_t dev_class[3];
+ uint16_t clock_offset;
+ int8_t rssi;
+ uint8_t data[240];
+} __attribute__ ((packed)) extended_inquiry_info;
+#define EXTENDED_INQUIRY_INFO 254
+
#define EVT_TESTING 0xFE
#define EVT_VENDOR 0xFF