Skip to content

Commit 93175d0

Browse files
committed
[nrf fromlist] drivers: ieee802154_nrf5: support IEEE802154_SELECTIVE_TXCHANNEL
The ieee802154_nrf5 supports the IEEE802154_SELECTIVE_TXCHANNEL Kconfig option and advertises the IEEE802154_HW_SELECTIVE_TXCHANNEL capability. The ieee802154_nrf5 driver now allows to schedule timed transmission requests with selective tx channel, that is set at the latest possible moment. This improves reception performance when the timed transmissions are requested. Upstream PR: zephyrproject-rtos/zephyr#79919 Signed-off-by: Damian Krolik <[email protected]> Signed-off-by: Andrzej Kuroś <[email protected]>
1 parent eb43f0b commit 93175d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/ieee802154/ieee802154_nrf5.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ static void nrf5_get_capabilities_at_boot(void)
255255
((caps & NRF_802154_CAPABILITY_SECURITY) ? IEEE802154_HW_TX_SEC : 0UL)
256256
#if defined(CONFIG_IEEE802154_NRF5_MULTIPLE_CCA)
257257
| IEEE802154_OPENTHREAD_HW_MULTIPLE_CCA
258+
#endif
259+
#if defined(CONFIG_IEEE802154_SELECTIVE_TXCHANNEL)
260+
| IEEE802154_HW_SELECTIVE_TXCHANNEL
258261
#endif
259262
;
260263
}
@@ -540,7 +543,11 @@ static bool nrf5_tx_at(struct nrf5_802154_data *nrf5_radio, struct net_pkt *pkt,
540543
.dynamic_data_is_set = net_pkt_ieee802154_mac_hdr_rdy(pkt),
541544
},
542545
.cca = cca,
546+
#if defined(CONFIG_IEEE802154_SELECTIVE_TXCHANNEL)
547+
.channel = net_pkt_ieee802154_txchannel(pkt),
548+
#else
543549
.channel = nrf_802154_channel_get(),
550+
#endif
544551
.tx_power = {
545552
.use_metadata_value = true,
546553
.power = nrf5_data.txpwr,

0 commit comments

Comments
 (0)