1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_gomach: use gnrc_netif_hdr_set_netif()

This commit is contained in:
Martine Lenders 2018-12-12 19:46:26 +01:00 committed by Martine S. Lenders
parent e0945ad64e
commit 3c105d8b33
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -172,7 +172,7 @@ static int _parse_packet(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt,
gnrc_netif_hdr_t *netif_hdr = netif_snip->data;
netif_hdr->lqi = netif->mac.prot.gomach.rx_pkt_lqi;
netif_hdr->rssi = netif->mac.prot.gomach.rx_pkt_rssi;
netif_hdr->if_pid = netif->pid;
gnrc_netif_hdr_set_netif(netif_hdr, netif);
pkt->type = state->proto;
gnrc_pktbuf_remove_snip(pkt, pkt->next);
LL_APPEND(pkt, netif_snip);