1 /*---------------------------------------------------------------------------*
2   Project:  RevolutionSDK Extensions - libraries - wd
3   File:     WDConst.h
4 
5   Copyright 2006 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12  *---------------------------------------------------------------------------*/
13 
14 #ifndef WD_WDCONST_H_
15 #define WD_WDCONST_H_
16 
17 #ifdef  __cplusplus
18 extern "C" {
19 #endif
20 /*===========================================================================*/
21 
22 /*---------------------------------------------------------------------------*
23   Constant Definitions
24  *---------------------------------------------------------------------------*/
25 
26 #define     WD_SUCCESS              0
27 #define     WD_ERR_FATAL            (-1)
28 #define     WD_ERR_FAILURE          (-2)
29 #define     WD_ERR_ILLEGAL_PARAM    (-3)
30 #define     WD_ERR_ILLEGAL_STATUS   (-4)
31 #define     WD_ERR_INPROGRESS       (-5)
32 #define     WD_ERR_EXCLUSIVE        (-6)
33 #define     WD_ERR_INSUFFICIENT_BUF (-7)
34 
35 #define     WD_SCAN_PRIVACY_MODE_NONE           0x0000    /* no encryption */
36 #define     WD_SCAN_PRIVACY_MODE_WEP40          0x0001    /* WEP (RC4 40 bit) encryption */
37 #define     WD_SCAN_PRIVACY_MODE_WEP104         0x0002    /* WEP (RC4 104 bit) encryption */
38 #define     WD_SCAN_PRIVACY_MODE_WPA_TKIP       0x0004    /* WPA-PSK (TKIP) encryption */
39 #define     WD_SCAN_PRIVACY_MODE_WPA2_AES       0x0005    /* WPA2-PSK (AES) encryption */
40 #define     WD_SCAN_PRIVACY_MODE_WPA_AES        0x0006    /* WPA-PSK (AES) encryption */
41 #define     WD_SCAN_PRIVACY_MODE_WPA2_TKIP      0x0007    /* WPA2-PSK (TKIP) encryption */
42 #define     WD_SCAN_PRIVACY_MODE_WEP            0x0008    /* WEP (key length unknown) encryption */
43 
44 // Size of each type of data (bytes)
45 #define WD_SIZE_BSSID                       6
46 #define WD_SIZE_SSID                        32
47 
48 typedef enum WDElementID
49 {
50     WD_ELEM_SSID = 0,
51     WD_ELEM_SUPPORTED_RATES,
52     WD_ELEM_FH_PARAM_SET,
53     WD_ELEM_DS_PARAM_SET,
54     WD_ELEM_CF_PARAM_SET,
55     WD_ELEM_TIM,
56     WD_ELEM_IBSS_PARAM_SET,
57     WD_ELEM_COUNTRY,
58     WD_ELEM_HOPPING_PATTERN_PARAMS,
59     WD_ELEM_HOPPING_PATTERN_TABLE,
60     WD_ELEM_REQUEST,
61     /* 11 - 15 reserved or unused */
62     WD_ELEM_CHALLENGE_TEXT = 16,
63     /* 17 - 31 reserved */
64     WD_ELEM_POWER_CONSTRAINT = 32,
65     WD_ELEM_POWER_CAPABILITY,
66     WD_ELEM_TPC_REQUEST,
67     WD_ELEM_TPC_REPORT,
68     WD_ELEM_SUPPORTED_CHANNELS,
69     WD_ELEM_CHANNEL_SWITCH_ANNOUNCEMENT,
70     WD_ELEM_MEASUREMENT_REQUEST,
71     WD_ELEM_MEASUREMENT_REPORT,
72     WD_ELEM_QUIET,
73     WD_ELEM_IBSS_DFS,
74     WD_ELEM_ERP_INFO,
75     /* 43 - 47 reserved */
76     WD_ELEM_ROBUST_SECURITY_NETWORK = 48,
77     /* 49 reserved */
78     WD_ELEM_EXTENDED_SUPPORTED_RATES = 50
79     /* 51 - 255 reserved or unused */
80 } WDElementID;
81 
82 typedef s32 WDError;
83 
84 /*===========================================================================*/
85 #ifdef  __cplusplus
86 }       /* extern "C" */
87 #endif  /* __cplusplus */
88 
89 #endif  /* WD_WDCONST_H_ */
90 
91 /*---------------------------------------------------------------------------*
92   $Log: WDConst.h,v $
93   Revision 1.3  2006/08/31 02:07:44  yoshioka_yasuhiro
94   Added WD_SCAN_PRIVACY_MODE_* and WDElementID.
95 
96   Revision 1.2  2006/08/30 00:05:39  adachi_hiroaki
97   Added a carriage return at the end of the file to suppress gcc warnings.
98 
99   Revision 1.1  2006/08/29 07:01:55  yoshioka_yasuhiro
100   Initial Commit.
101 
102  *---------------------------------------------------------------------------*/
103