×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    How to get SSID for WLan?

    For my app, I'd like to scan for WLAN and then use SSID (MAC address) and signal level information of all wireless APs around the MeeGo device (N9).

    However, I find the Qt APIs lacking this purpose. Using QNetworkConfigurationManager::allConfigurations() funciton, I could get the WLAN's access point names but no MAC addresses.

    So, my question is: What can I use to do a scan for a wireless APs and acqure SSID and signal information? Is there another way to use the Qt/MeeGo API?

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: How to get SSID for WLan?

    I think you cannot do that by using Qt Berarer API.

    You could try with libcconic (http://maemo.org/api_refs/4.0/libconic/)
    or better by using libiw30 (which are installed on the device).
    I guess this libs are not available on Qt SDK but you can find them if you install the platform SDK (Scratchbox).
    More info about this lib can be found at this page: http://www.hpl.hp.com/personal/Jean_...nux/Tools.html

    In case you want to access to the AP you can use GConf. These are the info which are stored in the that DB.
    /home/developer $ gconftool-2 /system/osso/connectivity/IAP/eed7007a-b0fb-4ed7-82d6-5e2e3e9c5514 --all-entries
    proxytype = NONE
    wlan_hidden = false
    wlan_security = NONE
    type = WLAN_INFRA
    autoconnect = true
    name = rosenborgfreewifi
    wlan_ssid = [114,111,115,101,110,98,111,114,103,102,114,101,101,119,105,102,105]
    ipv4_type = AUTO

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Re: How to get SSID for WLan?

    Thanks gnuton for your response. I will go over the links.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Re: How to get SSID for WLan?

    gnuton,

    As suggested, I am using iwlib's iw_scan function to get the SSID & BSSID. When I run my app through QtCreator (with developer user) it lists all the AP in the range. But when I run it on device it list very few and sometimes none.
    I was looking for security tokens for iwlib which I can include in aegis manifest file but couldn't find any.
    iw_scan API says root privileges are required to scan which I am not sure how to do through my app (I am in transition from Symbian to MeeGo)

    So, to sum it all, I can use WLAN scanning when I am run my app through QtCreator (i.e. with developer user) but when run separately on device, results are different.

    I am using N9 as my target device.

    Any help would be useful.

    Thanks,
    - Asheesh

  5. #5
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: How to get SSID for WLan?

    Hi,
    the list of available AEGIS tokens is available at:
    http://www.developer.nokia.com/Commu...ecurity_Tokens

    I don't know which is the correct one to use right now.
    You could try to give root to permission to your app via manifest file but maybe it doesn't help so much, but you can try!

    <aegis>
    <request>
    <credential name="UID::myuser" />
    <credential name="GID::mygroup" />
    <for path="/usr/bin/myapp" />
    </request>
    </aegis>

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Re: How to get SSID for WLan?

    Thanks gnuton.

Similar Threads

  1. to get ssid
    By d.devendran in forum Symbian
    Replies: 4
    Last Post: 2009-07-15, 09:42
  2. Getting WLAN Access point SSID
    By nadav_smilansky in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-09-25, 16:32
  3. Problem Reading current WLAN SSID
    By semb in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-12-28, 13:20
  4. Replies: 1
    Last Post: 2007-09-17, 14:59
  5. D211 WLAN and "hidden" SSID
    By Capricorn72 in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-23, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×