<h3>Contribution description</h3>
<p><code>mlme_request.mib.type</code> must be <code>MIB_ACTIVATION_METHOD</code> to set the LoRaWAN netif's activation method.</p>
<h3>Testing procedure</h3>
<pre><code>make -C examples/gnrc_lorawan flash term
> ifconfig
2020-05-09 20:24:15,083 # ifconfig
2020-05-09 20:24:15,092 # Iface  4  HWaddr: 00:00:00:00  Frequency: 868299987Hz  BW: 125kHz  SF: 12  CR: 4/5  Link: down 
2020-05-09 20:24:15,094 #            TX-Power: 14dBm  State: SLEEP  Demod margin.: 0  Num gateways.: 0 
2020-05-09 20:24:15,095 #           OTAA 
2020-05-09 20:24:15,097 #           L2-PDU:8447 
2020-05-09 20:24:15,098 #           
> ifconfig 4 -otaa
2020-05-09 20:24:29,943 #  ifconfig 4 -otaa
2020-05-09 20:24:29,944 # success: unset option
> ifconfig 4 up
2020-05-09 20:24:37,029 #  ifconfig 4 up
2020-05-09 20:24:37,030 # ABP start
> ifconfig
2020-05-09 20:24:39,118 #  ifconfig
2020-05-09 20:24:39,126 # Iface  4  HWaddr: 00:00:00:00  Frequency: 868299987Hz  BW: 125kHz  SF: 12  CR: 4/5  Link: up 
2020-05-09 20:24:39,131 #            TX-Power: 14dBm  State: SLEEP  Demod margin.: 0  Num gateways.: 0 
2020-05-09 20:24:39,134 #           L2-PDU:8447 
2020-05-09 20:24:39,136 #           
</code></pre>
<p>Without this patch, the device stays <code>down</code>.</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/14048'>https://github.com/RIOT-OS/RIOT/pull/14048</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>net/gnrc/netif/lorawan: fixed deprecated NETOPT_LINK_CONNECTED</li>
  <li>net/gnrc/netif/lorawan: fixed ABP device activation</li>
  <li>examples/gnrc_lorawan: fixed README</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/14048/files#diff-e9439b4d84198a09d9f17a7ef37e1c18">examples/gnrc_lorawan/README.md</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/14048/files#diff-385d2a03ea8a97a25dbb4c48d127beb1">sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c</a>
    (5)
  </li>
</ul>

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