From b5b035ca1442fffab93ded7c0e78fb17e579bd10 Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Fri, 15 Nov 2019 15:10:52 +0100 Subject: [PATCH] nimble/netif: use gnrc_netif_hdr_set_netif() --- pkg/nimble/netif/nimble_netif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/nimble/netif/nimble_netif.c b/pkg/nimble/netif/nimble_netif.c index f70e074d0e..38906ed387 100644 --- a/pkg/nimble/netif/nimble_netif.c +++ b/pkg/nimble/netif/nimble_netif.c @@ -293,8 +293,7 @@ static void _on_data(nimble_netif_conn_t *conn, struct ble_l2cap_event *event) } /* we need to add the device PID to the netif header */ - gnrc_netif_hdr_t *netif_hdr = (gnrc_netif_hdr_t *)if_snip->data; - netif_hdr->if_pid = _nimble_netif->pid; + gnrc_netif_hdr_set_netif(if_snip->data, _nimble_netif); /* allocate space in the pktbuf to store the packet */ gnrc_pktsnip_t *payload = gnrc_pktbuf_add(if_snip, NULL, rx_len, _nettype);