Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
Question_dev
Posts: 88 Joined: Fri Aug 24, 2007 8:23 pm
Post
by Question_dev » Sun Oct 07, 2007 8:55 pm
i use this in my code and get an error on it :
Code:
(sceWlanDevIsPowerOn()) = 1;
i wnat to power on the wlan device, only power on, nothing more
i get this error :
Code:
main.c: In function 'sceWlanGetSwitchState':
main.c(15) : error: syntax error before 'int'
Viper8896
Posts: 110 Joined: Thu Jan 26, 2006 6:20 pm
Post
by Viper8896 » Sun Oct 07, 2007 9:00 pm
thats a function that tells u if its on. it cant be used to power up down wifi
Question_dev
Posts: 88 Joined: Fri Aug 24, 2007 8:23 pm
Post
by Question_dev » Sun Oct 07, 2007 9:04 pm
Viper8896 wrote: thats a function that tells u if its on. it cant be used to power up down wifi
do you now what i need to use ?
weltall
Posts: 310 Joined: Fri Feb 20, 2004 1:56 am
Contact:
Post
by weltall » Mon Oct 08, 2007 12:37 am
and it's being improperly used
(sceWlanDevIsPowerOn()) = 1;
this isn't c/c++ it should be at least
if(sceWlanDevIsPowerOn() == 1)
{whathever}
moonlight
Posts: 567 Joined: Wed Oct 26, 2005 7:46 pm
Post
by moonlight » Mon Oct 08, 2007 3:47 am
Question_dev wrote: Viper8896 wrote: thats a function that tells u if its on. it cant be used to power up down wifi
do you now what i need to use ?
sceSysconCtrlWlanPower(1) or scePowerWlanActivate, but i Don't know if they are included in the sdk or if you will have to make your own stub or library.