mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf52 radio: Populate info
According to ieee802154_radio_confirm_transmit docs, the parameter of confirm_op for IEEE802154_HAL_OP_TRANSMIT is to be populated as an out parameter -- but this implementation unconditionally left info unpopulated. Thus, when run with LLVM, _fsm_state_tx_process_tx_done looked into an uninitialized info and thus crashed into failing assertions. Closes: https://github.com/RIOT-OS/RIOT/issues/17591
This commit is contained in:
parent
4aa173d37e
commit
716cd8f48b
@ -259,6 +259,7 @@ static int _confirm_op(ieee802154_dev_t *dev, ieee802154_hal_op_t op, void *ctx)
|
||||
int radio_state = NRF_RADIO->STATE;
|
||||
switch (op) {
|
||||
case IEEE802154_HAL_OP_TRANSMIT:
|
||||
info = ctx;
|
||||
eagain = (state != STATE_IDLE
|
||||
&& state != STATE_CCA_BUSY && NRF_RADIO->STATE != RADIO_STATE_STATE_Disabled);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user