[riot-notifications] [RIOT-OS/RIOT] net/gnrc/netif/lorawan: fix ABP device activation (#14048)

Juergen Fitschen notifications at github.com
Sat May 9 20:28:01 CEST 2020


### Contribution description

`mlme_request.mib.type` must be `MIB_ACTIVATION_METHOD` to set the LoRaWAN netif's activation method.

### Testing procedure

```
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 #           
```

Without this patch, the device stays `down`.

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14048

-- Commit Summary --

  * net/gnrc/netif/lorawan: fixed deprecated NETOPT_LINK_CONNECTED
  * net/gnrc/netif/lorawan: fixed ABP device activation
  * examples/gnrc_lorawan: fixed README

-- File Changes --

    M examples/gnrc_lorawan/README.md (4)
    M sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c (5)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14048.patch
https://github.com/RIOT-OS/RIOT/pull/14048.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200509/090e4eb7/attachment.htm>


More information about the notifications mailing list