1
0
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:
Martine Lenders 2017-11-22 16:23:05 +01:00 committed by GitHub
commit b2b2071142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}