From 5cdaddfa076cc43667ef678779ce551f97fd98cb Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 20 Sep 2019 10:55:49 +0200 Subject: [PATCH] hci_cmd: add hci_bcm_write_tx_power_table for Broadcom/Cypress --- src/hci_cmd.c | 13 +++++++++++++ src/hci_cmd.h | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/hci_cmd.c b/src/hci_cmd.c index df96491bf..38bbff7d1 100644 --- a/src/hci_cmd.c +++ b/src/hci_cmd.c @@ -1318,3 +1318,16 @@ OPCODE(0x3f, 0x1c), "11111" const hci_cmd_t hci_bcm_set_sleep_mode = { OPCODE(0x3f, 0x0027), "111111111111" }; + +/** + * @brief Set TX Power Table + * @param is_le 0=classic, 1=LE + * @param chip_max_tx_pwr_db chip level max TX power in dBM + */ +const hci_cmd_t hci_bcm_write_tx_power_table = { +OPCODE(0x3f, 0x1C9), "11" +}; + +const hci_cmd_t hci_bcm_set_tx_pwr = { +OPCODE(0x3f, 0x1A5), "11H" +}; diff --git a/src/hci_cmd.h b/src/hci_cmd.h index 6610ff12d..a75d2a272 100644 --- a/src/hci_cmd.h +++ b/src/hci_cmd.h @@ -213,8 +213,9 @@ extern const hci_cmd_t hci_le_transmitter_test; extern const hci_cmd_t hci_le_write_suggested_default_data_length; // Broadcom / Cypress specific HCI commands -extern const hci_cmd_t hci_bcm_write_sco_pcm_int; extern const hci_cmd_t hci_bcm_set_sleep_mode; +extern const hci_cmd_t hci_bcm_write_sco_pcm_int; +extern const hci_cmd_t hci_bcm_write_tx_power_table; /** * construct HCI Command based on template