drivers: ieee802154: Enable CSMA-CA on serialized host

This commit enables CSMA-CA on the serialized host.

Signed-off-by: Pawel Kwiek <pawel.kwiek@nordicsemi.no>
This commit is contained in:
Pawel Kwiek 2021-01-20 12:11:58 +01:00 committed by Anas Nashif
commit f88cc17627

View file

@ -193,8 +193,7 @@ static enum ieee802154_hw_caps nrf5_get_capabilities(const struct device *dev)
{
return IEEE802154_HW_FCS |
IEEE802154_HW_FILTER |
#if !defined(CONFIG_NRF_802154_SL_OPENSOURCE) && \
!defined(CONFIG_NRF_802154_SER_HOST)
#if !defined(CONFIG_NRF_802154_SL_OPENSOURCE)
IEEE802154_HW_CSMA |
#ifdef CONFIG_IEEE802154_NRF5_PKT_TXTIME
IEEE802154_HW_TXTIME |
@ -434,8 +433,7 @@ static int nrf5_tx(const struct device *dev,
case IEEE802154_TX_MODE_CCA:
ret = nrf_802154_transmit_raw(nrf5_radio->tx_psdu, true);
break;
#if !defined(CONFIG_NRF_802154_SL_OPENSOURCE) && \
!defined(CONFIG_NRF_802154_SER_HOST)
#if !defined(CONFIG_NRF_802154_SL_OPENSOURCE)
case IEEE802154_TX_MODE_CSMA_CA:
nrf_802154_transmit_csma_ca_raw(nrf5_radio->tx_psdu);
break;