Archived:How to get and set the WLAN scan interval using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

This depends on API plugin plugin that isn't relevant for current versions of Symbian.

Article Metadata
Tested with
Devices(s): Nokia 6210 Navigator, Nokia E90 Communicator, Nokia N78, Nokia N95
Created: User:Technical writer 1 (23 Apr 2009)
Last edited: hamishwillee (30 May 2013)


This article explains how to get and set the time period for scanning WLAN networks using definitions from the CommsDat WLAN API (wlancdbcols.h).

Note.pngNote: This API is not part of the public SDK. It can be found in the SDK API Plug-in.


 CCommsDatabase* iDb = CCommsDatabase::NewL();
// Open user settings
CCommsDbTableView* iDbtable =
iDb->OpenViewMatchingUintLC( TPtrC(WLAN_DEVICE_SETTINGS),
KWlanUserSettings );
// Sets scan interval to 1 minute
iDbtable->WriteUintL(TPtrC( WLAN_BG_SCAN_INTERVAL ), 60);
User::LeaveIfError( iDbtable->PutRecordChanges() );
// iScanNetworks gives the Scan interval which is set in seconds
// (in this case it returns 60)
TUint32 iScanNetworks;
iDbtable->ReadUintL(TPtrC( WLAN_BG_SCAN_INTERVAL ), iScanNetworks);

As a special case, the WLAN scan can also be disabled. See Disabling WLAN scan using Symbian C++ for details how to do this programmatically.

This page was last modified on 30 May 2013, at 23:39.
62 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.