mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
fixed previous packet resize patch, the IOL session was no longer reopened
after the IPMC upgrade reset
This commit is contained in:
parent
b5fb1221c1
commit
0ea2ba5f14
@ -3357,9 +3357,10 @@ struct ipmi_rs * HpmfwupgSendCmd(struct ipmi_intf *intf, struct ipmi_rq req,
|
||||
static unsigned char isValidSize = FALSE;
|
||||
rsp = intf->sendrecv(intf, &req);
|
||||
|
||||
if( ( rsp == NULL ) && (!isValidSize) )
|
||||
if( ( rsp == NULL ) )
|
||||
{
|
||||
#define HPM_LAN_PACKET_RESIZE_LIMIT 6
|
||||
|
||||
if(strstr(intf->name,"lan")!= NULL) /* also covers lanplus */
|
||||
{
|
||||
static int errorCount=0;
|
||||
@ -3376,6 +3377,8 @@ struct ipmi_rs * HpmfwupgSendCmd(struct ipmi_intf *intf, struct ipmi_rq req,
|
||||
req.msg.cmd == HPMFWUPG_UPLOAD_FIRMWARE_BLOCK
|
||||
&&
|
||||
errorCount < HPM_LAN_PACKET_RESIZE_LIMIT
|
||||
&&
|
||||
(!isValidSize)
|
||||
)
|
||||
{
|
||||
lprintf(LOG_DEBUG,"HPM: upload firmware block API called");
|
||||
|
Loading…
x
Reference in New Issue
Block a user