mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #8111 from hahchenchen/tests-cc110x
cc110x-netdev.c: add NETOPT_ADDR_LEN.
This commit is contained in:
commit
b2b2071142
@ -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…
x
Reference in New Issue
Block a user