help with wlan code piece

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

Moderators: cheriff, TyRaNiD

Post Reply
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

help with wlan code piece

Post by Question_dev »

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 »

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 »

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 »

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 »

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.
Post Reply