×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    69

    getting Wlan network name

    Hi

    I'm using the following code to get the Wlan name:

    TUint count;
    TRequestStatus status;
    TUint ids[ 15 ];

    RConnectionMonitor monitor;
    // open RConnectionMonitor object
    monitor.ConnectL();
    monitor.GetConnectionCount( count, status );
    User::WaitForRequest( status );
    if ( status.Int() != KErrNone )
    {
    // error
    }

    // get connection ids of the active connections
    TUint numSubConnections;

    for ( TInt i = 1; i <= count; i++ )
    {
    TInt ret = monitor.GetConnectionInfo( i, ids[ i-1 ], numSubConnections );
    if ( ret != KErrNone )
    {
    // error
    }
    }

    TBuf< 50 > iapName;
    monitor.GetStringAttribute( ids[ 0 ], 0, KIAPName, iapName, status );
    User::WaitForRequest( status );

    The problem is that when the WLAN is not defined in the device it
    return "Easy Wlan" and when the WLAN is define it retuens the correct name.

    Is my code correct? is there another way to get the WLAN name?

    Regards,
    Noam

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: getting Wlan network name

    You can experiment with the additional WLAN API-s in the plugin pack: http://wiki.forum.nokia.com/index.php/SDK_API_Plug-in

Similar Threads

  1. how to make AD HOC WLAN network connections
    By arun_stmicro in forum General Development Questions
    Replies: 4
    Last Post: 2007-10-11, 15:40
  2. How to set WLAN IAP network mode to Ad-hoc instead of Infrastructure?
    By PopAndDestroy in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2007-08-29, 08:04
  3. creating socket over WLAN network, question
    By tomasz.florczak in forum Wired and Wireless interfaces (Closed)
    Replies: 3
    Last Post: 2007-06-28, 06:47
  4. N80 WLAN, can't see phone in network
    By Acid12 in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2006-12-29, 21:02
  5. How to create WLAN ad hoc network between mobiles programmatically?
    By hindol in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2006-11-23, 03:07

Posting Permissions

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