From 5769fd77de04c14e6f114137162dec3b5674433c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 11 Mar 2021 14:45:06 +0100 Subject: [PATCH] hci_cmd: add hci_write_inquiry_scan_type and hci_write_page_scan_type --- src/hci_cmd.c | 14 ++++++++++++++ src/hci_cmd.h | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/src/hci_cmd.c b/src/hci_cmd.c index beadcc3a3..c9de007f9 100644 --- a/src/hci_cmd.c +++ b/src/hci_cmd.c @@ -806,6 +806,13 @@ const hci_cmd_t hci_write_current_iac_lap_two_iacs = { HCI_OPCODE_HCI_WRITE_CURRENT_IAC_LAP_TWO_IACS, "133" }; +/** + * @param inquiry_scan_type (0x00 = standard, 0x01 = interlaced) + */ +const hci_cmd_t hci_write_inquiry_scan_type = { + HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_TYPE, "1" +}; + /** * @param inquiry_mode (0x00 = standard, 0x01 = with RSSI, 0x02 = extended) */ @@ -813,6 +820,13 @@ const hci_cmd_t hci_write_inquiry_mode = { HCI_OPCODE_HCI_WRITE_INQUIRY_MODE, "1" }; +/** + * @param page_scan_type (0x00 = standard, 0x01 = interlaced) + */ +const hci_cmd_t hci_write_page_scan_type = { + HCI_OPCODE_HCI_WRITE_PAGE_SCAN_TYPE, "1" +}; + /** * @param fec_required * @param exstended_inquiry_response diff --git a/src/hci_cmd.h b/src/hci_cmd.h index c4f382ad4..fee445cce 100644 --- a/src/hci_cmd.h +++ b/src/hci_cmd.h @@ -155,7 +155,12 @@ typedef enum { HCI_OPCODE_HCI_READ_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x36), HCI_OPCODE_HCI_WRITE_LINK_SUPERVISION_TIMEOUT = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x37), HCI_OPCODE_HCI_WRITE_CURRENT_IAC_LAP_TWO_IACS = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x3A), + HCI_OPCODE_HCI_READ_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x42), + HCI_OPCODE_HCI_WRITE_INQUIRY_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x43), + HCI_OPCODE_HCI_READ_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x44), HCI_OPCODE_HCI_WRITE_INQUIRY_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x45), + HCI_OPCODE_HCI_READ_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x46), + HCI_OPCODE_HCI_WRITE_PAGE_SCAN_TYPE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x47), HCI_OPCODE_HCI_WRITE_EXTENDED_INQUIRY_RESPONSE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x52), HCI_OPCODE_HCI_WRITE_SIMPLE_PAIRING_MODE = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x56), HCI_OPCODE_HCI_READ_LOCAL_OOB_DATA = HCI_OPCODE (OGF_CONTROLLER_BASEBAND, 0x57), @@ -307,6 +312,7 @@ extern const hci_cmd_t hci_write_default_link_policy_setting; extern const hci_cmd_t hci_write_extended_inquiry_response; extern const hci_cmd_t hci_write_inquiry_mode; extern const hci_cmd_t hci_write_inquiry_scan_activity; +extern const hci_cmd_t hci_write_inquiry_scan_type; extern const hci_cmd_t hci_write_le_host_supported; extern const hci_cmd_t hci_write_link_policy_settings; extern const hci_cmd_t hci_write_link_supervision_timeout; @@ -316,6 +322,7 @@ 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_page_scan_type; extern const hci_cmd_t hci_write_scan_enable; extern const hci_cmd_t hci_write_secure_connections_host_support; extern const hci_cmd_t hci_write_secure_connections_test_mode;