aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/include/ng_hci.h
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
commitb25877a3842d40cc3bfd27a2f64c6e19939b080f (patch)
treeb3b996a19c1c82854f6b5567deebe9aa4f110815 /sys/netgraph/bluetooth/include/ng_hci.h
parent0f4ad91810d3a800a74c2f370a32e980563419c2 (diff)
downloadsrc-b25877a3842d40cc3bfd27a2f64c6e19939b080f.tar.gz
src-b25877a3842d40cc3bfd27a2f64c6e19939b080f.zip
Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8)
Notes
Notes: svn path=/head/; revision=133415
Diffstat (limited to 'sys/netgraph/bluetooth/include/ng_hci.h')
-rw-r--r--sys/netgraph/bluetooth/include/ng_hci.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h
index ba7796f390db..a304d04e0363 100644
--- a/sys/netgraph/bluetooth/include/ng_hci.h
+++ b/sys/netgraph/bluetooth/include/ng_hci.h
@@ -1436,15 +1436,18 @@ typedef struct {
#define NG_HCI_EVENT_INQUIRY_RESULT 0x02
typedef struct {
u_int8_t num_responses; /* number of responses */
-/* these are repeated "num_responses" times
- bdaddr_t bdaddr; --- unit address(es)
- u_int8_t page_scan_rep_mode; --- page scan rep. mode(s)
- u_int8_t page_scan_period_mode; --- page scan period mode(s)
- u_int8_t page_scan_mode; --- page scan mode(s)
- u_int8_t uclass[NG_HCI_CLASS_SIZE]; --- unit class(es)
- u_int16_t clock_offset; --- clock offset(s) */
+/* ng_hci_inquiry_response[num_responses] -- see below */
} __attribute__ ((packed)) ng_hci_inquiry_result_ep;
+typedef struct {
+ bdaddr_t bdaddr; /* unit address */
+ u_int8_t page_scan_rep_mode; /* page scan rep. mode */
+ u_int8_t page_scan_period_mode; /* page scan period mode */
+ u_int8_t page_scan_mode; /* page scan mode */
+ u_int8_t class[NG_HCI_CLASS_SIZE]; /* unit class */
+ u_int16_t clock_offset; /* clock offset */
+} __attribute__ ((packed)) ng_hci_inquiry_response;
+
#define NG_HCI_EVENT_CON_COMPL 0x03
typedef struct {
u_int8_t status; /* 0x00 - success */