summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2019-07-22 16:41:55 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2019-08-18 13:31:18 +0000
commit152e98cd339f3df58d5832af5779eff541f0adc5 (patch)
tree8321235ad65a514780c3d16ea2f5453895c0b1b6
parent92d8119973e44bb1caed824364b3dd7d347ef6c7 (diff)
downloadphosphor-host-ipmid-152e98cd339f3df58d5832af5779eff541f0adc5.tar.gz
phosphor-host-ipmid-152e98cd339f3df58d5832af5779eff541f0adc5.zip
Add system interface as the channel for the legacy interface
The legacy interface org.openbmc.HostIpmi is used by the btbridge interface and the channel number was set to 0 which implies the IPMB bridge. This is corrected to use the system interface. Change-Id: I870d8fc6c2461b7fc75a90f9576f08599038f211 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--ipmid-new.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipmid-new.cpp b/ipmid-new.cpp
index c32ba3f..823b9d8 100644
--- a/ipmid-new.cpp
+++ b/ipmid-new.cpp
@@ -750,7 +750,8 @@ void handleLegacyIpmiCommand(sdbusplus::message::message& m)
m.read(seq, netFn, lun, cmd, data);
std::shared_ptr<sdbusplus::asio::connection> bus = getSdBus();
auto ctx = std::make_shared<ipmi::Context>(
- bus, netFn, cmd, 0, 0, ipmi::Privilege::Admin, 0, &yield);
+ bus, netFn, cmd, ipmi::channelSystemIface, 0,
+ ipmi::Privilege::Admin, 0, &yield);
auto request = std::make_shared<ipmi::message::Request>(
ctx, std::forward<std::vector<uint8_t>>(data));
ipmi::message::Response::ptr response =
OpenPOWER on IntegriCloud