Line 47:
Line 47:
| 2
| 2
| 0
| 0
−
| ?
+
| WD_SendWMBData
|-
|-
| 0x1009
| 0x1009
Line 120:
Line 120:
WD_SetLinkState might change which "mode"/"state" is used; 0 for Infrastructure, 1 for Ad-Hoc?
WD_SetLinkState might change which "mode"/"state" is used; 0 for Infrastructure, 1 for Ad-Hoc?
+
+
WD_SendWMBData first input buffer is the WMB data to send. In the packet, this is copied to the offset after the 06 02 01 00 bytes. First two bytes are byte-swapped, thus flags are first, size second. Input two buffer is unknown.
The state is set to the mode, upon the initial open. For Infrastructure mode, mode should be 3, while for Ad-Hoc this should be 1? Initial open meaning the first open after the device is closed, or after a IOS_Reload, without net_init being called.
The state is set to the mode, upon the initial open. For Infrastructure mode, mode should be 3, while for Ad-Hoc this should be 1? Initial open meaning the first open after the device is closed, or after a IOS_Reload, without net_init being called.
−
Configuration and info structs:
+
Configuration, info, and wd_sendwmbdata_param structs:
<source lang="c">
<source lang="c">
//wd_privacy and wd_config fields are little-endian.
//wd_privacy and wd_config fields are little-endian.
Line 205:
Line 207:
u8 filler[136];
u8 filler[136];
} wd_info;
} wd_info;
+
+
typedef struct _wd_sendwmbdata_param
+
{
+
u16 unk0;
+
u16 unk2;
+
u16 unk4;
+
u16 unk6;
+
u16 unk8;
+
u16 unka;
+
u16 unkc;
+
} wd_sendwmbdata_param;
</source>
</source>