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

Merge pull request #11926 from miri64/gnrc_cc110x/enh/use-netif-setter

gnrc_cc110x: use gnrc_netif_hdr_set_netif()
This commit is contained in:
Martine Lenders 2019-07-30 19:57:30 +02:00 committed by GitHub
commit 007de266d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
gnrc_netif_hdr_set_dst_addr(netif_hdr->data, (uint8_t*)&cc110x_pkt->address, addr_len);
}
((gnrc_netif_hdr_t *)netif_hdr->data)->if_pid = thread_getpid();
gnrc_netif_hdr_set_netif(netif_hdr->data, netif);
((gnrc_netif_hdr_t *)netif_hdr->data)->lqi = cc110x->pkt_buf.lqi;
((gnrc_netif_hdr_t *)netif_hdr->data)->rssi = cc110x->pkt_buf.rssi;