×
Namespaces

Variants
Actions

Disabling WLAN scan 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}}.

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


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

Overview

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.

Description

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();
wlanMgmtClient->NotifyChangedSettings();
delete wlanMgmtClient;
This page was last modified on 23 August 2014, at 03:03.
150 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.

×