1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
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:
bors[bot] 2023-04-17 13:04:37 +00:00 committed by GitHub
commit a87634cf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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