mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19475
19475: gnrc_netif/lorawan: fix setting nwkskey via NETOPT r=MrKevinWeiss a=jia200x Co-authored-by: Jose Alamos <jose@alamos.cc>
This commit is contained in:
commit
a87634cf91
@ -559,7 +559,7 @@ static int _set(gnrc_netif_t *netif, const gnrc_netapi_opt_t *opt)
|
||||
case NETOPT_LORAWAN_SNWKSINTKEY:
|
||||
case NETOPT_LORAWAN_NWKSENCKEY:
|
||||
assert(opt->data_len == LORAMAC_FNWKSINTKEY_LEN);
|
||||
_memcpy_reversed(netif->lorawan.fnwksintkey, opt->data,
|
||||
memcpy(netif->lorawan.fnwksintkey, opt->data,
|
||||
LORAMAC_FNWKSINTKEY_LEN);
|
||||
break;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user