mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
wireless/ieee802154: Removes msdu_length from meta-data since it is intrinsically in the IOB
This commit is contained in:
@@ -1078,7 +1078,7 @@ int mac802154_req_data(MACHANDLE mac,
|
||||
* sublayer will set the Frame Version to one. [1] pg. 118.
|
||||
*/
|
||||
|
||||
if (meta->msdu_length > IEEE802154_MAX_SAFE_MAC_PAYLOAD_SIZE)
|
||||
if ((frame->io_len - frame->io_offset) > IEEE802154_MAX_SAFE_MAC_PAYLOAD_SIZE)
|
||||
{
|
||||
*frame_ctrl |= IEEE802154_FRAMECTRL_VERSION;
|
||||
}
|
||||
|
||||
@@ -449,9 +449,9 @@ static ssize_t mac802154dev_write(FAR struct file *filep,
|
||||
iob->io_offset = ret;
|
||||
iob->io_len = iob->io_offset;
|
||||
|
||||
memcpy(&iob->io_data[iob->io_offset], tx->payload, tx->meta.msdu_length);
|
||||
memcpy(&iob->io_data[iob->io_offset], tx->payload, tx->length);
|
||||
|
||||
iob->io_len += tx->meta.msdu_length;
|
||||
iob->io_len += tx->length;
|
||||
|
||||
/* If this is a blocking operation, we need to setup a wait struct so we
|
||||
* can unblock when the packet transmission has finished. If this is a
|
||||
|
||||
Reference in New Issue
Block a user