Create WLAN access point on S60

Login to reply to this topic.
Fri, 2007-10-19 18:38
Joined: 2007-10-19
Forum posts: 2

Hi,

i'm trying to create WLAN access point for N95!!

CODE:

CApAccessPointItem *wlan = CApAccessPointItem::NewLC();
wlan->SetNamesL(_L("myWLAN_IAP"));
wlan->SetBearerTypeL(EApBearerTypeWLAN);
wlan->WriteTextL(EApWlanNetworkName, _L("mySSID"));
// Store it into CommDb
CCommsDatabase *db = CCommsDatabase::NewL();
CleanupStack::PushL(db);
CApDataHandler *handler = CApDataHandler::NewLC(*db);
TUint32 apId = handler->CreateFromDataL(*wlan);

CApUtils *aputil = CApUtils::NewLC(*db);
TUint32 wapuid = wlan->WapUid();
TInt Iap = aputil->IapIdFromWapIdL(wapuid);

Starting the code in emulator, i get System error(-1) on the line:
TUint32 apId = handler->CreateFromDataL(*wlan);

Any ideas why?
I use S60_3._FP1 and carbide.c++

Thanks

Dejan


Wed, 2007-10-31 19:23
Joined: 2005-07-28
Forum posts: 121
Re: Create WLAN access point on S60

It doesn't work on the emulator, tables are missing etc, hence the -1 (KErrNotFound)

Should work on device.

  • Login to reply to this topic.