diff options
Diffstat (limited to 'user_channel/channelcommands.cpp')
-rw-r--r-- | user_channel/channelcommands.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/user_channel/channelcommands.cpp b/user_channel/channelcommands.cpp index 9d3b4d2..adf19d5 100644 --- a/user_channel/channelcommands.cpp +++ b/user_channel/channelcommands.cpp @@ -26,6 +26,8 @@ using namespace phosphor::logging; namespace ipmi { +static constexpr const uint8_t ccActionNotSupportedForChannel = 0x82; + /** @brief implements the set channel access command * @ param ctx - context pointer * @ param channel - channel number @@ -59,7 +61,7 @@ RspType<> ipmiSetChannelAccess(Context::ptr ctx, uint4_t channel, if (getChannelSessionSupport(chNum) == EChannelSessSupported::none) { log<level::DEBUG>("Set channel access - No support on channel"); - return responseInvalidFieldRequest(); + return response(ccActionNotSupportedForChannel); } ChannelAccess chActData; @@ -188,7 +190,7 @@ ipmi ::RspType<uint3_t, // access mode, if (getChannelSessionSupport(chNum) == EChannelSessSupported::none) { log<level::DEBUG>("Get channel access - No support on channel"); - return response(IPMI_CC_ACTION_NOT_SUPPORTED_FOR_CHANNEL); + return response(ccActionNotSupportedForChannel); } ChannelAccess chAccess; |