From c0c1ea3d67d12fc671422a844835979bac544d82 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Mon, 25 Jul 2011 18:48:34 +0000 Subject: [PATCH] added hci_reject_connection_request --- include/btstack/hci_cmds.h | 1 + src/hci_cmds.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/btstack/hci_cmds.h b/include/btstack/hci_cmds.h index 7ebe40abd..acb95d937 100644 --- a/include/btstack/hci_cmds.h +++ b/include/btstack/hci_cmds.h @@ -268,6 +268,7 @@ extern const hci_cmd_t hci_read_bd_addr; extern const hci_cmd_t hci_read_buffer_size; extern const hci_cmd_t hci_read_link_policy_settings; extern const hci_cmd_t hci_read_link_supervision_timeout; +extern const hci_cmd_t hci_reject_connection_request; extern const hci_cmd_t hci_remote_name_request; extern const hci_cmd_t hci_remote_name_request_cancel; extern const hci_cmd_t hci_reset; diff --git a/src/hci_cmds.c b/src/hci_cmds.c index d71ca04c4..f687c31fb 100644 --- a/src/hci_cmds.c +++ b/src/hci_cmds.c @@ -188,6 +188,10 @@ const hci_cmd_t hci_accept_connection_request = { OPCODE(OGF_LINK_CONTROL, 0x09), "B1" // BD_ADDR, Role: become master, stay slave }; +const hci_cmd_t hci_reject_connection_request = { +OPCODE(OGF_LINK_CONTROL, 0x0a), "B1" +// BD_ADDR, reason e.g. CONNECTION REJECTED DUE TO LIMITED RESOURCES (0x0d) +}; const hci_cmd_t hci_link_key_request_reply = { OPCODE(OGF_LINK_CONTROL, 0x0b), "BP" // BD_ADDR, LINK_KEY