Hack a bit the power-on stuff. Fixes some problems with Nintendo WFC config util.

This commit is contained in:
luigi__ 2009-06-02 20:28:38 +00:00
parent d5aef7da1d
commit ad8fe45f83
1 changed files with 3 additions and 2 deletions

View File

@ -679,14 +679,15 @@ void WIFI_write16(wifimac_t *wifi,u32 address, u16 val)
case REG_WIFI_FORCEPS:
if((val & 0x8000) && (!wifi->powerOnPending))
{
BOOL newPower = ((val & 0x0001)?FALSE:TRUE);
/* BOOL newPower = ((val & 0x0001)?FALSE:TRUE);
if(newPower != wifi->powerOn)
{
if(!newPower)
wifi->powerOn = FALSE;
else
wifi->powerOnPending = TRUE;
}
}*/
wifi->powerOn = ((val & 0x0001) ? FALSE : TRUE);
}
break;
case REG_WIFI_POWERACK: