×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    5

    Unable to connect to Wi-Fi access point after scanning the access point

    Hello,

    I want to connect to the Wi-Fi access point through my application but the problem is that even after successful scanning of the access point but still when I tried to connect through access point by my following code :-


    CCommsDatabase *db = CCommsDatabase::NewL();

    CleanupStack::PushL(db);

    CApDataHandler *handler = CApDataHandler::NewLC(*db);

    TUint32 apId = handler->CreateFromDataL(*wlan); //returns UID of AP

    iLog.WriteFormat(_L("UID =%d"),apId);

    CApUtils *aputil = CApUtils::NewLC(*db);

    TUint32 wapuid = wlan->WapUid(); //returns ID of this AP
    Iap = aputil->IapIdFromWapIdL(wapuid); //returns The Iap record ID.

    iLog.WriteFormat(_L("Iap record ID =%d"),Iap);

    CApSettingsHandler *settings =CApSettingsHandler::NewLC(EFalse,EApSettingsSelListIsListPane,
    EApSettingsSelMenuNormal, 0, 0, 0);

    settings->RunSettingsL(apId, apId);
    CleanupStack::PopAndDestroy(5);

    TCommDbConnPref prefs;

    error = server.Connect(KESockDefaultMessageSlots);

    error = connection.Open(server, KConnectionTypeDefault);



    prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);

    prefs.SetDirection(ECommDbConnectionDirectionOutgoing);

    prefs.SetIapId(Iap);

    error = connection.Start(prefs);



    but it return error code -30180 at the following line

    error = connection.Start(prefs);

    Plz reply if anybody have any clue........

  2. #2
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: Unable to connect to Wi-Fi access point after scanning the access point

    This thread could be of help to you:
    http://discussion.forum.nokia.com/fo...an+%2230180%22
    --Mayur.

Similar Threads

  1. Connection Monitor Server & Access Point Engine API's
    By j4y4n7 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-06-20, 16:09
  2. Replies: 1
    Last Post: 2006-08-18, 09:03
  3. Provisioning an Access Point
    By pixelseventy2 in forum OMA DM/DS/CP
    Replies: 8
    Last Post: 2006-03-03, 10:28
  4. Access point selection
    By jmdeveloper in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-02-12, 08:10
  5. NOKIA D211 doesn't work with my 3com and Asus access point
    By nuvolablu in forum Multimodecards
    Replies: 4
    Last Post: 2004-04-24, 19:00

Posting Permissions

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