diff options
Diffstat (limited to 'user_channel/channel_layer.cpp')
-rw-r--r-- | user_channel/channel_layer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/user_channel/channel_layer.cpp b/user_channel/channel_layer.cpp index 12b10c9..0bd7ffe 100644 --- a/user_channel/channel_layer.cpp +++ b/user_channel/channel_layer.cpp @@ -29,8 +29,7 @@ bool doesDeviceExist(const uint8_t chNum) // associated with ethernet interface as the channel number to // eth association is not done. Need to revisit later struct stat fileStat = {0}; - std::string devName("/sys/class/net/" + - getChannelConfigObject().getChannelName(chNum)); + std::string devName("/sys/class/net/" + getChannelName(chNum)); if (stat(devName.data(), &fileStat) != 0) { @@ -138,4 +137,9 @@ ipmi_ret_t getChannelEnabledAuthType(const uint8_t chNum, const uint8_t priv, authType); } +std::string getChannelName(const int chNum) +{ + return getChannelConfigObject().getChannelName(chNum); +} + } // namespace ipmi |