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:
parent
99b13cbb1b
commit
3c1f5a0dbd
@ -559,7 +559,7 @@ static int _set(gnrc_netif_t *netif, const gnrc_netapi_opt_t *opt)
|
|||||||
case NETOPT_LORAWAN_SNWKSINTKEY:
|
case NETOPT_LORAWAN_SNWKSINTKEY:
|
||||||
case NETOPT_LORAWAN_NWKSENCKEY:
|
case NETOPT_LORAWAN_NWKSENCKEY:
|
||||||
assert(opt->data_len == LORAMAC_FNWKSINTKEY_LEN);
|
assert(opt->data_len == LORAMAC_FNWKSINTKEY_LEN);
|
||||||
_memcpy_reversed(netif->lorawan.fnwksintkey, opt->data,
|
memcpy(netif->lorawan.fnwksintkey, opt->data,
|
||||||
LORAMAC_FNWKSINTKEY_LEN);
|
LORAMAC_FNWKSINTKEY_LEN);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user