mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 22:43:35 +00:00
support for hci_link_key_request_reply
This commit is contained in:
parent
659cd3d196
commit
af54460952
@ -163,6 +163,7 @@ typedef enum {
|
||||
// HCI Commands - see hci_cmds.c for info on parameters
|
||||
extern hci_cmd_t hci_inquiry;
|
||||
extern hci_cmd_t hci_inquiry_cancel;
|
||||
extern hci_cmd_t hci_link_key_request_reply;
|
||||
extern hci_cmd_t hci_link_key_request_negative_reply;
|
||||
extern hci_cmd_t hci_pin_code_request_reply;
|
||||
extern hci_cmd_t hci_authentication_requested;
|
||||
|
@ -98,7 +98,7 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, va_lis
|
||||
hci_cmd_buffer[pos++] = ptr[1];
|
||||
hci_cmd_buffer[pos++] = ptr[0];
|
||||
break;
|
||||
case 'P': // c string passed as pascal string with leading 1-byte len
|
||||
case 'P': // 16 byte PIN code or link key
|
||||
ptr = va_arg(argptr, uint8_t *);
|
||||
memcpy(&hci_cmd_buffer[pos], ptr, 16);
|
||||
pos += 16;
|
||||
@ -162,6 +162,10 @@ hci_cmd_t hci_accept_connection_request = {
|
||||
OPCODE(OGF_LINK_CONTROL, 0x09), "B1"
|
||||
// BD_ADDR, Role: become master, stay slave
|
||||
};
|
||||
hci_cmd_t hci_link_key_request_reply = {
|
||||
OPCODE(OGF_LINK_CONTROL, 0x0b), "BP"
|
||||
// BD_ADDR, LINK_KEY
|
||||
};
|
||||
hci_cmd_t hci_link_key_request_negative_reply = {
|
||||
OPCODE(OGF_LINK_CONTROL, 0x0c), "B"
|
||||
// BD_ADDR
|
||||
|
Loading…
x
Reference in New Issue
Block a user