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

gnrc_xbee: use gnrc_netif_hdr_set_netif()

This commit is contained in:
Martine Lenders 2018-12-12 19:44:59 +01:00 committed by Martine S. Lenders
parent 92a8e5d0ee
commit 69eb7069e9
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -86,7 +86,7 @@ static gnrc_pktsnip_t *xbee_adpt_recv(gnrc_netif_t *netif)
return NULL;
}
netif_hdr = (gnrc_netif_hdr_t *)netif_snip->data;
netif_hdr->if_pid = netif->pid;
gnrc_netif_hdr_set_netif(netif_hdr, netif);
netif_hdr->rssi = l2hdr.rssi;
if (l2hdr.bcast) {
netif_hdr->flags = GNRC_NETIF_HDR_FLAGS_BROADCAST;