1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/cc110x: Use NETOPT_MAX_PDU_SIZE

Replaced deprecated NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE
This commit is contained in:
Marian Buschsieweke 2019-10-18 17:51:31 +02:00
parent 2fb4a79d9a
commit cf9c84a00d
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -528,7 +528,7 @@ static int cc110x_get(netdev_t *netdev, netopt_t opt,
assert(max_len == sizeof(gnrc_nettype_t));
*((gnrc_nettype_t *)val) = CC110X_DEFAULT_PROTOCOL;
return sizeof(gnrc_nettype_t);
case NETOPT_MAX_PACKET_SIZE:
case NETOPT_MAX_PDU_SIZE:
assert(max_len == sizeof(uint16_t));
*((uint16_t *)val) = CC110X_MAX_FRAME_SIZE - sizeof(cc1xxx_l2hdr_t);
return sizeof(uint16_t);