summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
diff options
context:
space:
mode:
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-24 10:53:54 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-24 10:53:54 +0000
commit9ea13d7900aa99f5972ca0cfa11542a69c7b0e18 (patch)
tree198ba1960e26a5129a36013c4a55ab505f8f9616 /MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
parent83f1f16a83f0d69a0acc93b3249e9e2b65f3a195 (diff)
downloadedk2-platforms-9ea13d7900aa99f5972ca0cfa11542a69c7b0e18.tar.xz
Update to NOT to use EFI_BROWSER_ACTION_FORM_OPEN in Callback function thus able to function properly in UEFI2.1 platform.
Signed-off-by: tye Reviewed-by: lgao4 Reviewed-by: xdu2 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12197 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c')
-rw-r--r--MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c b/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
index dfcf7a3d9c..8abe77f4bb 100644
--- a/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
+++ b/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
@@ -236,21 +236,7 @@ VlanCallback (
PrivateData = VLAN_CONFIG_PRIVATE_DATA_FROM_THIS (This);
- if (Action == EFI_BROWSER_ACTION_FORM_OPEN) {
- if (QuestionId == VLAN_ADD_QUESTION_ID) {
- //
- // Update current VLAN list into Form when Form is opened.
- // This will be done only in FORM_OPEN CallBack of question with VLAN_ADD_QUESTION_ID.
- //
- VlanUpdateForm (PrivateData);
- }
- return EFI_SUCCESS;
- }
-
- if (Action == EFI_BROWSER_ACTION_FORM_CLOSE) {
- //
- // Do nothing for UEFI FORM_CLOSE action
- //
+ if ((Action == EFI_BROWSER_ACTION_FORM_OPEN) || (Action == EFI_BROWSER_ACTION_FORM_CLOSE)) {
return EFI_SUCCESS;
}
@@ -319,6 +305,13 @@ VlanCallback (
ZeroMem (Configuration->VlanList, MAX_VLAN_NUMBER);
break;
+ case VLAN_UPDATE_QUESTION_ID:
+ //
+ // Update current VLAN list into Form.
+ //
+ VlanUpdateForm (PrivateData);
+ break;
+
default:
break;
}