NetworkPkg: Add WiFi profile sync protocol support
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3845 Enables KVM and One Click Recovery WLAN capability with WiFi Profile Sync feature and protocol. Adding WiFiProfileSyncProtocol, which supports the profilesync driver operations for transferring WiFi profiles from AMT to the Supplicant. WiFiConnectionManager will check for the WifiProfileSyncProtocol and if found will operate on the premise of a One Click Recovery, or KVM flow with a Wifi profile provided by AMT. Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Zachary Clark-Williams <zachary.clark-williams@intel.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
ec54ce1f1a
commit
fe405f08a0
@@ -672,10 +672,23 @@ WifiMgrCleanProfileSecrets (
|
||||
IN WIFI_MGR_NETWORK_PROFILE *Profile
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EDKII_WIFI_PROFILE_SYNC_PROTOCOL *WiFiProfileSyncProtocol;
|
||||
|
||||
ZeroMem (Profile->Password, sizeof (CHAR16) * PASSWORD_STORAGE_SIZE);
|
||||
ZeroMem (Profile->EapPassword, sizeof (CHAR16) * PASSWORD_STORAGE_SIZE);
|
||||
ZeroMem (Profile->PrivateKeyPassword, sizeof (CHAR16) * PASSWORD_STORAGE_SIZE);
|
||||
|
||||
//
|
||||
// When EFI WiFi profile sync protocol is found the system is performing a recovery boot in secure
|
||||
// boot mode. The profile sync driver will manage the CA certificate, client certificate, and key
|
||||
// data, cleaning them at exit boot services.
|
||||
//
|
||||
Status = gBS->LocateProtocol (&gEdkiiWiFiProfileSyncProtocolGuid, NULL, (VOID **)&WiFiProfileSyncProtocol);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Profile->CACertData != NULL) {
|
||||
ZeroMem (Profile->CACertData, Profile->CACertSize);
|
||||
FreePool (Profile->CACertData);
|
||||
|
Reference in New Issue
Block a user