Greeting to everybody..
trying to create WLAN IAP CApDataHandler::CreateFromDataL leaves with KErrAbort on device

For Symbian OS v9.1 necessary to use capability 'WriteDeviceData', else CreateFromDataL() generate leave KErrAbort (-39).

but all these capabilities are granted.
SDK 9.2, device E71
Any help will be appreciated.
code:

CApAccessPointItem *wlan = CApAccessPointItem::NewLC();
wlan->SetNamesL(wlanData.iSsid);
wlan->SetBearerTypeL(EApBearerTypeWLAN);
wlan->WriteTextL(EApWlanNetworkName, wlanData.iSsid);
wlan->WriteUint(EApWlanSecurityMode, 2);
wlan->WriteUint(EApWlanNetworkMode, 1);
CCommsDatabase *commDb = CCommsDatabase::NewL();
CleanupStack::PushL(commDb);
CApDataHandler *handler = CApDataHandler::NewLC(*commDb);
TInt err = commDb ->BeginTransaction();
if( !wlan->SanityCheckOk() )
{
return;
}
TUint32 newApId = handler->CreateFromDataL(*wlan);