Revision as of 08:48, 18 September 2012 by hamishwillee (Talk | contribs)

Disabling WLAN scan using Symbian C++

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


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;
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.