×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    5

    Red face Last byte of BSSID incorrect.

    Hi All,

    I am using CWlanScanInfo and CWlanMgmtClient to scan for APs. I can read the SSID correctly and the power levels seem right. However, the last byte of the BSSID/MacAddress is incorrect while the first 5 bytes are correct in the log file that I am writing to. The addresses for any given accesspoint are always the same. I am using my PC's WLAN card diagnostic to get the AP's MAC Address. Am I not understanding BSSIDs? Is there any known problems with this? I am using the FP2 SDK plugins on an N95-3.

    Code snippet:

    TWlanBssid bssid;
    wlanScanInfo->Bssid( bssid );
    TUint8 rxLevel = wlanScanInfo->RXLevel();
    TUint8 ieLen( 0 );
    TBuf<50> ibuff;
    TInt ret = wlanScanInfo->InformationElement(KWlan802Dot11SsidIE, ieLen, &ieData );
    TPtrC8 pSsid(ieData,ieLen);
    ibuff.Copy(pSsid);

    iWlanLog.WriteFormat(_L("%02x:%02x:%02x:%02x:%02x:%02x -%02d %s"), bssid[0],bssid[1],bssid[2],bssid[3],bssid[4],bssid[5], rxLevel, &ibuff[0]);


    The log file output looks like this:

    2008/01/21 16:35:31 00:1c:f0:5d:45:31 -56 dlink

    Thanks

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Re: Last byte of BSSID incorrect.

    Did you find any explanation or solution to the problem, I am facig the same problem. Please reply if you hav the answer.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    5

    Re: Last byte of BSSID incorrect.

    I concluded that there actually was no problem with the BSSID after all and that Wireshark has mislead me. I installed a Wireless LAN Driver Program on my PC which displays the BSSID of the AP that I am connected to and it shows the same as the one returned from Nokia's API.

    Quote Originally Posted by sumeet2k06 View Post
    Did you find any explanation or solution to the problem, I am facig the same problem. Please reply if you hav the answer.

  4. #4
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    107

    Re: Last byte of BSSID incorrect.

    Hi,

    Do you know how to get also the SSID using the WLAN Info API? I am not sure how to do it. I retrieved the MAC address of all APs but I don't know how to get also the SSID using the same API, I don't want to use the RConnectionMonitor for that as I want both informations, BSSID and ESSID for the same network.


    Btw... the code that you are using is not so good, at least it gives me crashes as you are using a fixed length for the BSSID. I think this is better:
    Code:
    _LIT(KBSSIDFormat, "%02X:");
    TBuf<32> bss;
    TWlanBssid bssid;
    iScanInfo->Bssid( bssid );
    bss.Zero();
    TInt i;
    for(i = 0; i < bssid.Length(); i++)
      bss.AppendFormat(KBSSIDFormat, bssid[i]);
    //remove last :
    bss.Delete(bss.Length()-1, 1);
    //Now you have the bssid in the bss descriptor
    Thanks,
    Omar
    Last edited by omarfr; 2008-04-07 at 13:55.

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    107

    Re: Last byte of BSSID incorrect.

    I've just made a function that retrieves also the SSID with the WLAN Info API.

    It is here if someone is interested: http://wiki.forum.nokia.com/index.ph..._WLAN_INFO_API

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Re: Last byte of BSSID incorrect.

    Thanks, for the code. I think I'll take your advice.

Similar Threads

  1. Preventing write-access to NFC tag
    By Jazz66 in forum Near Field Communication
    Replies: 4
    Last Post: 2009-06-25, 11:11
  2. Authorization Failed
    By crispychampion in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-12-21, 21:40
  3. what is an APDU
    By pawangjain in forum Near Field Communication
    Replies: 0
    Last Post: 2007-07-02, 07:42
  4. 有没有支持游戏外壳的模拟器啊
    By xian-dao in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 3
    Last Post: 2006-06-05, 03:54
  5. Loading images from byte array on 6130i
    By enlightment in forum Mobile Java General
    Replies: 2
    Last Post: 2002-06-05, 19:44

Posting Permissions

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