summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/NCSI/ncsi.c2
-rw-r--r--libs/Network/init.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/libs/NCSI/ncsi.c b/libs/NCSI/ncsi.c
index 3ecabdc..da90346 100644
--- a/libs/NCSI/ncsi.c
+++ b/libs/NCSI/ncsi.c
@@ -315,6 +315,8 @@ static void enableChannelHandler(NetworkFrame_t *frame)
debug("Enable Channel: %x\n", ch);
gPackageState.port[ch]->shm_channel->NcsiChannelInfo.bits.Enabled = true;
+ Network_InitPort(gPackageState.port[ch]);
+
sendNCSIResponse(frame->controlPacket.InstanceID, frame->controlPacket.ChannelID, frame->controlPacket.ControlPacketType,
NCSI_RESPONSE_CODE_COMMAND_COMPLETE, NCSI_REASON_CODE_NONE);
}
diff --git a/libs/Network/init.c b/libs/Network/init.c
index dc24ebb..a5733b7 100644
--- a/libs/Network/init.c
+++ b/libs/Network/init.c
@@ -69,9 +69,4 @@ void Network_InitTxRx(void)
mode.bits.Channel2Enable = 1;
mode.bits.Channel3Enable = 1;
APE.Mode = mode;
-
- Network_InitPort(&gPort0);
- Network_InitPort(&gPort1);
- Network_InitPort(&gPort2);
- Network_InitPort(&gPort3);
}
OpenPOWER on IntegriCloud