From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8553FD8086D for ; Tue, 2 Jan 2024 15:13:20 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1zKpWh2XLcQInQsxUmHGRqm2CTrwnc5yRZKN1hCd8Ko=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704208399; v=1; b=Xl7tzRq2ftfJmXxRTN7Cz9+e1lTKPtPoRjOV0cDw+U6ibU3VKtqqmmQgQx5MQjN2UMZBGdpC 5uSpUlEqEo5tXtMXr/0wCsaHie8qqsZY2qmXt/yhNV+PChUCWiMN9MY7gjSYx28lMU8Blp7NjSz CnOy2djGgjt/ixCtDxnzqB5M= X-Received: by 127.0.0.2 with SMTP id pyVwYY7687511xuW6QJ3OaOL; Tue, 02 Jan 2024 07:13:19 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by mx.groups.io with SMTP id smtpd.web11.30904.1704208398128090190 for ; Tue, 02 Jan 2024 07:13:18 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="3700138" X-IronPort-AV: E=Sophos;i="6.04,325,1695711600"; d="scan'208";a="3700138" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 07:13:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="772862942" X-IronPort-AV: E=Sophos;i="6.04,325,1695711600"; d="scan'208";a="772862942" X-Received: from mingtan1-desk1.ccr.corp.intel.com ([10.239.153.119]) by orsmga007.jf.intel.com with ESMTP; 02 Jan 2024 07:13:15 -0800 From: "Tan, Ming" To: devel@edk2.groups.io Cc: Liming Gao , Dandan Bi Subject: [edk2-devel] [PATCH V2 2/3] MdeModulePkg/SetupBrowserDxe: EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY Date: Tue, 2 Jan 2024 23:13:06 +0800 Message-Id: <20240102151307.2516-3-ming.tan@intel.com> In-Reply-To: <20240102151307.2516-1-ming.tan@intel.com> References: <20240102151307.2516-1-ming.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ming.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: xc2DyroFniculk0J5x1cl7H2x7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Xl7tzRq2; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) REF: UEFI_Spec_2_10_Aug29.pdf page 1695. In 35.5.4 EFI_HII_CONFIG_ACCESS_PROTOCOL.CallBack(): If the callback function returns with the ActionRequest set to _QUESTION_APPLY, then the Forms Browser will write the current modified question value on the selected form to storage. Update the SetupBrowserDxe, if callback function return EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY, then call SetQuestionValue with GetSetValueWithHiiDriver to apply the change immediately. Signed-off-by: Ming Tan Cc: Liming Gao Cc: Dandan Bi --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeMod= ulePkg/Universal/SetupBrowserDxe/Presentation.c index babef21497..de7e79e8ab 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -2145,6 +2145,15 @@ ProcessCallBackFunction ( gCallbackReconnect =3D TRUE;=0D break;=0D =0D + case EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY:=0D + Status =3D SetQuestionValue (=0D + gCurrentSelection->FormSet,=0D + gCurrentSelection->Form,=0D + Statement,=0D + GetSetValueWithHiiDriver=0D + );=0D + break;=0D +=0D default:=0D break;=0D }=0D --=20 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113035): https://edk2.groups.io/g/devel/message/113035 Mute This Topic: https://groups.io/mt/103482806/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-