mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-16 02:27:22 +00:00
nimble/ll: Fix not setting proper TX power in periodic advertising
All PHY power settings should go via ble_ll_tx_power_set() to make sure FEM and/or host compensation is taken int account.
This commit is contained in:
@@ -2176,7 +2176,7 @@ static void
|
||||
ble_ll_adv_sync_tx_done(struct ble_ll_adv_sm *advsm)
|
||||
{
|
||||
/* reset power to default after advertising */
|
||||
ble_phy_tx_power_set(g_ble_ll_tx_power);
|
||||
ble_ll_tx_power_set(g_ble_ll_tx_power);
|
||||
|
||||
/* for sync we trace a no pri nor sec set */
|
||||
ble_ll_trace_u32x2(BLE_LL_TRACE_ID_ADV_TXDONE, advsm->adv_instance, 0);
|
||||
@@ -2232,7 +2232,7 @@ ble_ll_adv_sync_tx_start_cb(struct ble_ll_sched_item *sch)
|
||||
ble_ll_adv_flags_set(advsm, BLE_LL_ADV_SM_FLAG_PERIODIC_SYNC_SENDING);
|
||||
|
||||
/* Set the power */
|
||||
ble_phy_tx_power_set(advsm->tx_power);
|
||||
ble_ll_tx_power_set(advsm->tx_power);
|
||||
|
||||
/* Set channel */
|
||||
sync = SYNC_CURRENT(advsm);
|
||||
|
||||
Reference in New Issue
Block a user