Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5fa2528

Browse files
committedMar 24, 2019
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
1 parent 10b783d commit 5fa2528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎sys/net/gnrc/netif/gnrc_netif.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1212,12 +1212,12 @@ static void _test_options(gnrc_netif_t *netif)
12121212
assert(netif->flags & GNRC_NETIF_FLAGS_HAS_L2ADDR);
12131213
assert((IEEE802154_SHORT_ADDRESS_LEN == netif->l2addr_len) ||
12141214
(IEEE802154_LONG_ADDRESS_LEN == netif->l2addr_len));
1215-
assert(-ENOTSUP != netif->dev->driver->get(netif->dev, NETOPT_PROTO,
1216-
&tmp, sizeof(tmp)));
12171215
#ifdef MODULE_GNRC_IPV6
12181216
#ifdef MODULE_GNRC_SIXLOWPAN
12191217
assert(netif->ipv6.mtu == IPV6_MIN_MTU);
12201218
assert(netif->sixlo.max_frag_size > 0);
1219+
assert(-ENOTSUP != netif->dev->driver->get(netif->dev, NETOPT_PROTO,
1220+
&tmp, sizeof(tmp)));
12211221
#else /* MODULE_GNRC_SIXLOWPAN */
12221222
assert(netif->ipv6.mtu < UINT16_MAX);
12231223
#endif /* MODULE_GNRC_SIXLOWPAN */

0 commit comments

Comments
 (0)
Please sign in to comment.