Skip to content

Commit

Permalink
fixup! gnrc_netif: centralize function to get l2addr NETOPT
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 7, 2019
1 parent dbbaaab commit c066069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/gnrc/netif/gnrc_netif_device_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ netopt_t gnrc_netif_get_l2addr_opt(gnrc_netif_t *netif)
r = dev->driver->get(dev, NETOPT_SRC_LEN, &tmp, sizeof(tmp));
assert(r == sizeof(tmp));
assert(r <= ((int)UINT8_MAX));
(void)r;
netif->l2addr_len = (uint8_t)tmp;
if (tmp == IEEE802154_LONG_ADDRESS_LEN) {
res = NETOPT_ADDRESS_LONG;
Expand Down

0 comments on commit c066069

Please sign in to comment.