From 5fa25281859a7249167d496350c99c413b6ee035 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 24 Mar 2019 14:34:12 +0100 Subject: [PATCH] net/gnrc_netif/nrfmin: put NETOPT assert at the right place NETOPT depends on GNRC_SIXLOWPAN and should be moved inside the corresponding preprocessor conditional code --- sys/net/gnrc/netif/gnrc_netif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index 33e6b90f90..4cb0a20d26 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1212,12 +1212,12 @@ static void _test_options(gnrc_netif_t *netif) assert(netif->flags & GNRC_NETIF_FLAGS_HAS_L2ADDR); assert((IEEE802154_SHORT_ADDRESS_LEN == netif->l2addr_len) || (IEEE802154_LONG_ADDRESS_LEN == netif->l2addr_len)); - assert(-ENOTSUP != netif->dev->driver->get(netif->dev, NETOPT_PROTO, - &tmp, sizeof(tmp))); #ifdef MODULE_GNRC_IPV6 #ifdef MODULE_GNRC_SIXLOWPAN assert(netif->ipv6.mtu == IPV6_MIN_MTU); assert(netif->sixlo.max_frag_size > 0); + assert(-ENOTSUP != netif->dev->driver->get(netif->dev, NETOPT_PROTO, + &tmp, sizeof(tmp))); #else /* MODULE_GNRC_SIXLOWPAN */ assert(netif->ipv6.mtu < UINT16_MAX); #endif /* MODULE_GNRC_SIXLOWPAN */