#include <nitro/wm.h>
typedef struct WMStartScanCallback
{
u16 apiid;
u16 errcode;
u16 wlCmdID;
u16 wlResult;
u16 state;
u8 macAddress[6];
u16 channel;
u16 linkLevel;
u16 ssidLength;
u16 ssid[16];
u16 gameInfoLength;
WMGameInfo gameInfo;
} WMStartScanCallback;
The structure that is passed to the callback function that is related to WM_StartScan.
| apiid | The ID of the API that has become the callback generation source. This argument is the same as the WMApiid enumerated type. Here, it is fixed as WM_APIID_START_SCAN. |
| errcode | Asynchronous process results. The same as the WMErrCode enumerated type. |
| wlCmdID | If errcode is WM_ERRCODE_FAILED, this function will store the ID of the command that was in error in the wireless firmware. |
| wlResult | If errcode is WM_ERRCODE_FAILED, this function will store the code that was the source of the error in the wireless firmware. |
| state | If errcode is WM_ERRCODE_SUCCESS, the WM Cause Code that generated the callback will be stored. There are two causes:WM_STATECODE_PARENT_NOT_FOUND, WM_STATECODE_PARENT_FOUND. |
| macAddress | If state is WM_STATECODE_PARENT_FOUND, the MAC address of the found parent will be stored. |
| channel | If state is WM_STATECODE_PARENT_FOUND, the channel of the found parent will be stored. |
| linkLevel | If the state is WM_STATECODE_PARENT_FOUND, the link strength at the time that the parent was found is stored. |
| ssidLength | If state is WM_STATECODE_PARENT_FOUND, the length of the found parent's verification ID will be stored in bytes. |
| ssid | If state is WM_STATECODE_PARENT_FOUND, the verification ID of the found parent will be stored. |
| gameInfoLength | If state is WM_STATECODE_PARENT_FOUND, the length of the found parent's game specific information will be stored in bytes. |
| gameInfo | If state is WM_STATECODE_PARENT_FOUND, the game specific information of the found parent will be stored. |
10/05/2004 Standardized MAC address as u8 type.
08/30/2004 Added the member for the link strength at the time the parent was found.
08/10/2004 Corrected the callback generation causes.
08/02/2004 Standardized structure names.
07/29/2004 Initial version.