From dfb5988da24da0bb54d20485bfc8d9740c2e49d7 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Thu, 17 Nov 2022 08:55:47 +0530 Subject: [PATCH] Bluetooth: Controller: Fix dynamic tx power for Broadcast ISO Fix compilation error for ISO Broadcaster with dynamix Tx power support, and remove setting tx power for ISO Synchronized Receiver. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c | 2 +- subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c index 20579c2c299..db0442f5aae 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_iso.c @@ -231,7 +231,7 @@ static int prepare_cb_common(struct lll_prepare_param *p) radio_reset(); #if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL) - radio_tx_power_set(lll->tx_pwr_lvl); + radio_tx_power_set(lll->adv->tx_pwr_lvl); #else radio_tx_power_set(RADIO_TXP_DEFAULT); #endif diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c index 8dae0278090..d6736764924 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c @@ -285,12 +285,6 @@ static int prepare_cb_common(struct lll_prepare_param *p) /* Start setting up of Radio h/w */ radio_reset(); -#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL) - radio_tx_power_set(lll->tx_pwr_lvl); -#else - radio_tx_power_set(RADIO_TXP_DEFAULT); -#endif - phy = lll->phy; radio_phy_set(phy, PHY_FLAGS_S8); radio_pkt_configure(RADIO_PKT_CONF_LENGTH_8BIT, lll->max_pdu,