When using N7610C API to generate an 802.15.4 frame, the resulting Data Length is wrong. The MAC payload length is configured using:
api.WaveformSettings.PhyPayload.DataLength = X
api.WaveformSettings.ZBSettings.PhyPayload.DataLength = X
However the resulting frame has X + 2 bytes as MAC payload length. Two bytes (0x00 0x00) are always added at the end of the payload.
In the case the frame is generated using Signal Studio for IoT interface as indicated in 802.15.4 Setup the MAC payload length is correct.
Any idea on why this might be happening?