Changes

234 bytes removed ,  17:14, 25 October 2020
Line 1,211: Line 1,211:  
| 0x1E || 0x21 || ServiceName ("GROUP NAME (SSID)"). NUL-terminated string. If the SSID is invalid, a new SSID is generated, however in this case the original SSID must contain a '-' character.
 
| 0x1E || 0x21 || ServiceName ("GROUP NAME (SSID)"). NUL-terminated string. If the SSID is invalid, a new SSID is generated, however in this case the original SSID must contain a '-' character.
 
|-
 
|-
| 0x3F || 0x1 || s8 Flags_mask count. Must be <=0x3F.
+
| 0x3F || 0x1 || s8 Flags count. Must be <=0x3F.
 
|-
 
|-
| 0x40 || 0x40 || Array of s8 with the above count. Each entry is an array index used to load a set of flags from a global array with the specified index. loaded_flags below is masked with the flags loaded here. global_flags are also masked with flags loaded from here.
+
| 0x40 || 0x40 || Array of s8 with the above count. Each entry value must be <=0x3F. Each entry is an array index used to load a set of flags from a global array with the specified index. global_flags are also masked with flags loaded from here.
 
|-
 
|-
 
| 0x80 || 0x1 || SupportedPlatform. Must match value 1. 0 is PlatformIdNX, 1 is PlatformIdFuji.
 
| 0x80 || 0x1 || SupportedPlatform. Must match value 1. 0 is PlatformIdNX, 1 is PlatformIdFuji.
Line 1,240: Line 1,240:  
|-
 
|-
 
| 0x8F || 0x1 || If zero, a default value of 0x20 is used.
 
| 0x8F || 0x1 || If zero, a default value of 0x20 is used.
|-
  −
| 0x10F || 0x1 || Flags count.
  −
|-
  −
| 0x110 || {above count} || Array of s8 with the above count for total entries. The flags are loaded by: <nowiki>"loaded_flags |= BIT(s8_entryvalue)"</nowiki>, with each entry. Afterwards, loaded_flags is masked with 0x7. loaded_flags must be non-zero.
   
|-
 
|-
 
| 0x1C0 || 0x1 || PresharedKeyBinarySize. Must be 0x20 during key derivation.
 
| 0x1C0 || 0x1 || PresharedKeyBinarySize. Must be 0x20 during key derivation.
Line 1,250: Line 1,246:  
|}
 
|}
   −
The above loaded_flags are used when +0x8A is 0. global_flags are loaded from global data. These flags are only used with [[#CreateGroup]]/[[#Join]]. Flags:
+
loaded_flags are first loaded from elsewhere, then masked with the above flags when available. loaded_flags are used when +0x8A is 0. global_flags are loaded from global data. These flags are only used with [[#CreateGroup]]/[[#Join]]. Flags:
 
* Bit2 clear:
 
* Bit2 clear:
 
** global_flags must be non-zero, and loaded_flags bit1 must be set.
 
** global_flags must be non-zero, and loaded_flags bit1 must be set.