Skip to content
Commit a42d6c98 authored by Robert Lubos's avatar Robert Lubos Committed by Jukka Rissanen
Browse files

drivers: ieee802154_nrf5: Block on net_pkt allocation in the RX path



Currently, if no net_pkt's are available, the radio driver RX thread
drops the 802.15.4 frame silently. This causes undesired behaviour,
where we can drop the packet which has already been acknowledged at
the 802.15.4 level.

Fix this, by blocking the RX thread if no net_pkt is avaliable. The
packets received while the RX thread is blocked will be accumulated in
the underlying nRF 802.15.4 driver, and eventually when it runs out of
internal buffers before the thread is unblocked, it'll stop
acknowledging the incoming frames.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent a8d3c8e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment