gnrc_netif_ieee802154: use pid member in netif header

Use the `gnrc_netif_t::pid` member instead of the pid of the current thread when generating the the `gnrc_netif_hdr` in `gnrc_netif_ieee802154::_recv` function.
This commit is contained in:
Gunar Schorcht 2019-01-10 00:09:52 +01:00
parent 3876dd4bb9
commit dbb5e886e5

View File

@ -107,7 +107,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 = thread_getpid();
hdr->if_pid = netif->pid;
LL_APPEND(pkt, netif_snip);
}
else {