From a39208e0b5cf9b9cab8568f8049ef19b7c8dc100 Mon Sep 17 00:00:00 2001 From: Richard Marian Thomaiyar Date: Sat, 8 Dec 2018 17:27:11 +0530 Subject: Add self channel number conversion function Support for self channel number conversion added. This will be used by IPMI commands like GetUserAccess, GetChannelInfo etc. to query the details for the channel in which the command is requested. Self channel number 0xE will be converted to proper channel number by this function Unit-Test: Performed that commands received through ipmid channel are marked as channel 0xF and through netipmid as 0x1, when channel number 0xE is used Change-Id: I53820558faf4439d9909d52e4e98d71c38e714b4 Signed-off-by: Richard Marian Thomaiyar --- user_channel/channel_mgmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_channel/channel_mgmt.cpp') diff --git a/user_channel/channel_mgmt.cpp b/user_channel/channel_mgmt.cpp index 3a9e2cf..0ece27e 100644 --- a/user_channel/channel_mgmt.cpp +++ b/user_channel/channel_mgmt.cpp @@ -827,7 +827,7 @@ uint8_t ChannelConfig::convertToChannelIndexNumber(const uint8_t chNum) } } } - return ((chNum == selfChNum) ? curChannel : chNum); + return ((chNum == currentChNum) ? curChannel : chNum); } std::string ChannelConfig::convertToNetInterface(const std::string& value) -- cgit v1.2.1