diff --git a/net/sixlowpan/sixlowpan_framelist.c b/net/sixlowpan/sixlowpan_framelist.c index 6f41a59210..3f208bb388 100644 --- a/net/sixlowpan/sixlowpan_framelist.c +++ b/net/sixlowpan/sixlowpan_framelist.c @@ -535,15 +535,11 @@ int sixlowpan_queue_frames(FAR struct ieee802154_driver_s *ieee, for (iob = qhead; iob != NULL; iob = qhead) { - /* Remove the IOB from the list */ + /* Remove the IOB containing the frame from the list */ qhead = iob->io_flink; iob->io_flink = NULL; - /* Update the MSDU length in the metadata */ - - meta.msdu_length = iob->io_len - iob->io_offset; - /* And submit the frame to the MAC */ ret = sixlowpan_frame_submit(ieee, &meta, iob); @@ -580,10 +576,6 @@ int sixlowpan_queue_frames(FAR struct ieee802154_driver_s *ieee, sixlowpan_dumpbuffer("Outgoing frame", (FAR const uint8_t *)iob->io_data, iob->io_len); - /* Update the MSDU length in the metadata */ - - meta.msdu_length = iob->io_len - iob->io_offset; - /* And submit the frame to the MAC */ ret = sixlowpan_frame_submit(ieee, &meta, iob); diff --git a/net/sixlowpan/sixlowpan_framer.c b/net/sixlowpan/sixlowpan_framer.c index b750156d36..9de555134d 100644 --- a/net/sixlowpan/sixlowpan_framer.c +++ b/net/sixlowpan/sixlowpan_framer.c @@ -226,25 +226,18 @@ int sixlowpan_meta_data(FAR struct ieee802154_driver_s *ieee, meta->dest_addr.panid = g_packet_meta.dpanid; /* Handle associated with MSDU. Will increment once per packet, not - * necesarily per frame: The MSDU handler will be used for each fragment - * of a disassembled packet. + * necesarily per frame: The same MSDU handle will be used for each + * fragment of a disassembled packet. */ meta->msdu_handle = ieee->i_msdu_handle++; - /* Number of bytes contained in the MAC Service Data Unit (MSDU) */ - - meta->msdu_length = paylen; - - /* MSDU flags that may be non-zero */ - - #ifdef CONFIG_IEEE802154_SECURITY -# warning CONFIG_IEEE802154_SECURITY not yet supported" +# warning CONFIG_IEEE802154_SECURITY not yet supported #endif #ifdef CONFIG_IEEE802154_UWB -# warning CONFIG_IEEE802154_UWB not yet supported" +# warning CONFIG_IEEE802154_UWB not yet supported #endif /* Ranging left zero */