Changes

Jump to navigation Jump to search
1,337 bytes added ,  21:34, 15 May 2020
no edit summary
Line 708: Line 708:  
= NetworkInfo =
 
= NetworkInfo =
 
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct.
 
This is "nn::ldn::NetworkInfo". This is a 0x480-byte struct.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x8 ||
 +
|-
 +
| 0x8 || 0x2 ||
 +
|-
 +
| 0xA || 0x2 ||
 +
|-
 +
| 0xC || 0x4 ||
 +
|-
 +
| 0x10 || 0x10 ||
 +
|-
 +
| 0x20 || 0x6 || [[#MacAddress]]
 +
|-
 +
| 0x26 || 0x22 || [[#Ssid]]. After filtering with [[#Scan]] when +0x4B is value 0x2, this is overwritten with data converted from +0x10.
 +
|-
 +
| 0x4B || 0x1 ||
 +
|-
 +
| 0x4C || 0x4 ||
 +
|-
 +
| 0x50 || 0x430 ||
 +
|}
    
= ScanFilter =
 
= ScanFilter =
Line 720: Line 747:  
! Description
 
! Description
 
|-
 
|-
| 0x0 || 0x8 ||  
+
| 0x0 || 0x8 || When enabled, this will be overwritten if it's -1. During filtering if enabled, u8 [[#NetworkInfo]]+0x4B must match 0x2, and this ScanFilter field must match [[#NetworkInfo]]+0x0.
 +
|-
 +
| 0x8 || 0x2 || Padding
 +
|-
 +
| 0xA || 0x2 || During filtering if enabled, u8 [[#NetworkInfo]]+0x4B must match 0x2, and this ScanFilter field must match [[#NetworkInfo]]+0xA.
 +
|-
 +
| 0xC || 0x4 || Padding
 
|-
 
|-
| 0x8 || 0x18 ||  
+
| 0x10 || 0x10 || During filtering if enabled, u8 [[#NetworkInfo]]+0x4B must match 0x2, and this ScanFilter data must match [[#NetworkInfo]]+0x10.
 
|-
 
|-
| 0x20 || 0x4 || When enabled, must be <=0x3.
+
| 0x20 || 0x4 || When enabled, must be <=0x3, and during filtering must match u8 [[#NetworkInfo]]+0x4B.
 
|-
 
|-
| 0x24 || 0x6 || [[#MacAddress]] (Only copied with [[#ScanPrivate]])
+
| 0x24 || 0x6 || [[#MacAddress]]. Only copied with [[#ScanPrivate]]. During filtering if enabled, this must match [[#NetworkInfo]]+0x20.
 
|-
 
|-
| 0x2A || 0x22 || [[#Ssid]]
+
| 0x2A || 0x22 || [[#Ssid]]. During filtering if enabled, this must match [[#NetworkInfo]]+0x26 (the [[#Ssid]] there must be valid for this as well). The strings are compared, without verifying the length field in [[#Ssid]] matches.
 
|-
 
|-
 
| 0x4C || 0x10 || Cleared to zero for the tmp struct.
 
| 0x4C || 0x10 || Cleared to zero for the tmp struct.
Line 742: Line 775:  
! Description
 
! Description
 
|-
 
|-
| 0 || When set, enables overwriting ScanFilter+0 if it's -1.
+
| 0 || When set, enables using ScanFilter+0.
 +
|-
 +
| 1 || When set, enables using ScanFilter+0x10.
 
|-
 
|-
 
| 2 || When set, enables using ScanFilter+0x20.
 
| 2 || When set, enables using ScanFilter+0x20.
Line 749: Line 784:  
|-
 
|-
 
| 4 || When set, enables using the ScanFilter [[#Ssid]].
 
| 4 || When set, enables using the ScanFilter [[#Ssid]].
 +
|-
 +
| 5 || When set, enables using ScanFilter+0xA.
 
|}
 
|}
  

Navigation menu