diff --git a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c index 9fac72b9b5..fcb20a547a 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c @@ -265,6 +265,10 @@ static int _confirm_op(ieee802154_dev_t *dev, ieee802154_hal_op_t op, void *ctx) state = STATE_IDLE; enable_shorts = true; + if (info) { + info->status = (_state == STATE_CCA_BUSY) ? TX_STATUS_MEDIUM_BUSY : TX_STATUS_SUCCESS; + } + break; case IEEE802154_HAL_OP_SET_RX: eagain = (radio_state == RADIO_STATE_STATE_RxRu); @@ -291,10 +295,6 @@ static int _confirm_op(ieee802154_dev_t *dev, ieee802154_hal_op_t op, void *ctx) _state = state; - if (info) { - info->status = (_state == STATE_CCA_BUSY) ? TX_STATUS_MEDIUM_BUSY : TX_STATUS_SUCCESS; - } - if (enable_shorts) { NRF_RADIO->SHORTS = DEFAULT_SHORTS; DEBUG("[nrf802154] TX Finished\n");