Skip to content
Snippets Groups Projects
Unverified Commit 556a1e31 authored by Marian Buschsieweke's avatar Marian Buschsieweke
Browse files

drivers/cc110x: Use NETOPT_MAX_DPU_SIZE

Updated cc110x to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
parent 646a7b79
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len) ...@@ -109,7 +109,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
assert(value_len > 0); assert(value_len > 0);
*((uint8_t *)value) = cc110x->radio_address; *((uint8_t *)value) = cc110x->radio_address;
return sizeof(uint8_t); return sizeof(uint8_t);
case NETOPT_MAX_PACKET_SIZE: case NETOPT_MAX_PDU_SIZE:
assert(value_len > 0); assert(value_len > 0);
*((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE; *((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE;
return sizeof(uint16_t); return sizeof(uint16_t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment