From 075445b811394bfb2e9aafffe58c31eb3f1d4faf Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Thu, 21 Jan 2021 15:11:42 +0100 Subject: [PATCH] drivers: ieee802154_nrf5: Allocate net_pkt from correct pool The driver allocated packet from the TX pool on its RX path. Fix this by using a correct allocator function. Signed-off-by: Robert Lubos --- drivers/ieee802154/ieee802154_nrf5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ieee802154/ieee802154_nrf5.c b/drivers/ieee802154/ieee802154_nrf5.c index e7659d9d145..93342174f55 100644 --- a/drivers/ieee802154/ieee802154_nrf5.c +++ b/drivers/ieee802154/ieee802154_nrf5.c @@ -133,8 +133,8 @@ static void nrf5_rx_thread(void *arg1, void *arg2, void *arg3) LOG_DBG("Frame received"); - pkt = net_pkt_alloc_with_buffer(nrf5_radio->iface, pkt_len, - AF_UNSPEC, 0, K_NO_WAIT); + pkt = net_pkt_rx_alloc_with_buffer(nrf5_radio->iface, pkt_len, + AF_UNSPEC, 0, K_NO_WAIT); if (!pkt) { LOG_ERR("No pkt available"); goto drop;