Reply
Thread Tools
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#1
Hello,

I would like to include scanning for WLAN access points in my application (native c++). Could someone point me to the right API description as I haven't really found anything about this (or an example/snippet would be really great)?

I would like to be able to:

power on/off WiFi module
scan and retrieve list of active SSIDs and BSSIDs (with all the extra info if possible)

Thanks!
 

The Following User Says Thank You to hopbeat For This Useful Post:
Stskeeps's Avatar
Posts: 1,671 | Thanked: 11,478 times | Joined on Jun 2008 @ Warsaw, Poland
#2
For scanning, libiw might be a good shot. For turning wifi module off and on - you have to do the equivalent of /sbin/ifconfig wlan0 up / down. But I'm not sure how this conflicts with regular operation.

Maybe libconic as well.
__________________
As you go on to other communities, remember to build them around politeness, respect, trust and humility. Be wary of poisonous people and deal with them before they end up killing your community.. Seen it happen to too many IRC channels, forums, open source projects.
 

The Following 4 Users Say Thank You to Stskeeps For This Useful Post:
Framstag's Avatar
Posts: 72 | Thanked: 51 times | Joined on Jul 2008 @ Germany
#3
Originally Posted by hopbeat View Post
Hello,

I would like to include scanning for WLAN access points in my application (native c++). Could someone point me to the right API description as I haven't really found anything about this (or an example/snippet would be really great)?
At leats ont he N770, N800, N810 (and I assume on the N900) direct scanning for WLAN AP trhough kernel interfaces was not possible, because the driver could not handle multiple scans. You have to call the (undocumented) dbus interface of the daemon responsible for handling WLAN connections to get a list of APs togetehr with some information.

Take a look at the sources of WifiInfo for an example how to do this.

http://illumination.svn.sourceforge....runk/WifiInfo/

Especially

http://illumination.svn.sourceforge....77&view=markup

Contact me, if you need further information.

Gruß...Tim
 

The Following User Says Thank You to Framstag For This Useful Post:
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#4
Hi,

you can take as well a look at the documentation of the connectivity components in the developer guide in the wiki.

Cheers Daniel
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
Framstag's Avatar
Posts: 72 | Thanked: 51 times | Joined on Jul 2008 @ Germany
#5
Originally Posted by danielwilms View Post
Hi,

you can take as well a look at the documentation of the connectivity components in the developer guide in the wiki.

Cheers Daniel
Yes, but I do not see a way to get the list of the currently scan WLAN APs.

You get information about the current connection, you get information if the connection changes and you get information about the stored connections - but that weas not requested. or is there something I havn't seen?

Gruß...Tim
 

The Following User Says Thank You to Framstag For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#6
Thanks for the replies.
My target platform is Maemo 5.

I will check WifiInfo, if you can show any other way to do that I would be much obliged
 
Framstag's Avatar
Posts: 72 | Thanked: 51 times | Joined on Jul 2008 @ Germany
#7
Originally Posted by hopbeat View Post
Thanks for the replies.
My target platform is Maemo 5.

I will check WifiInfo, if you can show any other way to do that I would be much obliged
To get the list of currently scanned APs you just need to make a DBus call. Details can be extracted from the WifiInfo sources. Depending on the programming langugae to possibly can be reduced to a small number of code lines. I know of no other as simple way for this device.

WifiInfo does work on the N900.

Gruß...Tim
 

The Following User Says Thank You to Framstag For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#8
Great, thanks.

I will just keep asking stupid questions if I have any problems
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:52.