mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-08 20:04:19 +00:00
Do not flush dev_ and join_ nonces when updating AppKey for OTAA (#22)
Signed-off-by: SAGAR PATEL <sagar.a.patel@slscorp.com>
This commit is contained in:
parent
3b426471b3
commit
25c71c5483
@ -351,6 +351,8 @@ impl DeviceService for Device {
|
||||
let dk = device_keys::DeviceKeys {
|
||||
dev_eui: dk.dev_eui,
|
||||
created_at: dk.created_at,
|
||||
dev_nonces: dk.dev_nonces,
|
||||
join_nonce: dk.join_nonce,
|
||||
nwk_key: AES128Key::from_str(&req_dk.nwk_key).map_err(|e| e.status())?,
|
||||
app_key: if !req_dk.app_key.is_empty() {
|
||||
AES128Key::from_str(&req_dk.app_key).map_err(|e| e.status())?
|
||||
|
Loading…
x
Reference in New Issue
Block a user