netipmid: Set right value for session->channelNum.

Use getInterfaceIndex() to find the channel number on which
netipmid waits for incoming messages. session->channelNum should
use this value instead of static value 'ipmi::EChannelID::chanLan1'.

Tested-by:
1. Enable SOL payload in channel 3, and disable it in channel 1.
   Verify SOL session establishes in channel 3, and fails in channel 1.
   (session->channelNum is used by 'Set User Payload Access(SOL)).

Signed-off-by: Saravanan Palanisamy <saravanan.palanisamy@linux.intel.com>
Change-Id: If7baecc6a15a327629e10ce6b4cf01ff020b0ee4
1 file changed