]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrConfig.h
f179fbc4efd57353d7af3552a5957095149466cd
[mirror_edk2.git] / NetworkPkg / WifiConnectionManagerDxe / WifiConnectionMgrConfig.h
1 /** @file
2 Define network structure used by the WiFi Connection Manager.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _WIFI_MGR_CONFIG_H_
17 #define _WIFI_MGR_CONFIG_H_
18
19 #include "WifiConnectionMgrConfigNVDataStruct.h"
20
21 extern UINT8 WifiConnectionManagerDxeBin[];
22 extern UINT8 WifiConnectionManagerDxeStrings[];
23
24 typedef struct {
25 UINT32 Signature;
26
27 //
28 // Link to the current profile list in NIC device data (WIFI_MGR_DEVICE_DATA)
29 //
30 LIST_ENTRY Link;
31
32 UINT32 NicIndex;
33 UINT32 ProfileIndex; // The unique identifier for network profile, starts from 1
34 CHAR16 SSId[SSID_STORAGE_SIZE];
35 CHAR16 Password[PASSWORD_STORAGE_SIZE];
36
37 UINT8 SecurityType;
38 UINT8 EapAuthMethod;
39
40 CHAR16 CACertName[WIFI_FILENAME_STR_MAX_SIZE];
41 VOID *CACertData;
42 UINTN CACertSize;
43 CHAR16 ClientCertName[WIFI_FILENAME_STR_MAX_SIZE];
44 VOID *ClientCertData;
45 UINTN ClientCertSize;
46 CHAR16 PrivateKeyName[WIFI_FILENAME_STR_MAX_SIZE];
47 VOID *PrivateKeyData;
48 UINTN PrivateKeyDataSize;
49 CHAR16 PrivateKeyPassword[PASSWORD_STORAGE_SIZE]; //Password to protect private key file
50 CHAR16 EapIdentity[EAP_IDENTITY_SIZE];
51 CHAR16 EapPassword[PASSWORD_STORAGE_SIZE];
52 UINT8 EapSecondAuthMethod;
53
54 BOOLEAN AKMSuiteSupported;
55 BOOLEAN CipherSuiteSupported;
56 BOOLEAN IsAvailable;
57 EFI_80211_NETWORK Network;
58 UINT8 NetworkQuality;
59 EFI_STRING_ID TitleToken;
60 } WIFI_MGR_NETWORK_PROFILE;
61
62 #define WIFI_MGR_PROFILE_SIGNATURE SIGNATURE_32 ('W','M','N','P')
63
64 #pragma pack(1)
65 ///
66 /// HII specific Vendor Device Path definition.
67 ///
68 typedef struct {
69 VENDOR_DEVICE_PATH VendorDevicePath;
70 EFI_DEVICE_PATH_PROTOCOL End;
71 } HII_VENDOR_DEVICE_PATH;
72 #pragma pack()
73
74 #endif