| View previous topic :: View next topic |
| Author |
Message |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Oct 07, 2007 8:55 pm Post subject: help with wlan code piece |
|
|
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' |
|
| Back to top |
|
 |
Viper8896
Joined: 26 Jan 2006 Posts: 110
|
Posted: Sun Oct 07, 2007 9:00 pm Post subject: |
|
|
| thats a function that tells u if its on. it cant be used to power up down wifi |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Oct 07, 2007 9:04 pm Post subject: |
|
|
| 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 ? |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Mon Oct 08, 2007 12:37 am Post subject: |
|
|
and it's being improperly used
(sceWlanDevIsPowerOn()) = 1;
this isn't c/c++ it should be at least
if(sceWlanDevIsPowerOn() == 1)
{whathever} |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Mon Oct 08, 2007 3:47 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|