Skip to content

Commit

Permalink
Merge #19475
Browse files Browse the repository at this point in the history
19475: gnrc_netif/lorawan: fix setting nwkskey via NETOPT r=MrKevinWeiss a=jia200x



Co-authored-by: Jose Alamos <[email protected]>
  • Loading branch information
bors[bot] and jia200x authored Apr 17, 2023
2 parents 82234b1 + 3c1f5a0 commit a87634c
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 a87634c

Please sign in to comment.