NetworkPkg/WifiConnectionManagerDxe: UI Disconnect

- Fix WifiMgrOnTimerTick to ensure the timer does
not exit early when a disconnect is pending,
allowing UI-initiated disconnects to complete as
expected.

Signed-off-by: Zachary Clark-Williams <Zachary.Clark-Williams@intel.com>
This commit is contained in:
Zachary Clark-Williams
2025-08-20 00:46:44 -07:00
committed by mergify[bot]
parent 68a7665250
commit d188ad6a1f

View File

@ -1490,7 +1490,7 @@ WifiMgrOnTimerTick (
}
Nic = (WIFI_MGR_DEVICE_DATA *)Context;
if (Nic->ConnectPendingNetwork == NULL) {
if ((Nic->ConnectPendingNetwork == NULL) && !Nic->HasDisconnectPendingNetwork) {
DEBUG ((DEBUG_VERBOSE, "[WiFi Connection Manager] No profile for connection, no scan triggered!\n"));
gBS->SetTimer (Nic->TickTimer, TimerCancel, 0);
return;