mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/gnrc_netif: adapt ops->init to handle driver initialization
This commit is contained in:
parent
5f46ab72e0
commit
eb23813467
@ -116,7 +116,12 @@ static void _set_up(void)
|
||||
static inline int _test_init(gnrc_netif_t *netif)
|
||||
{
|
||||
(void)netif;
|
||||
gnrc_netif_default_init(netif);
|
||||
int res = gnrc_netif_default_init(netif);
|
||||
|
||||
if (res < 0) {
|
||||
return res;
|
||||
}
|
||||
|
||||
init_called = true;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user