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:
parent
3876dd4bb9
commit
dbb5e886e5
@ -107,7 +107,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
|
|||||||
gnrc_netif_hdr_t *hdr = netif_snip->data;
|
gnrc_netif_hdr_t *hdr = netif_snip->data;
|
||||||
hdr->lqi = rx_info.lqi;
|
hdr->lqi = rx_info.lqi;
|
||||||
hdr->rssi = rx_info.rssi;
|
hdr->rssi = rx_info.rssi;
|
||||||
hdr->if_pid = thread_getpid();
|
hdr->if_pid = netif->pid;
|
||||||
LL_APPEND(pkt, netif_snip);
|
LL_APPEND(pkt, netif_snip);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user