Skip to content

Commit 28ed48c

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Fix connected ISO dynamic tx power
Fix connected ISO dynamic tx power support compilation error. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent c1baa82 commit 28ed48c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

samples/bluetooth/hci_rpmsg/nrf5340_cpunet_iso-bt_ll_sw_split.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@ CONFIG_BT_CTLR_ISOAL_SOURCES=2
112112
# ISO Receptions
113113
CONFIG_BT_CTLR_ISO_RX_BUFFERS=8
114114
CONFIG_BT_CTLR_ISOAL_SINKS=2
115+
116+
# Tx Power Dynamic Control
117+
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

samples/bluetooth/hci_uart/overlay-all-bt_ll_sw_split.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,6 @@ CONFIG_BT_CTLR_ISOAL_SOURCES=2
104104
# ISO Receptions
105105
CONFIG_BT_CTLR_ISO_RX_BUFFERS=8
106106
CONFIG_BT_CTLR_ISOAL_SINKS=2
107+
108+
# Tx Power Dynamic Control
109+
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_central_iso.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static int prepare_cb(struct lll_prepare_param *p)
220220
radio_reset();
221221

222222
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
223-
radio_tx_power_set(cis_lll->tx_pwr_lvl);
223+
radio_tx_power_set(conn_lll->tx_pwr_lvl);
224224
#else /* !CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */
225225
radio_tx_power_set(RADIO_TXP_DEFAULT);
226226
#endif /* !CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */
@@ -986,7 +986,7 @@ static void isr_rx(void *param)
986986
next_cis_lll->rx.bn_curr = 1U;
987987

988988
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
989-
radio_tx_power_set(next_cis_lll->tx_pwr_lvl);
989+
radio_tx_power_set(next_conn_lll->tx_pwr_lvl);
990990
#else
991991
radio_tx_power_set(RADIO_TXP_DEFAULT);
992992
#endif

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_peripheral_iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static int prepare_cb(struct lll_prepare_param *p)
238238
radio_reset();
239239

240240
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
241-
radio_tx_power_set(cis_lll->tx_pwr_lvl);
241+
radio_tx_power_set(conn_lll->tx_pwr_lvl);
242242
#else /* !CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */
243243
radio_tx_power_set(RADIO_TXP_DEFAULT);
244244
#endif /* !CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */

0 commit comments

Comments
 (0)