1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #11914 from miri64/gnrc_netif_ieee802154/enh/use-netif_hdr-setter

gnrc_netif_ieee802154: use gnrc_netif_hdr_set_netif()
This commit is contained in:
Martine Lenders 2019-07-26 08:57:21 +02:00 committed by GitHub
commit 96d2fd05a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
gnrc_netif_hdr_t *hdr = netif_snip->data;
hdr->lqi = rx_info.lqi;
hdr->rssi = rx_info.rssi;
hdr->if_pid = netif->pid;
gnrc_netif_hdr_set_netif(hdr, netif);
LL_APPEND(pkt, netif_snip);
}
else {
@ -191,7 +191,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
hdr->lqi = rx_info.lqi;
hdr->rssi = rx_info.rssi;
hdr->if_pid = thread_getpid();
gnrc_netif_hdr_set_netif(hdr, netif);
dev->driver->get(dev, NETOPT_PROTO, &pkt->type, sizeof(pkt->type));
#if ENABLE_DEBUG
DEBUG("_recv_ieee802154: received packet from %s of length %u\n",