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

pkg/nimble/netif: adapt ops->init to handle driver initialization

This commit is contained in:
Jose Alamos 2021-09-30 10:46:58 +02:00
parent 415704fa76
commit 49527fc994
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -83,7 +83,11 @@ static int _netif_init(gnrc_netif_t *netif)
{
(void)netif;
gnrc_netif_default_init(netif);
int res = gnrc_netif_default_init(netif);
if (res < 0) {
return res;
}
/* save the threads context pointer, so we can set its flags */
_netif_thread = thread_get_active();
@ -92,8 +96,9 @@ static int _netif_init(gnrc_netif_t *netif)
* of this */
_netif.sixlo.max_frag_size = 0;
#endif /* IS_USED(MODULE_GNRC_NETIF_6LO) */
res = 0;
return 0;
return res;
}
static int _send_pkt(nimble_netif_conn_t *conn, gnrc_pktsnip_t *pkt)