switch (ntohl(data)) {
case TPL_IH_VERSION_V1:
+ case TPL_IH_VERSION_V2:
tpl_type = 1;
tpl_hdr = (tplink_image_header_t *)addr;
print_uboot_ih((image_header_t *)addr);
memmove(&header, (char *)addr, sizeof(image_header_t));
break;
- case TPL_IH_VERSION_V2:
case TPL_IH_VERSION_V3:
default:
printf_err("unsupported image header\n");
switch (ntohl(data)) {
case TPL_IH_VERSION_V1:
+ case TPL_IH_VERSION_V2:
tpl_type = 1;
tpl_hdr = (tplink_image_header_t *)addr;
print_uboot_ih((image_header_t *)addr);
memmove(&header, (char *)addr, sizeof(image_header_t));
break;
- case TPL_IH_VERSION_V2:
case TPL_IH_VERSION_V3:
default:
printf_err("unsupported image header\n");