TianoCore EDK2 master
|
#include "WifiConnectionMgrDxe.h"
Go to the source code of this file.
Macros | |
#define | AKM_SUITE_PREFERENCE_COUNT (sizeof (mAKMSuitePreference) / sizeof (UINT32)) |
Variables | |
STATIC UINT32 | mAKMSuitePreference [] |
The Miscellaneous Routines for WiFi Connection Manager.
Copyright (c) 2019 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file WifiConnectionMgrMisc.c.
#define AKM_SUITE_PREFERENCE_COUNT (sizeof (mAKMSuitePreference) / sizeof (UINT32)) |
Definition at line 28 of file WifiConnectionMgrMisc.c.
EFI_STATUS WifiMgrCheckRSN | ( | IN EFI_80211_AKM_SUITE_SELECTOR * | AKMList, |
IN EFI_80211_CIPHER_SUITE_SELECTOR * | CipherList, | ||
IN WIFI_MGR_DEVICE_DATA * | Nic, | ||
OUT UINT8 * | SecurityType, | ||
OUT BOOLEAN * | AKMSuiteSupported, | ||
OUT BOOLEAN * | CipherSuiteSupported | ||
) |
Check an AKM suite list and a Cipher suite list to see if one or more AKM suites or Cipher suites are supported and find the matchable security type.
[in] | AKMList | The target AKM suite list to be checked. |
[in] | CipherList | The target Cipher suite list to be checked |
[in] | Nic | The Nic to operate, contains the supported AKMSuite list and supported CipherSuite list |
[out] | SecurityType | To identify a security type from the AKM suite list and Cipher suite list |
[out] | AKMSuiteSupported | To identify if this security type is supported. If it is NULL, overcome this field |
[out] | CipherSuiteSupported | To identify if this security type is supported. If it is NULL, overcome this field |
EFI_SUCCESS | This operation has completed successfully. |
EFI_INVALID_PARAMETER | No Nic found or the suite list is null. |
Definition at line 349 of file WifiConnectionMgrMisc.c.
VOID WifiMgrCleanProfileSecrets | ( | IN WIFI_MGR_NETWORK_PROFILE * | Profile | ) |
Clean secrets from a network profile.
[in] | Profile | The profile to be cleanned. |
Definition at line 671 of file WifiConnectionMgrMisc.c.
VOID WifiMgrFreeHiddenList | ( | IN LIST_ENTRY * | HiddenList | ) |
Free user configured hidden network list.
[in] | HiddenList | The hidden network list to be freed. |
Definition at line 765 of file WifiConnectionMgrMisc.c.
VOID WifiMgrFreeProfileList | ( | IN LIST_ENTRY * | ProfileList | ) |
Free all network profiles in a profile list.
[in] | ProfileList | The profile list to be freed. |
Definition at line 724 of file WifiConnectionMgrMisc.c.
VOID WifiMgrFreeToken | ( | IN WIFI_MGR_MAC_CONFIG_TOKEN * | ConfigToken | ) |
Free the resources of a config token.
[in] | ConfigToken | The config token to be freed. |
Definition at line 794 of file WifiConnectionMgrMisc.c.
WIFI_MGR_DEVICE_DATA * WifiMgrGetNicByIndex | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN UINT32 | NicIndex | ||
) |
Get the Nic data by the NicIndex.
[in] | Private | The pointer to the global private data structure. |
[in] | NicIndex | The index indicates the position of wireless NIC. |
Definition at line 129 of file WifiConnectionMgrMisc.c.
WIFI_MGR_NETWORK_PROFILE * WifiMgrGetProfileByAsciiSSId | ( | IN CHAR8 * | SSId, |
IN UINT8 | SecurityType, | ||
IN LIST_ENTRY * | ProfileList | ||
) |
Find a network profile through its' SSId and securit type, and the SSId is an ascii string.
[in] | SSId | The target network's SSId. |
[in] | SecurityType | The target network's security type. |
[in] | ProfileList | The profile list on a Nic. |
Definition at line 206 of file WifiConnectionMgrMisc.c.
WIFI_MGR_NETWORK_PROFILE * WifiMgrGetProfileByProfileIndex | ( | IN UINT32 | ProfileIndex, |
IN LIST_ENTRY * | ProfileList | ||
) |
Find a network profile through its' profile index.
[in] | ProfileIndex | The target network's profile index. |
[in] | ProfileList | The profile list on a Nic. |
Definition at line 235 of file WifiConnectionMgrMisc.c.
WIFI_MGR_NETWORK_PROFILE * WifiMgrGetProfileByUnicodeSSId | ( | IN CHAR16 * | SSId, |
IN UINT8 | SecurityType, | ||
IN LIST_ENTRY * | ProfileList | ||
) |
Find a network profile through its' SSId and securit type, and the SSId is an unicode string.
[in] | SSId | The target network's SSId. |
[in] | SecurityType | The target network's security type. |
[in] | ProfileList | The profile list on a Nic. |
Definition at line 167 of file WifiConnectionMgrMisc.c.
Get the security type for a certain AKMSuite and CipherSuite.
[in] | AKMSuite | An certain AKMSuite. |
[in] | CipherSuite | An certain CipherSuite. |
Definition at line 477 of file WifiConnectionMgrMisc.c.
EFI_STATUS WifiMgrGetSupportedSuites | ( | IN WIFI_MGR_DEVICE_DATA * | Nic | ) |
Get supported AKMSuites and CipherSuites from supplicant for a Nic.
[in] | Nic | The Nic to operate. |
EFI_SUCCESS | Get the supported suite list successfully. |
EFI_INVALID_PARAMETER | No Nic found or supplicant is NULL. |
Definition at line 571 of file WifiConnectionMgrMisc.c.
Empty function for event process function.
Event | The Event need to be process |
Context | The context of the event. |
Definition at line 39 of file WifiConnectionMgrMisc.c.
VOID WifiMgrMacAddrToStr | ( | IN EFI_80211_MAC_ADDRESS * | Mac, |
IN UINT32 | StrSize, | ||
OUT CHAR16 * | Str | ||
) |
Convert the mac address into a hexadecimal encoded ":" seperated string.
[in] | Mac | The mac address. |
[in] | StrSize | The size, in bytes, of the output buffer specified by Str. |
[out] | Str | The storage to return the mac string. |
Definition at line 56 of file WifiConnectionMgrMisc.c.
EFI_STATUS WifiMgrReadFileToBuffer | ( | IN WIFI_MGR_FILE_CONTEXT * | FileContext, |
OUT VOID ** | DataAddr, | ||
OUT UINTN * | DataSize | ||
) |
Read private key file to buffer.
[in] | FileContext | The file context of private key file. |
[out] | PrivateKeyDataAddr | The buffer address to restore private key file, should be freed by caller. |
[out] | PrivateKeyDataSize | The size of read private key file. |
EFI_SUCCESS | Successfully read the private key file. |
EFI_INVALID_PARAMETER | One or more of the parameters is invalid. |
Definition at line 92 of file WifiConnectionMgrMisc.c.
BOOLEAN WifiMgrSupportAKMSuite | ( | IN UINT16 | SupportedAKMSuiteCount, |
IN UINT32 * | SupportedAKMSuiteList, | ||
IN UINT32 * | AKMSuite | ||
) |
To test if the AKMSuite is in supported AKMSuite list.
[in] | SupportedAKMSuiteCount | The count of the supported AKMSuites. |
[in] | SupportedAKMSuiteList | The supported AKMSuite list. |
[in] | AKMSuite | The AKMSuite to be tested. |
Definition at line 272 of file WifiConnectionMgrMisc.c.
BOOLEAN WifiMgrSupportCipherSuite | ( | IN UINT16 | SupportedCipherSuiteCount, |
IN UINT32 * | SupportedCipherSuiteList, | ||
IN UINT32 * | CipherSuite | ||
) |
To check if the CipherSuite is in supported CipherSuite list.
[in] | SupportedCipherSuiteCount | The count of the supported CipherSuites. |
[in] | SupportedCipherSuiteList | The supported CipherSuite list. |
[in] | CipherSuite | The CipherSuite to be tested. |
Definition at line 306 of file WifiConnectionMgrMisc.c.
STATIC UINT32 mAKMSuitePreference[] |
Definition at line 16 of file WifiConnectionMgrMisc.c.