<h3>Contribution description</h3>
<p>This commit sets the correct value to the MCU_CTRL bit for the<br>
cc2538_rf. This variable is used to detect when the radio is doing<br>
transmission with CCA. Since this was not set to 1 when sending without<br>
CCA, the <code>confirm_transmit</code> function returned -EAGAIN after the TX_DONE<br>
event (which violates the HAL API).</p>
<p>This error was discovered using some Radio HAL riotctrl scripts by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/LarsKowoll/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LarsKowoll">@LarsKowoll</a>.</p>

<h3>Testing procedure</h3>
<p>This would probably pop up if one tries to transmit with direct mode using the cc2538_rf</p>

<h3>Issues/PRs references</h3>
<p>None so far</p>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/15726'>https://github.com/RIOT-OS/RIOT/pull/15726</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>cc2538_rf/radio_hal: fix transmit function</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15726/files#diff-70c37486e389ccf6a2c01b061d234cec738f962dbaa00cb02f559739974d3894">cpu/cc2538/radio/cc2538_rf_radio_ops.c</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/15726.patch'>https://github.com/RIOT-OS/RIOT/pull/15726.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/15726.diff'>https://github.com/RIOT-OS/RIOT/pull/15726.diff</a></li>
</ul>

<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/15726">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYH5XCE2ERXFSGHBIBLSY3O6XANCNFSM4V2IWSBQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYDPRRZYGYTOW44EWDTSY3O6XA5CNFSM4V2IWSB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LU4ZDPA.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/15726",
"url": "https://github.com/RIOT-OS/RIOT/pull/15726",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>