Skip to content

Commit

Permalink
gnrc_netif/lorawan: fix setting nkskey via NETOPT
Browse files Browse the repository at this point in the history
  • Loading branch information
jia200x committed Apr 17, 2023
1 parent 99b13cb commit 3c1f5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c1f5a0

Please sign in to comment.