Lines Matching +full:0 +full:x0000000080000000
86 #define NG_HCI_SPEC_V10 0x00 /* v1.0 */
87 #define NG_HCI_SPEC_V11 0x01 /* v1.1 */
88 /* 0x02 - 0xFF - reserved for future use */
91 /* ------------------- byte 0 --------------------*/
92 #define NG_HCI_LMP_3SLOT 0x01
93 #define NG_HCI_LMP_5SLOT 0x02
94 #define NG_HCI_LMP_ENCRYPTION 0x04
95 #define NG_HCI_LMP_SLOT_OFFSET 0x08
96 #define NG_HCI_LMP_TIMING_ACCURACY 0x10
97 #define NG_HCI_LMP_SWITCH 0x20
98 #define NG_HCI_LMP_HOLD_MODE 0x40
99 #define NG_HCI_LMP_SNIFF_MODE 0x80
101 #define NG_HCI_LMP_PARK_MODE 0x01
102 #define NG_HCI_LMP_RSSI 0x02
103 #define NG_HCI_LMP_CHANNEL_QUALITY 0x04
104 #define NG_HCI_LMP_SCO_LINK 0x08
105 #define NG_HCI_LMP_HV2_PKT 0x10
106 #define NG_HCI_LMP_HV3_PKT 0x20
107 #define NG_HCI_LMP_ULAW_LOG 0x40
108 #define NG_HCI_LMP_ALAW_LOG 0x80
110 #define NG_HCI_LMP_CVSD 0x01
111 #define NG_HCI_LMP_PAGING_SCHEME 0x02
112 #define NG_HCI_LMP_POWER_CONTROL 0x04
113 #define NG_HCI_LMP_TRANSPARENT_SCO 0x08
114 #define NG_HCI_LMP_FLOW_CONTROL_LAG0 0x10
115 #define NG_HCI_LMP_FLOW_CONTROL_LAG1 0x20
116 #define NG_HCI_LMP_FLOW_CONTROL_LAG2 0x40
118 #define NG_HCI_LMP_SECURE_SIMPLE_PAIRING 0x08
121 #define NG_HCI_LINK_SCO 0x00 /* Voice */
122 #define NG_HCI_LINK_ACL 0x01 /* Data */
123 #define NG_HCI_LINK_LE_PUBLIC 0x02 /* LE Public*/
124 #define NG_HCI_LINK_LE_RANDOM 0x03 /* LE Random*/
125 /* 0x02 - 0xFF - reserved for future use */
128 /* 0x0001 - 0x0004 - reserved for future use */
129 #define NG_HCI_PKT_DM1 0x0008 /* ACL link */
130 #define NG_HCI_PKT_DH1 0x0010 /* ACL link */
131 #define NG_HCI_PKT_HV1 0x0020 /* SCO link */
132 #define NG_HCI_PKT_HV2 0x0040 /* SCO link */
133 #define NG_HCI_PKT_HV3 0x0080 /* SCO link */
134 /* 0x0100 - 0x0200 - reserved for future use */
135 #define NG_HCI_PKT_DM3 0x0400 /* ACL link */
136 #define NG_HCI_PKT_DH3 0x0800 /* ACL link */
137 /* 0x1000 - 0x2000 - reserved for future use */
138 #define NG_HCI_PKT_DM5 0x4000 /* ACL link */
139 #define NG_HCI_PKT_DH5 0x8000 /* ACL link */
149 #define NG_HCI_UNIT_MODE_ACTIVE 0x00
150 #define NG_HCI_UNIT_MODE_HOLD 0x01
151 #define NG_HCI_UNIT_MODE_SNIFF 0x02
152 #define NG_HCI_UNIT_MODE_PARK 0x03
153 /* 0x04 - 0xFF - reserved for future use */
156 #define NG_HCI_MANDATORY_PAGE_SCAN_MODE 0x00
157 #define NG_HCI_OPTIONAL_PAGE_SCAN_MODE1 0x01
158 #define NG_HCI_OPTIONAL_PAGE_SCAN_MODE2 0x02
159 #define NG_HCI_OPTIONAL_PAGE_SCAN_MODE3 0x03
160 /* 0x04 - 0xFF - reserved for future use */
163 #define NG_HCI_SCAN_REP_MODE0 0x00
164 #define NG_HCI_SCAN_REP_MODE1 0x01
165 #define NG_HCI_SCAN_REP_MODE2 0x02
166 /* 0x03 - 0xFF - reserved for future use */
169 #define NG_HCI_PAGE_SCAN_PERIOD_MODE0 0x00
170 #define NG_HCI_PAGE_SCAN_PERIOD_MODE1 0x01
171 #define NG_HCI_PAGE_SCAN_PERIOD_MODE2 0x02
172 /* 0x03 - 0xFF - reserved for future use */
175 #define NG_HCI_NO_SCAN_ENABLE 0x00
176 #define NG_HCI_INQUIRY_ENABLE_PAGE_DISABLE 0x01
177 #define NG_HCI_INQUIRY_DISABLE_PAGE_ENABLE 0x02
178 #define NG_HCI_INQUIRY_ENABLE_PAGE_ENABLE 0x03
179 /* 0x04 - 0xFF - reserved for future use */
182 #define NG_HCI_HOLD_MODE_NO_CHANGE 0x00
183 #define NG_HCI_HOLD_MODE_SUSPEND_PAGE_SCAN 0x01
184 #define NG_HCI_HOLD_MODE_SUSPEND_INQUIRY_SCAN 0x02
185 #define NG_HCI_HOLD_MODE_SUSPEND_PERIOD_INQUIRY 0x04
186 /* 0x08 - 0x80 - reserved for future use */
189 #define NG_HCI_ROLE_MASTER 0x00
190 #define NG_HCI_ROLE_SLAVE 0x01
191 /* 0x02 - 0xFF - reserved for future use */
194 #define NG_HCI_USE_SEMI_PERMANENT_LINK_KEYS 0x00
195 #define NG_HCI_USE_TEMPORARY_LINK_KEY 0x01
196 /* 0x02 - 0xFF - reserved for future use */
199 #define NG_HCI_PIN_TYPE_VARIABLE 0x00
200 #define NG_HCI_PIN_TYPE_FIXED 0x01
203 #define NG_HCI_LINK_KEY_TYPE_COMBINATION_KEY 0x00
204 #define NG_HCI_LINK_KEY_TYPE_LOCAL_UNIT_KEY 0x01
205 #define NG_HCI_LINK_KEY_TYPE_REMOTE_UNIT_KEY 0x02
206 /* 0x03 - 0xFF - reserved for future use */
209 #define NG_HCI_ENCRYPTION_MODE_NONE 0x00
210 #define NG_HCI_ENCRYPTION_MODE_P2P 0x01
211 #define NG_HCI_ENCRYPTION_MODE_ALL 0x02
212 /* 0x03 - 0xFF - reserved for future use */
215 #define NG_HCI_SERVICE_TYPE_NO_TRAFFIC 0x00
216 #define NG_HCI_SERVICE_TYPE_BEST_EFFORT 0x01
217 #define NG_HCI_SERVICE_TYPE_GUARANTEED 0x02
218 /* 0x03 - 0xFF - reserved for future use */
221 #define NG_HCI_LINK_POLICY_DISABLE_ALL_LM_MODES 0x0000
222 #define NG_HCI_LINK_POLICY_ENABLE_ROLE_SWITCH 0x0001 /* Master/Slave switch */
223 #define NG_HCI_LINK_POLICY_ENABLE_HOLD_MODE 0x0002
224 #define NG_HCI_LINK_POLICY_ENABLE_SNIFF_MODE 0x0004
225 #define NG_HCI_LINK_POLICY_ENABLE_PARK_MODE 0x0008
226 /* 0x0010 - 0x8000 - reserved for future use */
229 #define NG_HCI_EVMSK_DEFAULT 0x00001fffffffffff
230 #define NG_HCI_EVMSK_ALL 0x1fffffffffffffff
231 #define NG_HCI_EVMSK_NONE 0x0000000000000000
232 #define NG_HCI_EVMSK_INQUIRY_COMPL 0x0000000000000001
233 #define NG_HCI_EVMSK_INQUIRY_RESULT 0x0000000000000002
234 #define NG_HCI_EVMSK_CON_COMPL 0x0000000000000004
235 #define NG_HCI_EVMSK_CON_REQ 0x0000000000000008
236 #define NG_HCI_EVMSK_DISCON_COMPL 0x0000000000000010
237 #define NG_HCI_EVMSK_AUTH_COMPL 0x0000000000000020
238 #define NG_HCI_EVMSK_REMOTE_NAME_REQ_COMPL 0x0000000000000040
239 #define NG_HCI_EVMSK_ENCRYPTION_CHANGE 0x0000000000000080
240 #define NG_HCI_EVMSK_CHANGE_CON_LINK_KEY_COMPL 0x0000000000000100
241 #define NG_HCI_EVMSK_MASTER_LINK_KEY_COMPL 0x0000000000000200
242 #define NG_HCI_EVMSK_READ_REMOTE_FEATURES_COMPL 0x0000000000000400
243 #define NG_HCI_EVMSK_READ_REMOTE_VER_INFO_COMPL 0x0000000000000800
244 #define NG_HCI_EVMSK_QOS_SETUP_COMPL 0x0000000000001000
245 #define NG_HCI_EVMSK_COMMAND_COMPL 0x0000000000002000
246 #define NG_HCI_EVMSK_COMMAND_STATUS 0x0000000000004000
247 #define NG_HCI_EVMSK_HARDWARE_ERROR 0x0000000000008000
248 #define NG_HCI_EVMSK_FLUSH_OCCUR 0x0000000000010000
249 #define NG_HCI_EVMSK_ROLE_CHANGE 0x0000000000020000
250 #define NG_HCI_EVMSK_NUM_COMPL_PKTS 0x0000000000040000
251 #define NG_HCI_EVMSK_MODE_CHANGE 0x0000000000080000
252 #define NG_HCI_EVMSK_RETURN_LINK_KEYS 0x0000000000100000
253 #define NG_HCI_EVMSK_PIN_CODE_REQ 0x0000000000200000
254 #define NG_HCI_EVMSK_LINK_KEY_REQ 0x0000000000400000
255 #define NG_HCI_EVMSK_LINK_KEY_NOTIFICATION 0x0000000000800000
256 #define NG_HCI_EVMSK_LOOPBACK_COMMAND 0x0000000001000000
257 #define NG_HCI_EVMSK_DATA_BUFFER_OVERFLOW 0x0000000002000000
258 #define NG_HCI_EVMSK_MAX_SLOT_CHANGE 0x0000000004000000
259 #define NG_HCI_EVMSK_READ_CLOCK_OFFSET_COMLETE 0x0000000008000000
260 #define NG_HCI_EVMSK_CON_PKT_TYPE_CHANGED 0x0000000010000000
261 #define NG_HCI_EVMSK_QOS_VIOLATION 0x0000000020000000
262 #define NG_HCI_EVMSK_PAGE_SCAN_MODE_CHANGE 0x0000000040000000
263 #define NG_HCI_EVMSK_PAGE_SCAN_REP_MODE_CHANGE 0x0000000080000000
264 #define NG_HCI_EVMSK_FLOW_SPEC_COMPL 0x0000000100000000
265 #define NG_HCI_EVMSK_INQUIRY_RESULT_W_RSSI 0x0000000200000000
266 #define NG_HCI_EVMSK_READ_REM_EXT_FEAT_COMPL 0x0000000400000000
268 /* 0x0000000800000000 - 0x0000080000000000 - not in use */
270 #define NG_HCI_EVMSK_SYNC_CONN_COMPL 0x0000100000000000
271 #define NG_HCI_EVMSK_SYNC_CONN_CHANGED 0x0000200000000000
272 #define NG_HCI_EVMSK_SNIFF_SUBRATING 0x0000400000000000
273 #define NG_HCI_EVMSK_EXT_INQUIRY_RESULT 0x0000800000000000
274 #define NG_HCI_EVMSK_ENC_KEY_REFRESH_COMPL 0x0001000000000000
275 #define NG_HCI_EVMSK_IO_CAPABILITY_REQ 0x0002000000000000
276 #define NG_HCI_EVMSK_IO_CAPABILITY_RESP 0x0004000000000000
277 #define NG_HCI_EVMSK_USER_CONFIRMATION_REQ 0x0008000000000000
278 #define NG_HCI_EVMSK_USER_PASSKEY_REQ 0x0010000000000000
279 #define NG_HCI_EVMSK_REM_OOB_DATA_REQ 0x0020000000000000
280 #define NG_HCI_EVMSK_SIMPLE_PAIRING_COMPL 0x0040000000000000
281 #define NG_HCI_EVMSK_LINK_SUPERV_TO_CHANGED 0x0080000000000000
282 #define NG_HCI_EVMSK_ENH_FLUSH_COMPL 0x0100000000000000
283 #define NG_HCI_EVMSK_USER_PASSKEY_NOTIFICATION 0x0200000000000000
284 #define NG_HCI_EVMSK_KEYPRESS_NOTIFICATION 0x0400000000000000
285 #define NG_HCI_EVMSK_REM_HOST_SUPP_FEAT_NOTIFI 0x0800000000000000
286 #define NG_HCI_EVMSK_LE_META 0x1000000000000000
287 /* 0x1000000100000000 - 0x8000000000000000 - reserved for future use */
290 #define NG_HCI_LEEVMSK_ALL 0x000000003fffffff
291 #define NG_HCI_LEEVMSK_NONE 0x0000000000000000
292 #define NG_HCI_LEEVMSK_DEFAULT 0x000000000000001f
293 #define NG_HCI_LEEVMSK_CONN_COMPLETE 0x0000000000000001
294 #define NG_HCI_LEEVMSK_ADV_REP 0x0000000000000002
295 #define NG_HCI_LEEVMSK_CONN_UPDATE 0x0000000000000004
296 #define NG_HCI_LEEVMSK_READ_REM_FEAT_REQ 0x0000000000000008
297 #define NG_HCI_LEEVMSK_LONG_TERM_KEY_REQ 0x0000000000000010
298 #define NG_HCI_LEEVMSK_REM_CONN_PARAM_REQ 0x0000000000000020
299 #define NG_HCI_LEEVMSK_DATA_LENGTH_CHG 0x0000000000000040
300 #define NG_HCI_LEEVMSK_RD_LOC_P256_PK_COMPL 0x0000000000000080
301 #define NG_HCI_LEEVMSK_GEN_DHKEY_COMPL 0x0000000000000100
302 #define NG_HCI_LEEVMSK_ENH_CONN_COMPL 0x0000000000000200
303 #define NG_HCI_LEEVMSK_DIR_ADV_REP 0x0000000000000400
304 #define NG_HCI_LEEVMSK_PHY_UPD_COMPL 0x0000000000000800
305 #define NG_HCI_LEEVMSK_EXT_ADV_REP 0x0000000000001000
306 #define NG_HCI_LEEVMSK_PER_ADV_SYNC_EST 0x0000000000002000
307 #define NG_HCI_LEEVMSK_PER_ADV_REP 0x0000000000004000
308 #define NG_HCI_LEEVMSK_PER_ADV_SYNC_LOST 0x0000000000008000
309 #define NG_HCI_LEEVMSK_SCAN_TIMEOUT 0x0000000000010000
310 #define NG_HCI_LEEVMSK_ADV_SET_TERM 0x0000000000020000
311 #define NG_HCI_LEEVMSK_SCAN_REQ_RCVD 0x0000000000040000
312 #define NG_HCI_LEEVMSK_CHAN_SEL_ALGO 0x0000000000080000
313 #define NG_HCI_LEEVMSK_CONNLESS_IQ_REP 0x0000000000010000
314 #define NG_HCI_LEEVMSK_CONN_IQ_REP 0x0000000000020000
315 #define NG_HCI_LEEVMSK_CTE_REQ_FAILED 0x0000000000040000
316 #define NG_HCI_LEEVMSK_PER_ADV_SYN_TRF_RCVD 0x0000000000080000
317 #define NG_HCI_LEEVMSK_CIS_EST 0x0000000000100000
318 #define NG_HCI_LEEVMSK_CIS_REQ 0x0000000000200000
319 #define NG_HCI_LEEVMSK_CREATE_BIG_COMPL 0x0000000000400000
320 #define NG_HCI_LEEVMSK_TERM_BIG_COMPL 0x0000000000800000
321 #define NG_HCI_LEEVMSK_BIG_SYNC_EST 0x0000000001000000
322 #define NG_HCI_LEEVMSK_BIG_SYNC_LOST 0x0000000002000000
323 #define NG_HCI_LEEVMSK_REQ_PEER_SCA_COMPL 0x0000000004000000
324 #define NG_HCI_LEEVMSK_PATH_LOSS_THRESHOLD 0x0000000008000000
325 #define NG_HCI_LEEVMSK_TX_PWR_REP 0x0000000010000000
326 #define NG_HCI_LEEVMSK_BIGINFO_ADV_REP 0x0000000020000000
327 /* 0x0000000040000000 - 0x8000000000000000 - reserved for future use */
330 #define NG_HCI_FILTER_TYPE_NONE 0x00
331 #define NG_HCI_FILTER_TYPE_INQUIRY_RESULT 0x01
332 #define NG_HCI_FILTER_TYPE_CON_SETUP 0x02
333 /* 0x03 - 0xFF - reserved for future use */
336 #define NG_HCI_FILTER_COND_INQUIRY_NEW_UNIT 0x00
337 #define NG_HCI_FILTER_COND_INQUIRY_UNIT_CLASS 0x01
338 #define NG_HCI_FILTER_COND_INQUIRY_BDADDR 0x02
339 /* 0x03 - 0xFF - reserved for future use */
342 #define NG_HCI_FILTER_COND_CON_ANY_UNIT 0x00
343 #define NG_HCI_FILTER_COND_CON_UNIT_CLASS 0x01
344 #define NG_HCI_FILTER_COND_CON_BDADDR 0x02
345 /* 0x03 - 0xFF - reserved for future use */
348 #define NG_HCI_XMIT_LEVEL_CURRENT 0x00
349 #define NG_HCI_XMIT_LEVEL_MAXIMUM 0x01
350 /* 0x02 - 0xFF - reserved for future use */
353 #define NG_HCI_H2HC_FLOW_CONTROL_NONE 0x00
354 #define NG_HCI_H2HC_FLOW_CONTROL_ACL 0x01
355 #define NG_HCI_H2HC_FLOW_CONTROL_SCO 0x02
356 #define NG_HCI_H2HC_FLOW_CONTROL_BOTH 0x03 /* ACL and SCO */
357 /* 0x04 - 0xFF - reserved future use */
360 #define NG_HCI_COUNTRY_CODE_NAM_EUR_JP 0x00
361 #define NG_HCI_COUNTRY_CODE_FRANCE 0x01
362 /* 0x02 - 0xFF - reserved future use */
365 #define NG_HCI_LOOPBACK_NONE 0x00
366 #define NG_HCI_LOOPBACK_LOCAL 0x01
367 #define NG_HCI_LOOPBACK_REMOTE 0x02
368 /* 0x03 - 0xFF - reserved future use */
381 #define NG_HCI_OPCODE(gf,cf) ((((gf) & 0x3f) << 10) | ((cf) & 0x3ff))
382 #define NG_HCI_OCF(op) ((op) & 0x3ff)
383 #define NG_HCI_OGF(op) (((op) >> 10) & 0x3f)
390 #define NG_HCI_CON_HANDLE(h) ((h) & 0x0fff)
391 #define NG_HCI_PB_FLAG(h) (((h) & 0x3000) >> 12)
392 #define NG_HCI_BC_FLAG(h) (((h) & 0xc000) >> 14)
394 (((h) & 0x0fff) | (((pb) & 3) << 12) | (((bc) & 3) << 14))
397 #define NG_HCI_LE_PACKET_START 0x0
398 #define NG_HCI_PACKET_FRAGMENT 0x1
399 #define NG_HCI_PACKET_START 0x2
403 #define NG_HCI_POINT2POINT 0x0 /* only Host controller to Host */
404 #define NG_HCI_BROADCAST_ACTIVE 0x1 /* both directions */
405 #define NG_HCI_BROADCAST_PICONET 0x2 /* both directions */
409 #define NG_HCI_CMD_PKT 0x01
410 #define NG_HCI_CMD_PKT_SIZE 0xff /* without header */
412 u_int8_t type; /* MUST be 0x1 */
418 #define NG_HCI_ACL_DATA_PKT 0x02
419 #define NG_HCI_ACL_PKT_SIZE 0xffff /* without header */
421 u_int8_t type; /* MUST be 0x2 */
427 #define NG_HCI_SCO_DATA_PKT 0x03
428 #define NG_HCI_SCO_PKT_SIZE 0xff /* without header */
430 u_int8_t type; /* MUST be 0x3 */
436 #define NG_HCI_EVENT_PKT 0x04
437 #define NG_HCI_EVENT_PKT_SIZE 0xff /* without header */
439 u_int8_t type; /* MUST be 0x4 */
450 /* Any BD_ADDR. Note: This is actually 7 bytes (count '\0' terminator) */
455 u_int8_t status; /* 0x00 - success */
486 u_int8_t status; /* 0x00 - success */
503 u_int8_t status; /* 0x00 - accept connection */
531 u_int16_t status; /* 0x00 - success (only low byte) */
560 #define NG_HCI_UNIT_CONNECTED (1 << 0)
566 #define NG_HCI_CON_CLOSED 0 /* connection closed */
638 ((0xffff - sizeof(ng_hci_node_get_neighbor_cache_ep))/sizeof(ng_hci_node_neighbor_cache_entry_ep))
659 ((0xffff - sizeof(ng_hci_node_con_list_ep))/sizeof(ng_hci_node_con_ep))
695 #define NG_HCI_OGF_LINK_CONTROL 0x01 /* OpCode Group Field */
697 #define NG_HCI_OCF_INQUIRY 0x0001
705 #define NG_HCI_OCF_INQUIRY_CANCEL 0x0002
709 #define NG_HCI_OCF_PERIODIC_INQUIRY 0x0003
720 #define NG_HCI_OCF_EXIT_PERIODIC_INQUIRY 0x0004
724 #define NG_HCI_OCF_CREATE_CON 0x0005
731 u_int8_t accept_role_switch; /* accept role switch? 0x00 - no */
735 #define NG_HCI_OCF_DISCON 0x0006
742 #define NG_HCI_OCF_ADD_SCO_CON 0x0007
749 #define NG_HCI_OCF_ACCEPT_CON 0x0009
756 #define NG_HCI_OCF_REJECT_CON 0x000a
763 #define NG_HCI_OCF_LINK_KEY_REP 0x000b
770 u_int8_t status; /* 0x00 - success */
774 #define NG_HCI_OCF_LINK_KEY_NEG_REP 0x000c
780 u_int8_t status; /* 0x00 - success */
784 #define NG_HCI_OCF_PIN_CODE_REP 0x000d
792 u_int8_t status; /* 0x00 - success */
796 #define NG_HCI_OCF_PIN_CODE_NEG_REP 0x000e
802 u_int8_t status; /* 0x00 - success */
806 #define NG_HCI_OCF_CHANGE_CON_PKT_TYPE 0x000f
813 #define NG_HCI_OCF_AUTH_REQ 0x0011
819 #define NG_HCI_OCF_SET_CON_ENCRYPTION 0x0013
822 u_int8_t encryption_enable; /* 0x00 - disable, 0x01 - enable */
826 #define NG_HCI_OCF_CHANGE_CON_LINK_KEY 0x0015
832 #define NG_HCI_OCF_MASTER_LINK_KEY 0x0017
838 #define NG_HCI_OCF_REMOTE_NAME_REQ 0x0019
847 #define NG_HCI_OCF_READ_REMOTE_FEATURES 0x001b
853 #define NG_HCI_OCF_READ_REMOTE_VER_INFO 0x001d
859 #define NG_HCI_OCF_READ_CLOCK_OFFSET 0x001f
865 #define NG_HCI_IO_CAPABILITY_REQUEST_REPLY 0x002b
878 #define NG_HCI_USER_CONFIRMATION_REQUEST_REPLY 0x002c
888 #define NG_HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY 0x002d
898 #define NG_HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY 0x0034
915 #define NG_HCI_OGF_LINK_POLICY 0x02 /* OpCode Group Field */
917 #define NG_HCI_OCF_HOLD_MODE 0x0001
925 #define NG_HCI_OCF_SNIFF_MODE 0x0003
935 #define NG_HCI_OCF_EXIT_SNIFF_MODE 0x0004
941 #define NG_HCI_OCF_PARK_MODE 0x0005
949 #define NG_HCI_OCF_EXIT_PARK_MODE 0x0006
955 #define NG_HCI_OCF_QOS_SETUP 0x0007
967 #define NG_HCI_OCF_ROLE_DISCOVERY 0x0009
973 u_int8_t status; /* 0x00 - success */
978 #define NG_HCI_OCF_SWITCH_ROLE 0x000b
985 #define NG_HCI_OCF_READ_LINK_POLICY_SETTINGS 0x000c
991 u_int8_t status; /* 0x00 - success */
996 #define NG_HCI_OCF_WRITE_LINK_POLICY_SETTINGS 0x000d
1003 u_int8_t status; /* 0x00 - success */
1013 #define NG_HCI_OGF_HC_BASEBAND 0x03 /* OpCode Group Field */
1015 #define NG_HCI_OCF_SET_EVENT_MASK 0x0001
1021 #define NG_HCI_EVENT_MASK_DEFAULT 0x1fffffffffff
1022 #define NG_HCI_EVENT_MASK_LE 0x2000000000000000
1024 #define NG_HCI_OCF_RESET 0x0003
1028 #define NG_HCI_OCF_SET_EVENT_FILTER 0x0005
1032 u_int8_t condition[0]; /* conditions - variable size */
1037 #define NG_HCI_OCF_FLUSH 0x0008
1043 u_int8_t status; /* 0x00 - success */
1047 #define NG_HCI_OCF_READ_PIN_TYPE 0x0009
1050 u_int8_t status; /* 0x00 - success */
1054 #define NG_HCI_OCF_WRITE_PIN_TYPE 0x000a
1061 #define NG_HCI_OCF_CREATE_NEW_UNIT_KEY 0x000b
1065 #define NG_HCI_OCF_READ_STORED_LINK_KEY 0x000d
1068 u_int8_t read_all; /* read all keys? 0x01 - yes */
1072 u_int8_t status; /* 0x00 - success */
1077 #define NG_HCI_OCF_WRITE_STORED_LINK_KEY 0x0011
1086 u_int8_t status; /* 0x00 - success */
1090 #define NG_HCI_OCF_DELETE_STORED_LINK_KEY 0x0012
1093 u_int8_t delete_all; /* delete all keys? 0x01 - yes */
1097 u_int8_t status; /* 0x00 - success */
1101 #define NG_HCI_OCF_CHANGE_LOCAL_NAME 0x0013
1108 #define NG_HCI_OCF_READ_LOCAL_NAME 0x0014
1111 u_int8_t status; /* 0x00 - success */
1115 #define NG_HCI_OCF_READ_CON_ACCEPT_TIMO 0x0015
1118 u_int8_t status; /* 0x00 - success */
1122 #define NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO 0x0016
1129 #define NG_HCI_OCF_READ_PAGE_TIMO 0x0017
1132 u_int8_t status; /* 0x00 - success */
1136 #define NG_HCI_OCF_WRITE_PAGE_TIMO 0x0018
1143 #define NG_HCI_OCF_READ_SCAN_ENABLE 0x0019
1146 u_int8_t status; /* 0x00 - success */
1150 #define NG_HCI_OCF_WRITE_SCAN_ENABLE 0x001a
1157 #define NG_HCI_OCF_READ_PAGE_SCAN_ACTIVITY 0x001b
1160 u_int8_t status; /* 0x00 - success */
1165 #define NG_HCI_OCF_WRITE_PAGE_SCAN_ACTIVITY 0x001c
1173 #define NG_HCI_OCF_READ_INQUIRY_SCAN_ACTIVITY 0x001d
1176 u_int8_t status; /* 0x00 - success */
1181 #define NG_HCI_OCF_WRITE_INQUIRY_SCAN_ACTIVITY 0x001e
1189 #define NG_HCI_OCF_READ_AUTH_ENABLE 0x001f
1192 u_int8_t status; /* 0x00 - success */
1193 u_int8_t auth_enable; /* 0x01 - enabled */
1196 #define NG_HCI_OCF_WRITE_AUTH_ENABLE 0x0020
1198 u_int8_t auth_enable; /* 0x01 - enabled */
1203 #define NG_HCI_OCF_READ_ENCRYPTION_MODE 0x0021
1206 u_int8_t status; /* 0x00 - success */
1210 #define NG_HCI_OCF_WRITE_ENCRYPTION_MODE 0x0022
1217 #define NG_HCI_OCF_READ_UNIT_CLASS 0x0023
1220 u_int8_t status; /* 0x00 - success */
1224 #define NG_HCI_OCF_WRITE_UNIT_CLASS 0x0024
1231 #define NG_HCI_OCF_READ_VOICE_SETTINGS 0x0025
1234 u_int8_t status; /* 0x00 - success */
1238 #define NG_HCI_OCF_WRITE_VOICE_SETTINGS 0x0026
1245 #define NG_HCI_OCF_READ_AUTO_FLUSH_TIMO 0x0027
1251 u_int8_t status; /* 0x00 - success */
1253 u_int16_t timeout; /* 0x00 - no flush, timeout * 0.625 msec */
1256 #define NG_HCI_OCF_WRITE_AUTO_FLUSH_TIMO 0x0028
1259 u_int16_t timeout; /* 0x00 - no flush, timeout * 0.625 msec */
1263 u_int8_t status; /* 0x00 - success */
1267 #define NG_HCI_OCF_READ_NUM_BROADCAST_RETRANS 0x0029
1270 u_int8_t status; /* 0x00 - success */
1274 #define NG_HCI_OCF_WRITE_NUM_BROADCAST_RETRANS 0x002a
1281 #define NG_HCI_OCF_READ_HOLD_MODE_ACTIVITY 0x002b
1284 u_int8_t status; /* 0x00 - success */
1288 #define NG_HCI_OCF_WRITE_HOLD_MODE_ACTIVITY 0x002c
1295 #define NG_HCI_OCF_READ_XMIT_LEVEL 0x002d
1302 u_int8_t status; /* 0x00 - success */
1307 #define NG_HCI_OCF_READ_SCO_FLOW_CONTROL 0x002e
1310 u_int8_t status; /* 0x00 - success */
1311 u_int8_t flow_control; /* 0x00 - disabled */
1314 #define NG_HCI_OCF_WRITE_SCO_FLOW_CONTROL 0x002f
1316 u_int8_t flow_control; /* 0x00 - disabled */
1321 #define NG_HCI_OCF_H2HC_FLOW_CONTROL 0x0031
1328 #define NG_HCI_OCF_HOST_BUFFER_SIZE 0x0033
1338 #define NG_HCI_OCF_HOST_NUM_COMPL_PKTS 0x0035
1347 #define NG_HCI_OCF_READ_LINK_SUPERVISION_TIMO 0x0036
1353 u_int8_t status; /* 0x00 - success */
1358 #define NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO 0x0037
1365 u_int8_t status; /* 0x00 - success */
1369 #define NG_HCI_OCF_READ_SUPPORTED_IAC_NUM 0x0038
1372 u_int8_t status; /* 0x00 - success */
1376 #define NG_HCI_OCF_READ_IAC_LAP 0x0039
1379 u_int8_t status; /* 0x00 - success */
1385 #define NG_HCI_OCF_WRITE_IAC_LAP 0x003a
1394 /*0x003b-0x003e commands are depricated v2.0 or later*/
1395 #define NG_HCI_OCF_READ_PAGE_SCAN_PERIOD 0x003b
1398 u_int8_t status; /* 0x00 - success */
1402 #define NG_HCI_OCF_WRITE_PAGE_SCAN_PERIOD 0x003c
1409 #define NG_HCI_OCF_READ_PAGE_SCAN 0x003d
1412 u_int8_t status; /* 0x00 - success */
1416 #define NG_HCI_OCF_WRITE_PAGE_SCAN 0x003e
1423 #define NG_HCI_OCF_WRITE_SIMPLE_PAIRING 0x0056
1425 u_int8_t simple_pairing; /* 1 -> enabled, 0 -> disabled */
1430 #define NG_HCI_OCF_READ_LE_HOST_SUPPORTED 0x6c
1432 u_int8_t status; /* 0x00 - success */
1437 #define NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED 0x6d
1445 #define NG_HCI_OCF_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT 0x007a
1447 u_int8_t support; /* 0 - disabled, 1 - enabled */
1459 #define NG_HCI_OGF_INFO 0x04 /* OpCode Group Field */
1461 #define NG_HCI_OCF_READ_LOCAL_VER 0x0001
1463 u_int8_t status; /* 0x00 - success */
1471 #define NG_HCI_OCF_READ_LOCAL_COMMANDS 0x0002
1473 u_int8_t status; /* 0x00 - success */
1477 #define NG_HCI_OCF_READ_LOCAL_FEATURES 0x0003
1479 u_int8_t status; /* 0x00 - success */
1483 #define NG_HCI_OCF_READ_BUFFER_SIZE 0x0005
1485 u_int8_t status; /* 0x00 - success */
1492 #define NG_HCI_OCF_READ_COUNTRY_CODE 0x0007
1494 u_int8_t status; /* 0x00 - success */
1495 u_int8_t country_code; /* 0x00 - NAM, EUR, JP; 0x01 - France */
1498 #define NG_HCI_OCF_READ_BDADDR 0x0009
1500 u_int8_t status; /* 0x00 - success */
1510 #define NG_HCI_OGF_STATUS 0x05 /* OpCode Group Field */
1512 #define NG_HCI_OCF_READ_FAILED_CONTACT_CNTR 0x0001
1518 u_int8_t status; /* 0x00 - success */
1523 #define NG_HCI_OCF_RESET_FAILED_CONTACT_CNTR 0x0002
1529 u_int8_t status; /* 0x00 - success */
1533 #define NG_HCI_OCF_GET_LINK_QUALITY 0x0003
1539 u_int8_t status; /* 0x00 - success */
1544 #define NG_HCI_OCF_READ_RSSI 0x0005
1550 u_int8_t status; /* 0x00 - success */
1561 #define NG_HCI_OGF_TESTING 0x06 /* OpCode Group Field */
1563 #define NG_HCI_OCF_READ_LOOPBACK_MODE 0x0001
1566 u_int8_t status; /* 0x00 - success */
1570 #define NG_HCI_OCF_WRITE_LOOPBACK_MODE 0x0002
1577 #define NG_HCI_OCF_ENABLE_UNIT_UNDER_TEST 0x0003
1587 #define NG_HCI_OGF_LE 0x08 /* OpCode Group Field */
1588 #define NG_HCI_OCF_LE_SET_EVENT_MASK 0x0001
1594 #define NG_HCI_LE_EVENT_MASK_ALL 0x1f
1596 #define NG_HCI_OCF_LE_READ_BUFFER_SIZE 0x0002
1604 #define NG_HCI_OCF_LE_READ_LOCAL_SUPPORTED_FEATURES 0x0003
1611 #define NG_HCI_OCF_LE_SET_RANDOM_ADDRESS 0x0005
1617 #define NG_HCI_OCF_LE_SET_ADVERTISING_PARAMETERS 0x0006
1630 #define NG_HCI_OCF_LE_READ_ADVERTISING_CHANNEL_TX_POWER 0x0007
1637 #define NG_HCI_OCF_LE_SET_ADVERTISING_DATA 0x0008
1645 #define NG_HCI_OCF_LE_SET_SCAN_RESPONSE_DATA 0x0009
1653 #define NG_HCI_OCF_LE_SET_ADVERTISE_ENABLE 0x000a
1659 #define NG_HCI_OCF_LE_SET_SCAN_PARAMETERS 0x000b
1669 #define NG_HCI_OCF_LE_SET_SCAN_ENABLE 0x000c
1676 #define NG_HCI_OCF_LE_CREATE_CONNECTION 0x000d
1692 #define NG_HCI_OCF_LE_CREATE_CONNECTION_CANCEL 0x000e
1695 #define NG_HCI_OCF_LE_READ_WHITE_LIST_SIZE 0x000f
1702 #define NG_HCI_OCF_LE_CLEAR_WHITE_LIST 0x0010
1705 #define NG_HCI_OCF_LE_ADD_DEVICE_TO_WHITE_LIST 0x0011
1712 #define NG_HCI_OCF_LE_REMOVE_DEVICE_FROM_WHITE_LIST 0x0012
1719 #define NG_HCI_OCF_LE_CONNECTION_UPDATE 0x0013
1731 #define NG_HCI_OCF_LE_SET_HOST_CHANNEL_CLASSIFICATION 0x0014
1737 #define NG_HCI_OCF_LE_READ_CHANNEL_MAP 0x0015
1747 #define NG_HCI_OCF_LE_READ_REMOTE_USED_FEATURES 0x0016
1753 #define NG_HCI_OCF_LE_ENCRYPT 0x0017
1763 #define NG_HCI_OCF_LE_RAND 0x0018
1770 #define NG_HCI_OCF_LE_START_ENCRYPTION 0x0019
1778 #define NG_HCI_OCF_LE_LONG_TERM_KEY_REQUEST_REPLY 0x001a
1788 #define NG_HCI_OCF_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY 0x001b
1797 #define NG_HCI_OCF_LE_READ_SUGGESTED_DATA_LENGTH 0x0023
1805 #define NG_HCI_OCF_LE_WRITE_SUGGESTED_DATA_LENGTH 0x0024
1812 #define NG_HCI_OCF_LE_READ_BUFFER_SIZE_V2 0x0060
1822 #define NG_HCI_OCF_LE_READ_SUPPORTED_STATES 0x001c
1829 #define NG_HCI_OCF_LE_RECEIVER_TEST 0x001d
1835 #define NG_HCI_OCF_LE_TRANSMITTER_TEST 0x001e
1843 #define NG_HCI_OCF_LE_TEST_END 0x001f
1856 #define NG_HCI_OGF_BT_LOGO 0x3e
1858 #define NG_HCI_OGF_VENDOR 0x3f
1866 #define NG_HCI_EVENT_INQUIRY_COMPL 0x01
1868 u_int8_t status; /* 0x00 - success */
1871 #define NG_HCI_EVENT_INQUIRY_RESULT 0x02
1886 #define NG_HCI_EVENT_CON_COMPL 0x03
1888 u_int8_t status; /* 0x00 - success */
1895 #define NG_HCI_EVENT_CON_REQ 0x04
1902 #define NG_HCI_EVENT_DISCON_COMPL 0x05
1904 u_int8_t status; /* 0x00 - success */
1909 #define NG_HCI_EVENT_AUTH_COMPL 0x06
1911 u_int8_t status; /* 0x00 - success */
1915 #define NG_HCI_EVENT_REMOTE_NAME_REQ_COMPL 0x7
1917 u_int8_t status; /* 0x00 - success */
1922 #define NG_HCI_EVENT_ENCRYPTION_CHANGE 0x08
1924 u_int8_t status; /* 0x00 - success */
1926 u_int8_t encryption_enable; /* 0x00 - disable */
1929 #define NG_HCI_EVENT_CHANGE_CON_LINK_KEY_COMPL 0x09
1931 u_int8_t status; /* 0x00 - success */
1935 #define NG_HCI_EVENT_MASTER_LINK_KEY_COMPL 0x0a
1937 u_int8_t status; /* 0x00 - success */
1942 #define NG_HCI_EVENT_READ_REMOTE_FEATURES_COMPL 0x0b
1944 u_int8_t status; /* 0x00 - success */
1949 #define NG_HCI_EVENT_READ_REMOTE_VER_INFO_COMPL 0x0c
1951 u_int8_t status; /* 0x00 - success */
1958 #define NG_HCI_EVENT_QOS_SETUP_COMPL 0x0d
1960 u_int8_t status; /* 0x00 - success */
1970 #define NG_HCI_EVENT_COMMAND_COMPL 0x0e
1977 #define NG_HCI_EVENT_COMMAND_STATUS 0x0f
1979 u_int8_t status; /* 0x00 - pending */
1984 #define NG_HCI_EVENT_HARDWARE_ERROR 0x10
1989 #define NG_HCI_EVENT_FLUSH_OCCUR 0x11
1994 #define NG_HCI_EVENT_ROLE_CHANGE 0x12
1996 u_int8_t status; /* 0x00 - success */
2001 #define NG_HCI_EVENT_NUM_COMPL_PKTS 0x13
2009 #define NG_HCI_EVENT_MODE_CHANGE 0x14
2011 u_int8_t status; /* 0x00 - success */
2017 #define NG_HCI_EVENT_RETURN_LINK_KEYS 0x15
2025 #define NG_HCI_EVENT_PIN_CODE_REQ 0x16
2030 #define NG_HCI_EVENT_LINK_KEY_REQ 0x17
2035 #define NG_HCI_EVENT_LINK_KEY_NOTIFICATION 0x18
2042 #define NG_HCI_EVENT_LOOPBACK_COMMAND 0x19
2044 u_int8_t command[0]; /* Command packet */
2047 #define NG_HCI_EVENT_DATA_BUFFER_OVERFLOW 0x1a
2052 #define NG_HCI_EVENT_MAX_SLOT_CHANGE 0x1b
2058 #define NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL 0x1c
2060 u_int8_t status; /* 0x00 - success */
2065 #define NG_HCI_EVENT_CON_PKT_TYPE_CHANGED 0x1d
2067 u_int8_t status; /* 0x00 - success */
2072 #define NG_HCI_EVENT_QOS_VIOLATION 0x1e
2077 #define NG_HCI_EVENT_PAGE_SCAN_MODE_CHANGE 0x1f
2083 #define NG_HCI_EVENT_PAGE_SCAN_REP_MODE_CHANGE 0x20
2089 #define NG_HCI_EVENT_IO_CAPABILITY_REQUEST 0x31
2094 #define NG_HCI_EVENT_USER_CONFIRMATION_REQUEST 0x33
2100 #define NG_HCI_EVENT_SIMPLE_PAIRING_COMPLETE 0x36
2106 #define NG_HCI_EVENT_LE 0x3e
2111 #define NG_HCI_LEEV_CON_COMPL 0x01
2126 #define NG_HCI_LEEV_ADVREP 0x02
2131 #define NG_HCI_SCAN_RESPONSE_DATA_MAX 0x1f
2142 #define NG_HCI_LEEV_CON_UPDATE_COMPL 0x03
2151 #define NG_HCI_LEEV_READ_REMOTE_FEATURES_COMPL 0x04
2158 #define NG_HCI_LEEV_LONG_TERM_KEY_REQUEST 0x05
2165 #define NG_HCI_LEEV_REMOTE_CONN_PARAM_REQUEST 0x06
2174 #define NG_HCI_LEEV_DATA_LENGTH_CHANGE 0x07
2183 #define NG_HCI_LEEV_READ_LOCAL_P256_PK_COMPL 0x08
2189 #define NG_HCI_LEEV_GEN_DHKEY_COMPL 0x09
2195 #define NG_HCI_LEEV_ENH_CONN_COMPL 0x0a
2210 #define NG_HCI_EVENT_BT_LOGO 0xfe
2212 #define NG_HCI_EVENT_VENDOR 0xff