This commit is contained in:
twinaphex 2015-08-29 16:28:35 +02:00
parent 532c73210b
commit aa1881febf

View File

@ -213,29 +213,21 @@ int network_interface_up(struct sockaddr_in *target, int index,
int state, timeout_count = 10; int state, timeout_count = 10;
ret = cellNetCtlInit(); ret = cellNetCtlInit();
if (ret < 0) if (ret < 0)
{
printf("cellNetCtlInit() failed(%x)\n", ret);
return -1; return -1;
}
for (;;) for (;;)
{ {
ret = cellNetCtlGetState(&state); ret = cellNetCtlGetState(&state);
if (ret < 0) if (ret < 0)
{
printf("cellNetCtlGetState() failed(%x)\n", ret);
return -1; return -1;
}
if (state == CELL_NET_CTL_STATE_IPObtained) if (state == CELL_NET_CTL_STATE_IPObtained)
break; break;
rarch_sleep(500); rarch_sleep(500);
timeout_count--; timeout_count--;
if (index && timeout_count < 0) if (index && timeout_count < 0)
{
printf("if_up_with(%d) timeout\n", index);
return 0; return 0;
}
} }
#elif defined(GEKKO) #elif defined(GEKKO)
char t[16]; char t[16];