Support SOL parameter channel number

Even though channel number is an optional parameter, the ipmitool
shows in the output the channel as 14(0x0e). 0x0e is reserved to
indicate in the command, the channel on which the command is
received. So the default channel number 1 is returned.

Resolves openbmc/openbmc#2959

Change-Id: Ifd069886d4ea8e9ba5c90ca015be39ebdece413d
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/command/sol_cmds.cpp b/command/sol_cmds.cpp
index fd9a610..fffefb3 100644
--- a/command/sol_cmds.cpp
+++ b/command/sol_cmds.cpp
@@ -229,9 +229,14 @@
             std::copy_n(buffer, sizeof(port), std::back_inserter(outPayload));
             break;
         }
+        case Parameter::CHANNEL:
+        {
+            outPayload.push_back(std::get<sol::Manager&>
+                    (singletonPool).channel);
+            break;
+        }
         case Parameter::NVBITRATE:
         case Parameter::VBITRATE:
-        case Parameter::CHANNEL:
         default:
             response->completionCode = ipmiCCParamNotSupported;
     }