Code: Select all
for (iNetIndex = 1; iNetIndex < 100; iNetIndex++) // skip the 0th connection
{
//variable declarations go here
if (sceUtilityCheckNetParam(iNetIndex) != 0)
break; // no more
.......... // <- at this point you have a good connection, add it to your picks list
}
Alter the code to do continue; instead of break; when sceUtilityCheckNetParam(iNetIndex) returns a non-zero value, giving:
Code: Select all
for (iNetIndex = 1; iNetIndex < 100; iNetIndex++) // skip the 0th connection
{
//variable declarations go here
if (sceUtilityCheckNetParam(iNetIndex) != 0)
continue; // no connection here
.......... // <- at this point you have a good connection, add it to your picks list
}
This finds connections where previously we would stop looking prematurely.
This probably isn't the best fix as that 100 value is just pulled out of nowhere (afaik), but it should be a big enough value that you won't have any problems.
Hope that helps everyone who is using wifi, as It took me a while to realize what was causing it!
I'll put the fix in the next versions of all my wifi apps.