From 8b9e06482359bcfead9e684b5fa44d9ec1075f8c Mon Sep 17 00:00:00 2001 From: Lucas Dietrich Date: Fri, 22 Sep 2023 13:37:02 +0200 Subject: [PATCH] lorawan: Update data type of dev_nonce in lorawan_join_otaa struct Make the dev_nonce size match the LoRaWAN specification, which is 2 bytes. Signed-off-by: Lucas Dietrich --- include/zephyr/lorawan/lorawan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zephyr/lorawan/lorawan.h b/include/zephyr/lorawan/lorawan.h index 924ed6ec276..519e6e4bea1 100644 --- a/include/zephyr/lorawan/lorawan.h +++ b/include/zephyr/lorawan/lorawan.h @@ -107,7 +107,7 @@ struct lorawan_join_otaa { * increasing for each OTAA join with the same EUI. The DevNonce * should be stored in non-volatile memory by the application. */ - uint32_t dev_nonce; + uint16_t dev_nonce; }; /**