Skip to content

Commit 3d63165

Browse files
e-rkcfriedt
authored andcommitted
drivers: ieee802154: nrf5: Remove temporary API migration code
The new nrf-802154 now has the updated API signatures. The migration code is no longer needed. Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent a25abc3 commit 3d63165

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/ieee802154/ieee802154_nrf5.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,9 @@ static bool nrf5_tx_immediate(struct net_pkt *pkt, uint8_t *payload, bool cca)
499499
},
500500
};
501501

502-
#ifdef NRF_802154_TX_FUNCTIONS_RETURN_ERROR_CODE
503502
nrf_802154_tx_error_t result = nrf_802154_transmit_raw(payload, &metadata);
504503

505504
return result == NRF_802154_TX_ERROR_NONE;
506-
#else
507-
return nrf_802154_transmit_raw(payload, &metadata);
508-
#endif
509505
}
510506

511507
#if NRF_802154_CSMA_CA_ENABLED
@@ -522,13 +518,9 @@ static bool nrf5_tx_csma_ca(struct net_pkt *pkt, uint8_t *payload)
522518
},
523519
};
524520

525-
#ifdef NRF_802154_TX_FUNCTIONS_RETURN_ERROR_CODE
526521
nrf_802154_tx_error_t result = nrf_802154_transmit_csma_ca_raw(payload, &metadata);
527522

528523
return result == NRF_802154_TX_ERROR_NONE;
529-
#else
530-
return nrf_802154_transmit_csma_ca_raw(payload, &metadata);
531-
#endif
532524
}
533525
#endif
534526

@@ -585,13 +577,9 @@ static bool nrf5_tx_at(struct nrf5_802154_data *nrf5_radio, struct net_pkt *pkt,
585577
uint64_t tx_at = nrf_802154_timestamp_phr_to_shr_convert(
586578
net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC);
587579

588-
#ifdef NRF_802154_TX_FUNCTIONS_RETURN_ERROR_CODE
589580
nrf_802154_tx_error_t result = nrf_802154_transmit_raw_at(payload, tx_at, &metadata);
590581

591582
return result == NRF_802154_TX_ERROR_NONE;
592-
#else
593-
return nrf_802154_transmit_raw_at(payload, tx_at, &metadata);
594-
#endif
595583
}
596584
#endif /* CONFIG_NET_PKT_TXTIME */
597585

0 commit comments

Comments
 (0)