How do i scan for wlan connections?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
SWE_PsYcHo
Posts: 12
Joined: Sat Jan 27, 2007 4:07 am

How do i scan for wlan connections?

Post by SWE_PsYcHo »

How do i scan for wlan connections? and how do i get the connection status
IAM A NEWBIE! ^^
digihoe
Posts: 108
Joined: Sat May 14, 2005 7:40 pm

Post by digihoe »

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!
SWE_PsYcHo
Posts: 12
Joined: Sat Jan 27, 2007 4:07 am

Post by SWE_PsYcHo »

and i think that youresam from qj was the one who wrote how to do it in lua...
IAM A NEWBIE! ^^
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

There are samples in the SDK which illustrate this.
SWE_PsYcHo
Posts: 12
Joined: Sat Jan 27, 2007 4:07 am

Post by SWE_PsYcHo »

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...
IAM A NEWBIE! ^^
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

use code tags!!

wifisniffer does that , mayby its open source dont know that
SWE_PsYcHo
Posts: 12
Joined: Sat Jan 27, 2007 4:07 am

Post by SWE_PsYcHo »

nah iam pretty sure its closed source :P ^^ but i opend their eboot with notepad and found some stuff that ill try to find out on how to use it :P i hope that i will success :P (sry for my bad english)
IAM A NEWBIE! ^^
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

Hi! :)

You can check psp-python sources.
http://fraca7.homeunix.net/trac/

In the pspnet module there's the function enumconfigs. :)

Ciaooo
Sakya
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

SWE_PsYcHo wrote:...That was the only thing that i could find in the samples in sdk...
Look harder.

samples/net/wlanscan_elf
SWE_PsYcHo
Posts: 12
Joined: Sat Jan 27, 2007 4:07 am

Post by SWE_PsYcHo »

i have no net folder :(
IAM A NEWBIE! ^^
Post Reply