From 726a7fca00cb86d9a23466b7bc446be882f51b06 Mon Sep 17 00:00:00 2001 From: emax Date: Tue, 10 Aug 2004 00:38:50 +0000 Subject: Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8) --- sys/netgraph/bluetooth/include/ng_hci.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'sys/netgraph/bluetooth/include') diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h index ba7796f..a304d04 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 */ -- cgit v1.1