From 777cdb124ce96f89c55f6c18f18b6ae0ea4e061e Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 10 Jan 2005 20:25:34 +0000 Subject: [PATCH] fix lan parameter set where it was doing incorrect comparison on channel medium --- ipmitool/lib/ipmi_lanp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_lanp.c b/ipmitool/lib/ipmi_lanp.c index 3e8aa32..091cf73 100644 --- a/ipmitool/lib/ipmi_lanp.c +++ b/ipmitool/lib/ipmi_lanp.c @@ -722,7 +722,7 @@ ipmi_lan_set(struct ipmi_intf * intf, int argc, char ** argv) /* find type of channel and only accept 802.3 LAN */ medium = ipmi_get_channel_medium(intf, chan); - if (medium != IPMI_CHANNEL_MEDIUM_LAN || + if (medium != IPMI_CHANNEL_MEDIUM_LAN && medium != IPMI_CHANNEL_MEDIUM_LAN_OTHER) { lprintf(LOG_ERR, "Channel %d is not a LAN channel!", chan); return -1;