From 9af39d9f0f3f85ddab9490dd552277d799cf33c0 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 12 Sep 2019 18:05:03 +0200 Subject: [PATCH] hci: add hci_read_pin_type and hci_write_pin_type --- src/hci_cmd.c | 16 +++++++++++++++- src/hci_cmd.h | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/hci_cmd.c b/src/hci_cmd.c index 86a30741a..df96491bf 100644 --- a/src/hci_cmd.c +++ b/src/hci_cmd.c @@ -592,7 +592,21 @@ OPCODE(OGF_CONTROLLER_BASEBAND, 0x03), "" * @param handle */ const hci_cmd_t hci_flush = { -OPCODE(OGF_CONTROLLER_BASEBAND, 0x09), "H" +OPCODE(OGF_CONTROLLER_BASEBAND, 0x08), "H" +}; + +/** + * @param handle + */ +const hci_cmd_t hci_read_pin_type = { +OPCODE(OGF_CONTROLLER_BASEBAND, 0x09), "" +}; + +/** + * @param handle + */ +const hci_cmd_t hci_write_pin_type = { +OPCODE(OGF_CONTROLLER_BASEBAND, 0x0A), "1" }; /** diff --git a/src/hci_cmd.h b/src/hci_cmd.h index 2974b0944..6610ff12d 100644 --- a/src/hci_cmd.h +++ b/src/hci_cmd.h @@ -120,6 +120,7 @@ extern const hci_cmd_t hci_read_local_extended_oob_data; extern const hci_cmd_t hci_read_local_name; extern const hci_cmd_t hci_read_page_timeout; extern const hci_cmd_t hci_read_page_scan_activity; +extern const hci_cmd_t hci_read_pin_type; extern const hci_cmd_t hci_read_local_oob_data; extern const hci_cmd_t hci_read_local_supported_commands; extern const hci_cmd_t hci_read_local_supported_features; @@ -161,6 +162,7 @@ extern const hci_cmd_t hci_write_local_name; extern const hci_cmd_t hci_write_loopback_mode; extern const hci_cmd_t hci_write_num_broadcast_retransmissions; extern const hci_cmd_t hci_write_page_timeout; +extern const hci_cmd_t hci_write_pin_type; extern const hci_cmd_t hci_write_page_scan_activity; extern const hci_cmd_t hci_write_scan_enable; extern const hci_cmd_t hci_write_secure_connections_test_mode;