forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with wlan code piece

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Sun Oct 07, 2007 8:55 pm    Post subject: help with wlan code piece Reply with quote

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
View user's profile Send private message
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Sun Oct 07, 2007 9:00 pm    Post subject: Reply with quote

thats a function that tells u if its on. it cant be used to power up down wifi
Back to top
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Sun Oct 07, 2007 9:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Mon Oct 08, 2007 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Mon Oct 08, 2007 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group