Skip to content

Commit 0dd8157

Browse files
Damian-Nordicnordicjm
authored andcommitted
modules: openthread: radio_nrf5: fix selective TX channel
When the selective TX channel feature is used, delayed transmissions should not cause switching the current channel to the channel of the current transmission. The purpose of this feature is to be able to transmit selected frames on a channel other than the PAN channel. Signed-off-by: Damian Krolik <[email protected]>
1 parent 20d5d86 commit 0dd8157

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/openthread/platform/radio_nrf5.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,9 @@ static otError transmit_frame(otInstance *aInstance)
801801
if ((nrf5_data.capabilities & OT_RADIO_CAPS_TRANSMIT_TIMING) &&
802802
(nrf5_data.tx.frame.mInfo.mTxInfo.mTxDelay != 0)) {
803803

804-
nrf5_set_channel(nrf5_data.tx.frame.mChannel);
804+
if (!IS_ENABLED(CONFIG_NRF5_SELECTIVE_TXCHANNEL)) {
805+
nrf5_set_channel(nrf5_data.tx.frame.mChannel);
806+
}
805807

806808
if (!nrf5_tx_at(&nrf5_data.tx.frame, nrf5_data.tx.psdu)) {
807809
LOG_WRN("TX AT failed");

0 commit comments

Comments
 (0)