]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrConfig.h
NetworkPkg: Replace BSD License with BSD+Patent License
[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 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _WIFI_MGR_CONFIG_H_
11 #define _WIFI_MGR_CONFIG_H_
12
13 #include "WifiConnectionMgrConfigNVDataStruct.h"
14
15 extern UINT8 WifiConnectionManagerDxeBin[];
16 extern UINT8 WifiConnectionManagerDxeStrings[];
17
18 typedef struct {
19 UINT32 Signature;
20
21 //
22 // Link to the current profile list in NIC device data (WIFI_MGR_DEVICE_DATA)
23 //
24 LIST_ENTRY Link;
25
26 UINT32 NicIndex;
27 UINT32 ProfileIndex; // The unique identifier for network profile, starts from 1
28 CHAR16 SSId[SSID_STORAGE_SIZE];
29 CHAR16 Password[PASSWORD_STORAGE_SIZE];
30
31 UINT8 SecurityType;
32 UINT8 EapAuthMethod;
33
34 CHAR16 CACertName[WIFI_FILENAME_STR_MAX_SIZE];
35 VOID *CACertData;
36 UINTN CACertSize;
37 CHAR16 ClientCertName[WIFI_FILENAME_STR_MAX_SIZE];
38 VOID *ClientCertData;
39 UINTN ClientCertSize;
40 CHAR16 PrivateKeyName[WIFI_FILENAME_STR_MAX_SIZE];
41 VOID *PrivateKeyData;
42 UINTN PrivateKeyDataSize;
43 CHAR16 PrivateKeyPassword[PASSWORD_STORAGE_SIZE]; //Password to protect private key file
44 CHAR16 EapIdentity[EAP_IDENTITY_SIZE];
45 CHAR16 EapPassword[PASSWORD_STORAGE_SIZE];
46 UINT8 EapSecondAuthMethod;
47
48 BOOLEAN AKMSuiteSupported;
49 BOOLEAN CipherSuiteSupported;
50 BOOLEAN IsAvailable;
51 EFI_80211_NETWORK Network;
52 UINT8 NetworkQuality;
53 EFI_STRING_ID TitleToken;
54 } WIFI_MGR_NETWORK_PROFILE;
55
56 #define WIFI_MGR_PROFILE_SIGNATURE SIGNATURE_32 ('W','M','N','P')
57
58 #pragma pack(1)
59 ///
60 /// HII specific Vendor Device Path definition.
61 ///
62 typedef struct {
63 VENDOR_DEVICE_PATH VendorDevicePath;
64 EFI_DEVICE_PATH_PROTOCOL End;
65 } HII_VENDOR_DEVICE_PATH;
66 #pragma pack()
67
68 #endif