From ca3e5982707f98c2c6f190f6a6aa7fed1915e230 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 31 Aug 2022 09:24:16 +0200 Subject: [PATCH] nimble/ll: Fix not setting TX power in HCI VS command PHY was not configured to use new TX power immediatelly. This resulted in new TX power being used only after advertising event ended. --- nimble/controller/src/ble_ll_hci_vs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nimble/controller/src/ble_ll_hci_vs.c b/nimble/controller/src/ble_ll_hci_vs.c index d00346500..c56fc660b 100644 --- a/nimble/controller/src/ble_ll_hci_vs.c +++ b/nimble/controller/src/ble_ll_hci_vs.c @@ -128,6 +128,8 @@ ble_ll_hci_vs_set_tx_power(uint16_t ocf, const uint8_t *cmdbuf, uint8_t cmdlen, g_ble_ll_tx_power = ble_phy_txpower_round(cmd->tx_power); } + ble_phy_txpwr_set(g_ble_ll_tx_power); + rsp->tx_power = g_ble_ll_tx_power; *rsplen = sizeof(*rsp);