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.
This commit is contained in:
Szymon Janc
2022-08-31 09:24:16 +02:00
parent cc29e37c9c
commit ca3e598270
+2
View File
@@ -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);