10#ifndef _WIFI_NVDATASTRUC_H_
11#define _WIFI_NVDATASTRUC_H_
16#define MANAGER_VARSTORE_ID 0x0802
18#define WIFI_STR_MAX_SIZE 224
19#define WIFI_FILENAME_STR_MAX_SIZE 224
20#define WIFI_MGR_MAX_MAC_STRING_LEN 96
23#define SSID_MAX_LEN 32
24#define SSID_STORAGE_SIZE 33
26#define PASSWORD_MIN_LEN 8
27#define PASSWORD_MAX_LEN 63
28#define PASSWORD_STORAGE_SIZE 65
30#define EAP_IDENTITY_LEN 63
31#define EAP_IDENTITY_SIZE 64
33#define FORMID_NONE_FORM 0
34#define FORMID_MAC_SELECTION 1
35#define FORMID_WIFI_MAINPAGE 2
36#define FORMID_NETWORK_LIST 3
37#define FORMID_CONNECT_NETWORK 4
38#define FORMID_ENROLL_CERT 5
39#define FORMID_CA_LIST 6
40#define FORMID_ENROLL_PRIVATE_KEY 7
41#define FORMID_PRIVATE_KEY_LIST 8
42#define FORMID_WIFI_SETTINGS 9
43#define FORMID_HIDDEN_NETWORK_LIST 10
48#define KEY_MAC_LIST 0x100
53#define KEY_REFRESH_TITLE_CONNECTION_STATUS 0x101
58#define KEY_NETWORK_LIST 0x102
59#define KEY_REFRESH_NETWORK_LIST 0x103
60#define KEY_WIFI_SETTINGS 0x104
65#define KEY_PASSWORD_CONNECT_NETWORK 0x201
66#define KEY_CONNECT_ACTION 0x202
67#define KEY_REFRESH_CONNECT_CONFIGURATION 0x203
68#define KEY_EAP_AUTH_METHOD_CONNECT_NETWORK 0x204
69#define KEY_EAP_SEAUTH_METHOD_CONNECT_NETWORK 0x205
70#define KEY_ENROLL_CA_CERT_CONNECT_NETWORK 0x206
71#define KEY_ENROLL_CLIENT_CERT_CONNECT_NETWORK 0x207
72#define KEY_ENROLL_PRIVATE_KEY_CONNECT_NETWORK 0x208
73#define KEY_EAP_IDENTITY_CONNECT_NETWORK 0x209
74#define KEY_EAP_PASSWORD_CONNECT_NETWORK 0x210
79#define KEY_EAP_ENROLL_CERT_FROM_FILE 0x301
80#define KEY_EAP_ENROLL_PRIVATE_KEY_FROM_FILE 0x302
81#define KEY_SAVE_CERT_TO_MEM 0x303
82#define KEY_NO_SAVE_CERT_TO_MEM 0x304
83#define KEY_SAVE_PRIVATE_KEY_TO_MEM 0x305
84#define KEY_NO_SAVE_PRIVATE_KEY_TO_MEM 0x306
85#define KEY_PRIVATE_KEY_PASSWORD 0x307
86#define KEY_ENROLLED_CERT_NAME 0x308
87#define KEY_ENROLLED_PRIVATE_KEY_NAME 0x309
92#define KEY_HIDDEN_NETWORK 0x401
93#define KEY_ADD_HIDDEN_NETWORK 0x402
94#define KEY_REMOVE_HIDDEN_NETWORK 0x403
99#define MAC_LIST_COUNT_MAX 255
100#define LABEL_MAC_ENTRY 0x1000
101#define KEY_MAC_ENTRY_BASE 0x1100
103#define NETWORK_LIST_COUNT_MAX 4095
104#define LABEL_NETWORK_LIST_ENTRY 0x2000
105#define KEY_AVAILABLE_NETWORK_ENTRY_BASE 0x3000
107#define HIDDEN_NETWORK_LIST_COUNT_MAX 255
108#define LABEL_HIDDEN_NETWORK_ENTRY 0x4000
109#define KEY_HIDDEN_NETWORK_ENTRY_BASE 0x4100
111#define LABEL_END 0xffff
116#define SECURITY_TYPE_NONE 0
117#define SECURITY_TYPE_WPA_ENTERPRISE 1
118#define SECURITY_TYPE_WPA2_ENTERPRISE 2
119#define SECURITY_TYPE_WPA_PERSONAL 3
120#define SECURITY_TYPE_WPA2_PERSONAL 4
121#define SECURITY_TYPE_WEP 5
122#define SECURITY_TYPE_WPA3_PERSONAL 6
123#define SECURITY_TYPE_WPA3_ENTERPRISE 7
124#define SECURITY_TYPE_UNKNOWN 8
125#define SECURITY_TYPE_MAX 9
127#define EAP_AUTH_METHOD_TTLS 0
128#define EAP_AUTH_METHOD_PEAP 1
129#define EAP_AUTH_METHOD_TLS 2
130#define EAP_AUTH_METHOD_MAX 3
132#define EAP_SEAUTH_METHOD_MSCHAPV2 0
133#define EAP_SEAUTH_METHOD_MAX 1
135#define HIDDEN_NETWORK_LIST_VAR_OFFSET ((UINT16) OFFSET_OF (WIFI_MANAGER_IFR_NVDATA, HiddenNetworkList))
140 CHAR16 SSId[SSID_STORAGE_SIZE];
141 CHAR16 Password[PASSWORD_STORAGE_SIZE];
142 CHAR16 PrivateKeyPassword[PASSWORD_STORAGE_SIZE];
143 CHAR16 EapIdentity[EAP_IDENTITY_SIZE];
144 CHAR16 EapPassword[PASSWORD_STORAGE_SIZE];
147 UINT8 EapSecondAuthMethod;
148 UINT8 HiddenNetworkList[HIDDEN_NETWORK_LIST_COUNT_MAX];