tests/driver_at86rf2xx: Use NETOPT_MAX_DPU_SIZE

Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
This commit is contained in:
Marian Buschsieweke 2019-02-18 20:12:06 +01:00
parent 0c03c63c0e
commit 1b5f615554
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -61,7 +61,7 @@ int ifconfig_list(int idx)
} }
printf(", Source address length: %u", (unsigned)u16_val); printf(", Source address length: %u", (unsigned)u16_val);
res = get((netdev_t *)dev, NETOPT_MAX_PACKET_SIZE, &u16_val, res = get((netdev_t *)dev, NETOPT_MAX_PDU_SIZE, &u16_val,
sizeof(u16_val)); sizeof(u16_val));
if (res < 0) { if (res < 0) {
puts("(err)"); puts("(err)");