<p></p>
<p><b>@jia200x</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/15761#discussion_r648254491">tests/ieee802154_hal/main.c</a>:</p>
<pre style='color:#555'>> @@ -722,16 +693,170 @@ static int _caps_cmd(int argc, char **argv)
     return 0;
 }
 
+uint8_t payload[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ornare lacinia mi elementum interdum ligula.";
+
+static int send(uint8_t *dst, size_t dst_len, iolist_t iol_data, size_t num, size_t time)
+{
+    uint8_t flags;
+    uint8_t mhr[IEEE802154_MAX_HDR_LEN];
+    int mhr_len;
+
+    le_uint16_t src_pan, dst_pan;
+
+    flags = IEEE802154_FCF_TYPE_DATA;// | IEEE802154_FCF_ACK_REQ;
</pre>
<p>This should be configurable. You can pass it in the function arguments:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">static</span> <span class="pl-k">int</span> <span class="pl-en">send</span>(<span class="pl-c1">uint8_t</span> *dst, <span class="pl-c1">size_t</span> dst_len, <span class="pl-c1">iolist_t</span> iol_data, <span class="pl-c1">size_t</span> num, <span class="pl-c1">size_t</span> time, <span class="pl-k">bool</span> ack_req)
...
  flags = IEEE802154_FCF_TYPE_DATA;
  <span class="pl-k">if</span> (ack_req) {
      flags |= IEEE802154_FCF_ACK_REQ;
  }</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/15761#pullrequestreview-679588500">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYD4UMZ5SCZQH2GQITLTR5NKNANCNFSM4WAZE4IQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYHR3KVOI27AUHY2YNTTR5NKNA5CNFSM4WAZE4I2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFCA3FFA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/15761#pullrequestreview-679588500",
"url": "https://github.com/RIOT-OS/RIOT/pull/15761#pullrequestreview-679588500",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>