#100320 - Lick - Sun Aug 27, 2006 10:56 am
I wonder if there's a way to always be sure that dswifi connects.. If this is a internal hanging bug, then there's little we can do about it. But I've found that the following function does the job pretty good, but still hangs quite often.
I'm guessing that it's internal to DsWifi though.
_________________
http://licklick.wordpress.com
Code: |
bool NDSX_DSWifi_ConnectAP()
{ Wifi_EnableWifi(); Wifi_AutoConnect(); while(1) { scanKeys(); if(keysDown() & KEY_B) return false; int stat = Wifi_AssocStatus(); if(stat == ASSOCSTATUS_ASSOCIATED) { return (ConnectedToAP=true); } if(stat == ASSOCSTATUS_CANNOTCONNECT) { ConnectedToAP = false; swiWaitForVBlank(); Wifi_AutoConnect(); } } } |
I'm guessing that it's internal to DsWifi though.
_________________
http://licklick.wordpress.com