Changes

Jump to navigation Jump to search
483 bytes added ,  01:06, 12 May 2020
no edit summary
Line 190: Line 190:     
=== Scan ===
 
=== Scan ===
Takes a type-0x22 output buffer containing an array of [[#NetworkInfo]], a s16, a 0x60-byte struct with 8-byte alignment, returns an output s16.
+
Takes a type-0x22 output buffer containing an array of [[#NetworkInfo]], a s16, a [[#ScanFilter]], returns an output s16.
    
sdknso copies the output s16 to a s32, the value passed for the input s16 is from an user-specified s32.
 
sdknso copies the output s16 to a s32, the value passed for the input s16 is from an user-specified s32.
    
=== ScanPrivate ===
 
=== ScanPrivate ===
Takes a type-0x22 output buffer containing an array of [[#NetworkInfo]], a s16, a 0x60-byte struct with 8-byte alignment, returns an output s16.
+
Takes a type-0x22 output buffer containing an array of [[#NetworkInfo]], a s16, a [[#ScanFilter]], returns an output s16.
    
sdknso copies the output s16 to a s32, the value passed for the input s16 is from an user-specified s32.
 
sdknso copies the output s16 to a s32, the value passed for the input s16 is from an user-specified s32.
Line 589: Line 589:  
= NetworkInfo =
 
= NetworkInfo =
 
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct.
 
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct.
 +
 +
= ScanFilter =
 +
This is "nn::ldn::ScanFilter". This is a 0x60-byte struct with 8-byte alignment.
 +
 +
sdknso copies the input ScanFilter to a tmp struct on stack, which is then used with the cmd.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x20 ||
 +
|-
 +
| 0x20 || 0x4 ||
 +
|-
 +
| 0x24 || 0x6 || [[#MacAddress]] (Only copied with [[#ScanPrivate]])
 +
|-
 +
| 0x2A || 0x22 || [[#Ssid]]
 +
|-
 +
| 0x5C || 0x4 || Masked with 0x37 for [[#Scan]], with [[#ScanPrivate]] this is masked with 0x3F.
 +
|}
    
= SecurityParameter =
 
= SecurityParameter =
Line 609: Line 631:     
= UserConfig =
 
= UserConfig =
This is "nn::ldn::UserConfig". This is a 0x20-byte struct.
+
This is "nn::ldn::UserConfig". This is a 0x20-byte struct. See [[#UserConfigSf]].
    
= UserConfigSf =
 
= UserConfigSf =

Navigation menu