Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Disabling WLAN scan using Symbian C++

From 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}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): All
Platform(s): S60 5th Edition
S60 3rd Edition, FP2
S60 3rd Edition, FP1
S60 5th Edition
S60 3rd Edition FP2
S60 3rd Edition FP1
Created: User:Nokia Developer KB (05 Feb 2010)
Last edited: lpvalente (23 Aug 2014)


WLAN scan can be disabled using 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.


The WLAN scan interval can be set using the CommsDat WLAN API (wlancdbcols.h), described in Archived:How to get and set the WLAN scan interval using Symbian C++. As a special case, you can programmatically disable scan by setting the interval as 0 (zero) minutes. Once WLAN scan is disabled, the setting for Show WLAN availability shows Never (in Settings application | Connections | Wireless LAN).

Note that this will not remove the WLAN icon from the status pane because the WLAN engine doesn't receive a notification about the change in the value of background scan interval. The engine can be notified (and the icon removed from the status pane) by adding this code snippet:

 // Notifying WLAN Engine about changes in settings.
CWlanMgmtClient* wlanMgmtClient = CWlanMgmtClient::NewL();
delete wlanMgmtClient;
This page was last modified on 23 August 2014, at 03:03.
71 page views in the last 30 days.