From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.61644.1638843815778094859 for ; Mon, 06 Dec 2021 18:23:36 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: eric.dong@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10190"; a="237278441" X-IronPort-AV: E=Sophos;i="5.87,293,1631602800"; d="scan'208";a="237278441" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2021 18:23:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,293,1631602800"; d="scan'208";a="515051994" Received: from ydong10-desktop.ccr.corp.intel.com ([10.239.154.145]) by orsmga008.jf.intel.com with ESMTP; 06 Dec 2021 18:23:15 -0800 From: "Dong, Eric" To: devel@edk2.groups.io Cc: Bo Chang Ke , Sai Chaganty , Liming Gao , Dandan Bi Subject: [PATCH][Edk2 Platform] UserAuthFeaturePkg: Add boot menu return status code to trigger function. Date: Tue, 7 Dec 2021 10:22:58 +0800 Message-Id: <98902f65951171169621a7b4525f7204efd1ffcd.1638767589.git.bo-changx.ke@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bo Chang Ke REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3764 BIOS password is not required when overriding boot device via F7 hotkey. Add boot menu return status code in callback function for ReportStatusCode() notification. Signed-off-by: Bo Chang Ke Cc: Sai Chaganty Cc: Liming Gao Cc: Dandan Bi --- .../UserAuthenticationDxeSmm/UserAuthenticationDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthentica= tionDxeSmm/UserAuthenticationDxe.c b/Features/Intel/UserInterface/UserAuthF= eaturePkg/UserAuthenticationDxeSmm/UserAuthenticationDxe.c index bba2057a96..4433fb1a20 100644 --- a/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxe= Smm/UserAuthenticationDxe.c +++ b/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxe= Smm/UserAuthenticationDxe.c @@ -355,7 +355,8 @@ CheckForPassword ( BOOLEAN PasswordSet;=0D =0D if (((CodeType & EFI_STATUS_CODE_TYPE_MASK) =3D=3D EFI_PROGRESS_CODE) &&= =0D - (Value =3D=3D (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP))) = {=0D + ((Value =3D=3D (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP)) |= |=0D + ((Value =3D=3D (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_T= O_BOOT_EVENT))))) {=0D //=0D // Check whether enter setup page.=0D //=0D --=20 2.26.2.windows.1