Remove broadcast limitation of ipmb channel
Currently it only supports broadcast(slave address 0)
message for ipmb channel, but need to support other
slave address message,so, remove the limitation of
broadcast slave address.
Tested:
it's tested by communication for other slave address.
Change-Id: Ib00ba2e51e4febbe675a3c2609221d09205ecdf8
Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
diff --git a/ipmbbridged.cpp b/ipmbbridged.cpp
index 8689914..956e82a 100644
--- a/ipmbbridged.cpp
+++ b/ipmbbridged.cpp
@@ -371,9 +371,8 @@
goto end;
}
- // if it is broadcast message from ipmb channel, send out dbus signal
- if (ipmbFrame->Header.Req.address == broadcastAddress &&
- getChannelType() == ipmbChannelType::ipmb)
+ // if it is message received from ipmb channel, send out dbus signal
+ if (getChannelType() == ipmbChannelType::ipmb)
{
auto ipmbMessageReceived = IpmbRequest();
ipmbMessageReceived.i2cToIpmbConstruct(ipmbFrame, r);