Discussion Board

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

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


    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();


    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);

    TCommDbConnPref prefs;

    error = server.Connect(KESockDefaultMessageSlots);

    error = connection.Open(server, KConnectionTypeDefault);




    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

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

    This thread could be of help to you:

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