diff --git a/nx/include/switch/services/ldn.h b/nx/include/switch/services/ldn.h index f87a9769..b8ea9eaa 100644 --- a/nx/include/switch/services/ldn.h +++ b/nx/include/switch/services/ldn.h @@ -136,7 +136,7 @@ typedef struct { u16 sec_type; ///< LdnSecurityConfig::type u8 unk_x62; ///< Unknown u8 pad_x63[0x3]; ///< Padding - s8 unk_x66; ///< Unknown + s8 participant_max; ///< Maximum participants, for nodes. u8 participant_num; ///< ParticipantNum, number of set entries in nodes. If unk_x4B is not 0x2, ParticipantNum should be handled as if it's 0. LdnNodeInfo nodes[8]; ///< Array of \ref LdnNodeInfo, starting with the AccessPoint node. u8 reserved_x268[0x2]; ///< Reserved @@ -180,7 +180,7 @@ typedef struct { u16 unk_xA; ///< LdnNetworkInfo::unk_xA u8 reserved_xC[4]; ///< Cleared to zero for the tmp struct. s16 network_channel; ///< LdnNetworkInfo::network_channel. Channel, can be zero. Overwritten internally by \ref ldnCreateNetwork. - s8 unk_x12; ///< LdnNetworkInfo::unk_x66. \ref ldnCreateNetwork / \ref ldnCreateNetworkPrivate: Must be 0x1-0x8. + s8 participant_max; ///< LdnNetworkInfo::participant_max. \ref ldnCreateNetwork / \ref ldnCreateNetworkPrivate: Must be 0x1-0x8. u8 reserved_x13; ///< Cleared to zero for the tmp struct. s16 local_communication_version; ///< LdnNodeInfo::local_communication_version, for the first entry in LdnNetworkInfo::nodes. Must not be negative. u8 reserved_x16[0xA]; ///< Cleared to zero for the tmp struct. diff --git a/nx/source/services/ldn.c b/nx/source/services/ldn.c index 8c3c837a..c04e0e5a 100644 --- a/nx/source/services/ldn.c +++ b/nx/source/services/ldn.c @@ -222,7 +222,7 @@ static void _ldnCopyNetworkConfig(const LdnNetworkConfig *in, LdnNetworkConfig * out->local_communication_id = in->local_communication_id; out->unk_xA = in->unk_xA; out->network_channel = in->network_channel; - out->unk_x12 = in->unk_x12; + out->participant_max = in->participant_max; out->local_communication_version = in->local_communication_version; }