Skip to content

Commit

Permalink
NetworkPkg/WifiConnectionManagerDxe: Keep Setup page on no Wi-Fi module
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
philnoh2 committed Dec 18, 2024
1 parent d1fccbf commit b5a2135
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}

//
Expand Down

0 comments on commit b5a2135

Please sign in to comment.