NWMUDS:StartScan: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
No edit summary
Steveice10 (talk | contribs)
 
(3 intermediate revisions by one other user not shown)
Line 12: Line 12:
|-
|-
| 2-14
| 2-14
| 0x34-byte input structure.
| Input [[NWM_Services|ScanInputStruct]].
|-
|-
| 15
| 15
Line 44: Line 44:
| 1
| 1
| Result code
| Result code
|}
=Input structure=
{| class="wikitable" border="1"
|-
!  Index Word
!  Description
|-
| 0
| ?
|-
| 1
| ?
|-
| 2-3
| MAC address? The 6-bytes located here are normally all 0xFF.
|-
| 4-12
| Unknown, usually zero / uninitialized?
|}
|}


=Description=
=Description=
This returns beacon data for all UDS wifi beacons received by this system.
This returns beacon data for all UDS wifi beacons received by this system, with the specified wlancommID+ID8. See also the scaninput struct.


Official user processes create a new event handle which is then passed to this command. However, those user processes don't save that handle ''anywhere'' afterwards.
Official user processes create a new event handle which is then passed to this command. However, those user processes don't save that handle ''anywhere'' afterwards.
This command can ''only'' be used when not connected to a network.

Latest revision as of 08:38, 23 July 2023

Request

Index Word Description
0 Header code [0x000F0404]
1 Output buffer max size
2-14 Input ScanInputStruct.
15 wlancommID
16 This is the ID also located at offset 0xE in the CTR-generation structure.
17 Value 0x0
18 Input event handle
19 (Size<<4) | 12
20 Output BeaconDataReply buffer ptr

Response

Index Word Description
0 Header code
1 Result code

Description

This returns beacon data for all UDS wifi beacons received by this system, with the specified wlancommID+ID8. See also the scaninput struct.

Official user processes create a new event handle which is then passed to this command. However, those user processes don't save that handle anywhere afterwards.

This command can only be used when not connected to a network.