blob: 05faefabec23dba4d4d69a82ce324afc9230f5fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ac,v 1.1.1.1.10.1 2012/02/15 09:17:17 plunky Exp $
--- lib/hci.h.orig 2011-12-22 00:18:58.000000000 +0000
+++ lib/hci.h
@@ -39,6 +39,7 @@ extern "C" {
#define HCI_MAX_EVENT_SIZE 260
#define HCI_MAX_FRAME_SIZE (HCI_MAX_ACL_SIZE + 4)
+#if 0
/* HCI dev events */
#define HCI_DEV_REG 1
#define HCI_DEV_UNREG 2
@@ -107,6 +108,7 @@ enum {
#define HCIUNBLOCKADDR _IOW('H', 231, int)
#define HCIINQUIRY _IOR('H', 240, int)
+#endif
#ifndef __NO_HCI_DEFS
@@ -2252,6 +2254,7 @@ typedef struct {
#endif /* _NO_HCI_DEFS */
+#if 0
/* HCI Socket options */
#define HCI_DATA_DIR 1
#define HCI_FILTER 2
@@ -2363,6 +2366,12 @@ struct hci_inquiry_req {
uint8_t num_rsp;
};
#define IREQ_CACHE_FLUSH 0x0001
+#else
+#define HCI_CMSG_DIR SCM_HCI_DIRECTION
+#define HCI_CMSG_TSTAMP SCM_TIMESTAMP
+#define HCI_DEV_NONE NULL
+#define HCI_DATA_DIR SO_HCI_DIRECTION
+#endif
#ifdef __cplusplus
}
|