mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/cc110x: Fixed get NETOPT_MAX_PACKET_SIZE
netdev_driver_t::get(NETOPT_MAX_PACKET_SIZE) used to return the maximum frame size instead of the maximum layer 2 PDU size.
This commit is contained in:
parent
4183e16820
commit
fc1b7f1e35
@ -111,7 +111,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
|
||||
return sizeof(uint8_t);
|
||||
case NETOPT_MAX_PACKET_SIZE:
|
||||
assert(value_len > 0);
|
||||
*((uint16_t *)value) = CC110X_PACKET_LENGTH;
|
||||
*((uint16_t *)value) = CC110X_PACKET_LENGTH - CC110X_L2_HDR_SIZE;
|
||||
return sizeof(uint16_t);
|
||||
case NETOPT_IPV6_IID:
|
||||
return _get_iid(dev, value, value_len);
|
||||
|
Loading…
Reference in New Issue
Block a user