summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2016-03-17 09:27:07 +0800
committerFu Siyuan <siyuan.fu@intel.com>2016-03-24 10:09:47 +0800
commita5acc84226183fc5a5d55eb923f6c47a8d42d861 (patch)
treefb36b608d7fd9554bf499cfa7d34aa45da504626 /NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr
parent9e41f686fc20304086db387563089e42cf3189d5 (diff)
downloadedk2-a5acc84226183fc5a5d55eb923f6c47a8d42d861.tar.gz
edk2-a5acc84226183fc5a5d55eb923f6c47a8d42d861.tar.bz2
edk2-a5acc84226183fc5a5d55eb923f6c47a8d42d861.zip
NetworkPkg: Fix HII related problem in HTTP boot driver.
According to UEFI spec, HII_Config_Access.RouteConfig() should return success if the required configuration has been processed. Current HTTP boot driver may return error code in some situation, which failed the UEFI SCT test. This patch fix this issue by removing the returned error status code and adding extra check point in the Callback() function, which will pop up a message box if user input an unsupported URI string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Dong Eric <eric.dong@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr')
-rw-r--r--NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr6
1 files changed, 4 insertions, 2 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr b/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr
index e47c6af3ad..7e8ddae33d 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr
+++ b/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr
@@ -31,8 +31,8 @@ formset
string varid = HTTP_BOOT_CONFIG_IFR_NVDATA.Description,
prompt = STRING_TOKEN(STR_BOOT_DESCRIPTION_PROMPT),
help = STRING_TOKEN(STR_NULL_STRING),
- minsize = 6,
- maxsize = 75,
+ minsize = DESCRIPTION_STR_MIN_SIZE,
+ maxsize = DESCRIPTION_STR_MAX_SIZE,
endstring;
oneof varid = HTTP_BOOT_CONFIG_IFR_NVDATA.IpVersion,
@@ -45,6 +45,8 @@ formset
string varid = HTTP_BOOT_CONFIG_IFR_NVDATA.Uri,
prompt = STRING_TOKEN(STR_BOOT_URI_PROMPT),
help = STRING_TOKEN(STR_BOOT_URI_HELP),
+ flags = INTERACTIVE,
+ key = KEY_INITIATOR_URI,
minsize = URI_STR_MIN_SIZE,
maxsize = URI_STR_MAX_SIZE,
endstring;