diff --git a/include/btstack/hci_cmds.h b/include/btstack/hci_cmds.h index 31cc9ffba..7ebe40abd 100644 --- a/include/btstack/hci_cmds.h +++ b/include/btstack/hci_cmds.h @@ -274,6 +274,7 @@ extern const hci_cmd_t hci_reset; extern const hci_cmd_t hci_role_discovery; extern const hci_cmd_t hci_set_event_mask; extern const hci_cmd_t hci_set_connection_encryption; +extern const hci_cmd_t hci_sniff_mode; extern const hci_cmd_t hci_switch_role_command; extern const hci_cmd_t hci_write_authentication_enable; extern const hci_cmd_t hci_write_class_of_device; diff --git a/src/hci_cmds.c b/src/hci_cmds.c index 008b796a3..d71ca04c4 100644 --- a/src/hci_cmds.c +++ b/src/hci_cmds.c @@ -228,6 +228,10 @@ OPCODE(OGF_LINK_CONTROL, 0x1A), "B" /** * Link Policy Commands */ +const hci_cmd_t hci_sniff_mode = { +OPCODE(OGF_LINK_POLICY, 0x03), "H2222" +// handle, Sniff_Max_Interval, Sniff_Min_Interval, Sniff_Attempt, Sniff_Timeout: +}; const hci_cmd_t hci_qos_setup = { OPCODE(OGF_LINK_POLICY, 0x07), "H114444" // handle, flags, service_type, token rate (bytes/s), peak bandwith (bytes/s),