1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_netif/lorawan: fix setting nkskey via NETOPT

This commit is contained in:
Jose Alamos 2023-04-17 12:40:42 +02:00
parent 99b13cbb1b
commit 3c1f5a0dbd
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

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