1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

gnrc_cc110x: use gnrc_netif_hdr_set_netif()

This commit is contained in:
Martine S. Lenders 2018-12-12 19:44:17 +01:00 committed by Martine Lenders
parent 2d1eda550a
commit d129382484

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;