1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

drivers/cc110x: Use NETOPT_MAX_DPU_SIZE

Updated cc110x to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
This commit is contained in:
Marian Buschsieweke 2019-02-04 12:44:09 +01:00
parent 646a7b79c8
commit 556a1e31ff
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -109,7 +109,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
assert(value_len > 0);
*((uint8_t *)value) = cc110x->radio_address;
return sizeof(uint8_t);
case NETOPT_MAX_PACKET_SIZE:
case NETOPT_MAX_PDU_SIZE:
assert(value_len > 0);
*((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE;
return sizeof(uint16_t);