<h3>Contribution description</h3>
<p>This PR does essentially 3 things:</p>
<ul>
<li>Move some of the initialization code of netdev_ieee802154_submac from <code>netdev_submac_ieee802154_init</code> to the actual <code>_init</code> function of <code>netdev_driver_t</code>. This is required in order to make sure the device is initialized before setting netdev stuff.</li>
<li>Fix the default SubGHz page</li>
<li>Call <code>confirm_set_trx_state</code> after setting the state to RX_ON during initialization. In some cases, the radio was not ready to do a state transition because <code>request_set_trx_state</code> didn't finish.</li>
</ul>

<h3>Testing procedure</h3>
<ul>
<li>Ensure hal dependent radios (cc2538, nrf52840) still work with <code>gnrc_networking</code> and <code>tests/ieee802154_hal</code></li>
</ul>

<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/16533'>https://github.com/RIOT-OS/RIOT/pull/16533</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>ieee802154/submac: fix default SubGHz page</li>
  <li>ieee802154/submac: call confirm_set_trx_state after initialization</li>
  <li>netdev_ieee802154_submac: fix initialization code</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16533/files#diff-68b2ce720fb85edf7d2d151b240c06e4e94653c2efd1088a0c143c670739e32c">drivers/netdev_ieee802154_submac/netdev_ieee802154_submac.c</a>
    (35)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16533/files#diff-57071dfbe10ebb068f8742904b659a15c0edf3117d9baaea91985a55d0d9dea2">sys/net/link_layer/ieee802154/submac.c</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16533.patch'>https://github.com/RIOT-OS/RIOT/pull/16533.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16533.diff'>https://github.com/RIOT-OS/RIOT/pull/16533.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/16533">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGPL2XIO33MPKQGSWDTRSYXBANCNFSM46HQTYPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYCR2PZAVYIIP6M7AKTTRSYXBA5CNFSM46HQTYP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NTSQ5AQ.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/16533",
"url": "https://github.com/RIOT-OS/RIOT/pull/16533",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>