nimble/ll: Fix not rounding TX power when restoring defaults
HCI VS command didn't round default TX power value.
@@ -124,7 +124,7 @@ ble_ll_hci_vs_set_tx_power(uint16_t ocf, const uint8_t *cmdbuf, uint8_t cmdlen,
if (cmd->tx_power == 127) {
/* restore reset default */
- g_ble_ll_tx_power = MYNEWT_VAL(BLE_LL_TX_PWR_DBM);
+ g_ble_ll_tx_power = ble_phy_tx_power_round(MYNEWT_VAL(BLE_LL_TX_PWR_DBM));
} else {
g_ble_ll_tx_power = ble_phy_tx_power_round(cmd->tx_power);
}
