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:
parent
2fb4a79d9a
commit
cf9c84a00d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user