From 93be99a55f09976b179c1ace6193b536742ce229 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:15:51 +0200 Subject: [PATCH 1/2] nsysccr/nfc: Add missing ranges to `CCRCDCNfcReadT2TResponse` --- include/nsysccr/nfc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nsysccr/nfc.h b/include/nsysccr/nfc.h index 4b32dd074..46cbf1335 100644 --- a/include/nsysccr/nfc.h +++ b/include/nsysccr/nfc.h @@ -520,7 +520,9 @@ struct WUT_PACKED CCRCDCNfcReadT2TResponse uint8_t uid[10]; uint8_t version[8]; WUT_PADDING_BYTES(0x10); - uint8_t data[0x3A9]; + uint8_t numRanges; + CCRCDCNfcReadT2TRange ranges[4]; + uint8_t data[0x3A0]; uint8_t signature[0x20]; }; WUT_CHECK_SIZE(CCRCDCNfcReadT2TResponse, 0x3F0); From a4bfe9b5c96145a6c538d4190950e1271fbe57bd Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:29:20 +0200 Subject: [PATCH 2/2] `CCRCDCNfcWriteT2TRange` is offset and size instead of start and end --- include/nsysccr/nfc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nsysccr/nfc.h b/include/nsysccr/nfc.h index 46cbf1335..bbd87f5b0 100644 --- a/include/nsysccr/nfc.h +++ b/include/nsysccr/nfc.h @@ -529,8 +529,8 @@ WUT_CHECK_SIZE(CCRCDCNfcReadT2TResponse, 0x3F0); struct WUT_PACKED CCRCDCNfcWriteT2TRange { - uint8_t start; - uint8_t end; + uint8_t offset; + uint8_t size; uint8_t data[0xF0]; }; WUT_CHECK_SIZE(CCRCDCNfcWriteT2TRange, 0xF2);