From 3c1f5a0dbdcdfd234e136c4196b0c6925fc93caf Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Mon, 17 Apr 2023 12:40:42 +0200 Subject: [PATCH] gnrc_netif/lorawan: fix setting nkskey via NETOPT --- sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c b/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c index 37f2518541..4cbf3f7a66 100644 --- a/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c +++ b/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c @@ -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