How do i scan for wlan connections?
-
- Posts: 12
- Joined: Sat Jan 27, 2007 4:07 am
How do i scan for wlan connections?
How do i scan for wlan connections? and how do i get the connection status
IAM A NEWBIE! ^^
Good question... I guess this will be helpfull if you would like to make an app. to look for example Fon hotspots and connect to them by default... I have not seen any app. other than WiFiSniffer that scans for wlan connections... I don't know if one could make the PSP do some sort of WiFi hopping... However if it can be done I'm sure that it would make a great plugin atleast when Skype for PSP (maybe Sony should implement it themself) is released...
Best regards!
Best regards!
-
- Posts: 12
- Joined: Sat Jan 27, 2007 4:07 am
-
- Posts: 376
- Joined: Wed May 10, 2006 11:31 pm
-
- Posts: 12
- Joined: Sat Jan 27, 2007 4:07 am
int main(int argc, char *argv[])
{
char sVal[7];
int retVal;
//init screen and callbacks
pspDebugScreenInit();
pspDebugScreenClear();
SetupCallbacks();
memset(sVal, 0, 7);
for(;;) {
sceDisplayWaitVblankStart();
pspDebugScreenSetXY(0, 0);
printf("Wlan Sample v1.0 by John_K\n\n");
printf("Wlan switch is %s\n", sceWlanGetSwitchState() == 0 ? "off":"on");
printf("Wlan power is %s\n", sceWlanDevIsPowerOn() == 0 ? "off":"on");
retVal = sceWlanGetEtherAddr(sVal);
if (retVal == 0)
printf("Wlan Ethernet Addr: %02X:%02X:%02X:%02X:%02X:%02X\n", sVal[0], sVal[1], sVal[2], sVal[3], sVal[4], sVal[5]);
else
printf("Error getting Wlan Ethernet Address (0x%08X)\n", retVal);
}
sceKernelSleepThread();
sceKernelExitGame();
return 0;
}
That was the only thing that i could find in the samples in sdk...
{
char sVal[7];
int retVal;
//init screen and callbacks
pspDebugScreenInit();
pspDebugScreenClear();
SetupCallbacks();
memset(sVal, 0, 7);
for(;;) {
sceDisplayWaitVblankStart();
pspDebugScreenSetXY(0, 0);
printf("Wlan Sample v1.0 by John_K\n\n");
printf("Wlan switch is %s\n", sceWlanGetSwitchState() == 0 ? "off":"on");
printf("Wlan power is %s\n", sceWlanDevIsPowerOn() == 0 ? "off":"on");
retVal = sceWlanGetEtherAddr(sVal);
if (retVal == 0)
printf("Wlan Ethernet Addr: %02X:%02X:%02X:%02X:%02X:%02X\n", sVal[0], sVal[1], sVal[2], sVal[3], sVal[4], sVal[5]);
else
printf("Error getting Wlan Ethernet Address (0x%08X)\n", retVal);
}
sceKernelSleepThread();
sceKernelExitGame();
return 0;
}
That was the only thing that i could find in the samples in sdk...
IAM A NEWBIE! ^^
-
- Posts: 12
- Joined: Sat Jan 27, 2007 4:07 am
Hi! :)
You can check psp-python sources.
http://fraca7.homeunix.net/trac/
In the pspnet module there's the function enumconfigs. :)
Ciaooo
Sakya
You can check psp-python sources.
http://fraca7.homeunix.net/trac/
In the pspnet module there's the function enumconfigs. :)
Ciaooo
Sakya
-
- Posts: 376
- Joined: Wed May 10, 2006 11:31 pm