mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cc110x-netdev.c: add NETOPT_ADDR_LEN.
This commit is contained in:
parent
3d5233e2ab
commit
827ffbd048
@ -114,6 +114,10 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
|
||||
return 1;
|
||||
case NETOPT_IPV6_IID:
|
||||
return _get_iid(dev, value, value_len);
|
||||
case NETOPT_ADDR_LEN:
|
||||
case NETOPT_SRC_LEN:
|
||||
*((uint16_t *)value) = sizeof(cc110x->radio_address);
|
||||
return sizeof(uint16_t);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user