fix unlock behavior to always do set-complete

This commit is contained in:
Duncan Laurie 2006-09-11 16:14:01 +00:00
parent f61c3acbaf
commit e672819a9d

View File

@ -394,9 +394,10 @@ ipmi_lanp_unlock(struct ipmi_intf * intf, uint8_t chan)
rc = __set_lan_param(intf, chan, IPMI_LANP_SET_IN_PROGRESS, &val, 1, 0); rc = __set_lan_param(intf, chan, IPMI_LANP_SET_IN_PROGRESS, &val, 1, 0);
if (rc < 0) { if (rc < 0) {
lprintf(LOG_DEBUG, "LAN Parameter Commit not supported"); lprintf(LOG_DEBUG, "LAN Parameter Commit not supported");
val = IPMI_LANP_WRITE_UNLOCK;
__set_lan_param(intf, chan, IPMI_LANP_SET_IN_PROGRESS, &val, 0, 0);
} }
val = IPMI_LANP_WRITE_UNLOCK;
__set_lan_param(intf, chan, IPMI_LANP_SET_IN_PROGRESS, &val, 1, 0);
} }
/* set_lan_param - Wrap LAN parameter write with set-in-progress lock /* set_lan_param - Wrap LAN parameter write with set-in-progress lock
@ -1951,12 +1952,10 @@ ipmi_lan_stats_get(struct ipmi_intf * intf, uint8_t chan)
return 0; return 0;
} }
if (verbose > 1) if (verbose > 1) {
{
uint8_t counter; uint8_t counter;
printf("--- Rx Stats ---\n"); printf("--- Rx Stats ---\n");
for(counter=0;counter<18;counter+=2) for (counter=0; counter<18; counter+=2) {
{
printf("%02X", *(rsp->data + counter)); printf("%02X", *(rsp->data + counter));
printf(" %02X - ", *(rsp->data + counter+1)); printf(" %02X - ", *(rsp->data + counter+1));
} }