<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1301112" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/benpicco">@benpicco</a> So I added some print statements to the <code>_recv()</code> function on line 95 of <code>sys/net/gnrc/netif/ieee802154/gnrc_netif_ieee802154.c</code> (where <code>dev->driver->recv()</code> is supposed to be called twice) and I found out that the first call returns an integer (i.e., <code>bytes_expected</code>) that is neither <code>bytes_expected >= (int)IEEE802154_MIN_FRAME_LEN</code> nor <code>bytes_expected > 0</code> and hence a NULL pointer (<code>gnrc_pktsnip_t *pkt = NULL;</code>) is returned.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12128?email_source=notifications&email_token=ABE7WYDGH4IJER3AUJXERNDQMG53RA5CNFSM4ISOCPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD746HYI#issuecomment-536470497">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDOPTJX7YECV6NW2ZLQMG53RANCNFSM4ISOCPJQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYBKUXCFH2YLKWU3PHDQMG53RA5CNFSM4ISOCPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD746HYI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12128?email_source=notifications\u0026email_token=ABE7WYDGH4IJER3AUJXERNDQMG53RA5CNFSM4ISOCPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD746HYI#issuecomment-536470497",
"url": "https://github.com/RIOT-OS/RIOT/pull/12128?email_source=notifications\u0026email_token=ABE7WYDGH4IJER3AUJXERNDQMG53RA5CNFSM4ISOCPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD746HYI#issuecomment-536470497",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>