blob: 217fa3f8c35e66daa00649ba181fa4de394d43e7 (
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.3 2012/03/19 12:09:00 plunky Exp $
--- lib/hci.h.orig 2012-02-29 18:23:20.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
@@ -2262,6 +2264,7 @@ typedef struct {
#endif /* _NO_HCI_DEFS */
+#if 0
/* HCI Socket options */
#define HCI_DATA_DIR 1
#define HCI_FILTER 2
@@ -2374,6 +2377,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
}
|