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:
commit
96d2fd05a4
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user