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

drivers/xbee: Use NETOPT_MAX_DPU_SIZE

Updated xbee 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:46:35 +01:00
parent 09335b07dd
commit a3f1f21410
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -770,7 +770,7 @@ static int xbee_get(netdev_t *ndev, netopt_t opt, void *value, size_t max_len)
return sizeof(eui64_t);
case NETOPT_CHANNEL:
return _get_channel(dev, (uint8_t *)value, max_len);
case NETOPT_MAX_PACKET_SIZE:
case NETOPT_MAX_PDU_SIZE:
if (max_len < sizeof(uint16_t)) {
return -EOVERFLOW;
}