diff options
author | Phil Noh <Phil.Noh@amd.com> | 2024-12-06 10:37:48 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-18 21:04:51 +0000 |
commit | b8602d8fee6d6cf2665aa4b7f86b8154c70c2952 (patch) | |
tree | 7016a3bf6866d2a0b7d7483230baddb775703b79 | |
parent | d1fccbf494a4f38f803cb8288dd6b08ec7b98dcc (diff) | |
download | edk2-b8602d8fee6d6cf2665aa4b7f86b8154c70c2952.tar.gz |
NetworkPkg/WifiConnectionManagerDxe: Keep Setup page on no Wi-Fi module
With the driver, "Wi-Fi Configuration" Setup page is available regardless
of Wi-Fi module existence. When there is no Wi-Fi module, it is found that
entering the page causes exiting Setup browser. User would think the result
as an error. For better user experience, the update enables the page to
report the module status like a blank page. It prevents exiting Setup.
Signed-off-by: Phil Noh <Phil.Noh@amd.com>
-rw-r--r-- | NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c b/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c index 00804e5467..f11270642a 100644 --- a/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c +++ b/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c @@ -1351,7 +1351,6 @@ WifiMgrDxeHiiConfigAccessRouteConfig ( @retval EFI_SUCCESS The callback successfully handled the action.
@retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the
variable and its data.
- @retval EFI_DEVICE_ERROR The variable could not be saved.
@retval EFI_UNSUPPORTED The specified Action is not supported by the
callback.
@@ -1400,7 +1399,7 @@ WifiMgrDxeHiiConfigAccessCallback ( Status = EFI_SUCCESS;
Private = WIFI_MGR_PRIVATE_DATA_FROM_CONFIG_ACCESS (This);
if (Private->CurrentNic == NULL) {
- return EFI_DEVICE_ERROR;
+ return EFI_UNSUPPORTED;
}
//
|