Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 6a0c198

Browse files
authored
Merge pull request #792 from TheThingsNetwork/feature/clear-session-keys
2 parents 5e153f4 + 6c3a3c3 commit 6a0c198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/handler/manager_server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ func (h *handlerManager) SetDevice(ctx context.Context, in *pb_handler.Device) (
225225
changedFields := dev.ChangedFields()
226226
for _, changedField := range changedFields {
227227
switch changedField {
228-
case "AppKey", "UsedDevNonces", "UsedAppNonces": // Allow changing the AppKey.
228+
case "AppKey", "UsedDevNonces", "DevAddr", "UsedAppNonces", "NwkSKey", "AppSKey": // Allow changing the AppKey for OTAA and the session data for ABP.
229+
case "FCntUp": // Allow updating the frame counters, as they may change between the moment the device is retrieved and the update itself.
229230
default:
230231
md, _ := metadata.FromIncomingContext(ctx)
231232
h.handler.Ctx.WithFields(ttnlog.Fields{

0 commit comments

Comments
 (0)