×
Namespaces

Variants
Actions

Disabling WLAN scan using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search
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: hamishwillee (18 Sep 2012)

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 18 September 2012, at 08:48.
85 page views in the last 30 days.
×