From b8602d8fee6d6cf2665aa4b7f86b8154c70c2952 Mon Sep 17 00:00:00 2001 From: Phil Noh Date: Fri, 6 Dec 2024 10:37:48 -0600 Subject: [PATCH] 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 --- .../WifiConnectionMgrHiiConfigAccess.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c b/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrHiiConfigAccess.c index 00804e546750..f11270642a27 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; } //