summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/WifiConnectionManagerDxe
diff options
context:
space:
mode:
authorPhil Noh <Phil.Noh@amd.com>2024-12-06 10:37:48 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-18 21:04:51 +0000
commitb8602d8fee6d6cf2665aa4b7f86b8154c70c2952 (patch)
tree7016a3bf6866d2a0b7d7483230baddb775703b79 /NetworkPkg/WifiConnectionManagerDxe
parentd1fccbf494a4f38f803cb8288dd6b08ec7b98dcc (diff)
downloadedk2-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>
Diffstat (limited to 'NetworkPkg/WifiConnectionManagerDxe')
-rw-r--r--NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c3
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;
}
//