MWlanMgmtInterface Class Reference

class MWlanMgmtInterface

ECom interface class for WLAN management services.

This class contains the methods for managing WLAN connections and querying the statuses of various connection variables.

Since
Series 60 3.0
Public Member Functions
voidActivateExtendedNotificationsL(MWlanMgmtNotifications &, TUint)
voidActivateNotificationsL(MWlanMgmtNotifications &)
TInt AddBssidToBlacklist(const TWlanBssid &)
TInt AddIapSsidList(TUint, const CArrayFixFlat< TWlanSsid > &)
voidCancelCreateTrafficStream()
voidCancelDeleteTrafficStream()
voidCancelDirectedRoam()
voidCancelGetAvailableIaps()
voidCancelGetScanResults()
voidCancelNotifications()
voidCancelProtectedSetup()
voidCreateTrafficStream(TRequestStatus &, const TWlanTrafficStreamParameters &, TUint &, TWlanTrafficStreamStatus &)
voidDeleteTrafficStream(TRequestStatus &, TUint)
voidDirectedRoam(TRequestStatus &, const TWlanBssid &)
TInt GetAvailableIaps(RArray< TUint > &)
voidGetAvailableIaps(TRequestStatus &, RArray< TUint > &)
voidGetAvailableIaps(TInt &, TUint &, TRequestStatus &, RArray< TUint > &)
voidGetAvailableIaps(TInt &, TUint &, TBool, TRequestStatus &, RArray< TWlanIapAvailabilityData > &)
TInt GetConnectionBssid(TWlanBssid &)
TInt GetConnectionMode(TWlanConnectionMode &)
TInt GetConnectionSecurityMode(TWlanConnectionSecurityMode &)
TInt GetConnectionSignalQuality(TInt32 &)
TInt GetConnectionSsid(TWlanSsid &)
TInt GetExtendedConnectionSecurityMode(TWlanConnectionExtentedSecurityMode &)
TInt GetScanResults(CWlanScanInfo &)
voidGetScanResults(TRequestStatus &, CWlanScanInfo &)
voidGetScanResults(TWlanSsid &, TRequestStatus &, CWlanScanInfo &)
voidGetScanResults(TInt &, TUint &, TWlanSsid &, TRequestStatus &, CWlanScanInfo &)
voidNotifyChangedSettings()
TInt RemoveIapSsidList(TUint)
voidRunProtectedSetup(TRequestStatus &, TUint32, CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > &)
TInt StartAggressiveBgScan(TUint)
TInt UpdateRssNotificationBoundary(const TInt32, const TInt32)

Member Functions Documentation

ActivateExtendedNotificationsL(MWlanMgmtNotifications &, TUint)

voidActivateExtendedNotificationsL(MWlanMgmtNotifications &aCallback,
TUintaCallbackInterfaceVersion =  KWlanCallbackInterfaceVersion
)[pure virtual]

Activate the extended notification service.

After the client has enabled the notification service, it can receive asynchronous notifications from the server.

Parameters

MWlanMgmtNotifications & aCallbackThe class that implements the callback interface.
TUint aCallbackInterfaceVersion =  KWlanCallbackInterfaceVersion The callback interface version implemented by the client. This MUST NOT be touched.

ActivateNotificationsL(MWlanMgmtNotifications &)

voidActivateNotificationsL(MWlanMgmtNotifications &aCallback)[pure virtual]

Activate the notification service.

After the client has enabled the notification service, it can receive asynchronous notifications from the server.

Note:

This method only activates notifications defined in callback interface v1.

ActivateExtendedNotificationsL

Parameters

MWlanMgmtNotifications & aCallbackThe class that implements the callback interface.

AddBssidToBlacklist(const TWlanBssid &)

TInt AddBssidToBlacklist(const TWlanBssid &aBssid)[pure virtual]

Adds a bssid to the blacklist

Parameters

const TWlanBssid & aBssidThe BSSID of the accesspoint.

AddIapSsidList(TUint, const CArrayFixFlat< TWlanSsid > &)

TInt AddIapSsidList(TUintaIapId,
const CArrayFixFlat< TWlanSsid > &aSsidList
)[pure virtual]

Add a list of SSIDs to the given IAP ID.

The list of SSIDs is matched against the scan results during IAP availability check and the corresponding IAP marked as available if a match is found.

Parameters

TUint aIapIdIAP ID the list is attached to.
const CArrayFixFlat< TWlanSsid > & aSsidListList of SSIDs. Any previous list attached will be overwritten.

CancelCreateTrafficStream()

voidCancelCreateTrafficStream()[pure virtual]

Cancel an outstanding traffic stream creation request.

CancelDeleteTrafficStream()

voidCancelDeleteTrafficStream()[pure virtual]

Cancel an outstanding traffic stream deletion request.

CancelDirectedRoam()

voidCancelDirectedRoam()[pure virtual]

Cancel an outstanding directed roam request.

CancelGetAvailableIaps()

voidCancelGetAvailableIaps()[pure virtual]

Cancel an outstanding IAP availability request.

CancelGetScanResults()

voidCancelGetScanResults()[pure virtual]

Cancel an outstanding scan request.

CancelNotifications()

voidCancelNotifications()[pure virtual]

Cancel the notification service.

CancelProtectedSetup()

voidCancelProtectedSetup()[pure virtual]

Cancel an outstanding Protected Setup operation.

CreateTrafficStream(TRequestStatus &, const TWlanTrafficStreamParameters &, TUint &, TWlanTrafficStreamStatus &)

voidCreateTrafficStream(TRequestStatus &aStatus,
const TWlanTrafficStreamParameters &aStreamParameters,
TUint &aStreamId,
TWlanTrafficStreamStatus &aStreamStatus
)[pure virtual]

Create a virtual traffic stream.

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
const TWlanTrafficStreamParameters & aStreamParametersTraffic stream parameters to use.
TUint & aStreamIdContains the ID assigned to this traffic stream on successful completion.
TWlanTrafficStreamStatus & aStreamStatusContains the status of the traffic stream on successful completion.

DeleteTrafficStream(TRequestStatus &, TUint)

voidDeleteTrafficStream(TRequestStatus &aStatus,
TUintaStreamId
)[pure virtual]

Delete a virtual traffic stream.

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
TUint aStreamIdID of the traffic stream to delete.

DirectedRoam(TRequestStatus &, const TWlanBssid &)

voidDirectedRoam(TRequestStatus &aStatus,
const TWlanBssid &aBssid
)[pure virtual]

Initiate a roam to the given BSSID.

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
const TWlanBssid & aBssidBSSID to roam to. If set to FF:FF:FF:FF:FF:FF address, search for a better BSS is initiated.

GetAvailableIaps(RArray< TUint > &)

TInt GetAvailableIaps(RArray< TUint > &aAvailableIaps)[pure virtual]

Get the available WLAN IAPs.

Parameters

RArray< TUint > & aAvailableIapsArray of IAP IDs available.

GetAvailableIaps(TRequestStatus &, RArray< TUint > &)

voidGetAvailableIaps(TRequestStatus &aStatus,
RArray< TUint > &aAvailableIaps
)[pure virtual]

Get the available WLAN IAPs.

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
RArray< TUint > & aAvailableIapsArray of IAP IDs available.

GetAvailableIaps(TInt &, TUint &, TRequestStatus &, RArray< TUint > &)

voidGetAvailableIaps(TInt &aCacheLifetime,
TUint &aMaxDelay,
TRequestStatus &aStatus,
RArray< TUint > &aAvailableIaps
)[pure virtual]

Get the available WLAN IAPs.

Parameters

TInt & aCacheLifetimeDefines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system.
TUint & aMaxDelayMaximum amount of seconds the client is willing to wait for the availability results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system.
TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
RArray< TUint > & aAvailableIapsArray of IAP IDs available.

GetAvailableIaps(TInt &, TUint &, TBool, TRequestStatus &, RArray< TWlanIapAvailabilityData > &)

voidGetAvailableIaps(TInt &aCacheLifetime,
TUint &aMaxDelay,
TBoolaFilteredResults,
TRequestStatus &aStatus,
RArray< TWlanIapAvailabilityData > &aAvailableIaps
)[pure virtual]

Get the available WLAN IAPs.

Parameters

TInt & aCacheLifetimeDefines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system.
TUint & aMaxDelayMaximum amount of seconds the client is willing to wait for the availability results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system.
TBool aFilteredResultsWhether availability is filtered based on signal strength. ETrue if filtering is allowed, EFalse if not.
TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
RArray< TWlanIapAvailabilityData > & aAvailableIapsArray of IAPs available.

GetConnectionBssid(TWlanBssid &)

TInt GetConnectionBssid(TWlanBssid &aBssid)[pure virtual]

Get the BSSID of the BSS currently connected to.

Note:

This method can only be used while successfully connected to a WLAN network.

Parameters

TWlanBssid & aBssidBSSID of the currently connected BSS.

GetConnectionMode(TWlanConnectionMode &)

TInt GetConnectionMode(TWlanConnectionMode &aMode)[pure virtual]

Get the mode of the WLAN connection.

Parameters

TWlanConnectionMode & aModeThe current mode of the connection.

GetConnectionSecurityMode(TWlanConnectionSecurityMode &)

TInt GetConnectionSecurityMode(TWlanConnectionSecurityMode &aMode)[pure virtual]

Get the currently used security mode of the WLAN connection.

Note:

This method can only be used while successfully connected to a WLAN network.

This method is offered for backward compatibility reasons, GetExtendedConnectionSecurityMode() should be used instead.

Parameters

TWlanConnectionSecurityMode & aModeThe security mode of the connection.

GetConnectionSignalQuality(TInt32 &)

TInt GetConnectionSignalQuality(TInt32 &aSignalQuality)[pure virtual]

Get the current Received Signal Strength Indicator (RSSI).

Note:

This method can only be used while successfully connected to a WLAN network.

Parameters

TInt32 & aSignalQualityCurrent RSSI.

GetConnectionSsid(TWlanSsid &)

TInt GetConnectionSsid(TWlanSsid &aSsid)[pure virtual]

Get the SSID of the WLAN network currently connected to.

Note:

This method can only be used while successfully connected to a WLAN network.

Parameters

TWlanSsid & aSsidSSID of the currently connected network.

GetExtendedConnectionSecurityMode(TWlanConnectionExtentedSecurityMode &)

TInt GetExtendedConnectionSecurityMode(TWlanConnectionExtentedSecurityMode &aMode)[pure virtual]

Get the currently used security mode of the WLAN connection.

Note:

This method can only be used while successfully connected to a WLAN network.

Parameters

TWlanConnectionExtentedSecurityMode & aModeThe security mode of the connection.

GetScanResults(CWlanScanInfo &)

TInt GetScanResults(CWlanScanInfo &aResults)[pure virtual]

Perform a broadcast scan and return the detected WLAN networks.

Parameters

CWlanScanInfo & aResultsResults of the scan.

GetScanResults(TRequestStatus &, CWlanScanInfo &)

voidGetScanResults(TRequestStatus &aStatus,
CWlanScanInfo &aResults
)[pure virtual]

Perform a broadcast scan and return the detected WLAN networks.

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
CWlanScanInfo & aResultsResults of the scan.

GetScanResults(TWlanSsid &, TRequestStatus &, CWlanScanInfo &)

voidGetScanResults(TWlanSsid &aSsid,
TRequestStatus &aStatus,
CWlanScanInfo &aResults
)[pure virtual]

Perform a direct scan for an SSID and return the detected WLAN networks. If the SSID has zero length, a broadcast scan will be done.

Parameters

TWlanSsid & aSsidname of the WLAN network
TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
CWlanScanInfo & aResultsResults of the scan.

GetScanResults(TInt &, TUint &, TWlanSsid &, TRequestStatus &, CWlanScanInfo &)

voidGetScanResults(TInt &aCacheLifetime,
TUint &aMaxDelay,
TWlanSsid &aSsid,
TRequestStatus &aStatus,
CWlanScanInfo &aResults
)[pure virtual]

Perform a direct scan for an SSID and return the detected WLAN networks. If the SSID has zero length, a broadcast scan will be done.

Parameters

TInt & aCacheLifetimeDefines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system.
TUint & aMaxDelayMaximum amount of seconds the client is willing to wait for the scan results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system.
TWlanSsid & aSsidName of the WLAN network.
TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
CWlanScanInfo & aResultsResults of the scan.

NotifyChangedSettings()

voidNotifyChangedSettings()[pure virtual]

Notify the server about changed WLAN settings.

RemoveIapSsidList(TUint)

TInt RemoveIapSsidList(TUintaIapId)[pure virtual]

Remove any list of SSIDs attached to the given IAP ID.

Parameters

TUint aIapIdIAP ID the list is attached to.

RunProtectedSetup(TRequestStatus &, TUint32, CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > &)

voidRunProtectedSetup(TRequestStatus &aStatus,
TUint32aId,
CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > &aCredentials
)[pure virtual]

Start Protected Setup.

Protected Setup-specific error codes .

Parameters

TRequestStatus & aStatusStatus of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes.
TUint32 aIdService ID of network which user has selected to be configured.
CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > & aCredentialsResults of a successful Protected Setup operation.

StartAggressiveBgScan(TUint)

TInt StartAggressiveBgScan(TUintaInterval)[pure virtual]

Start aggressive background scanning.

Parameters

TUint aIntervalScan interval (in seconds) for aggressive mode.

UpdateRssNotificationBoundary(const TInt32, const TInt32)

TInt UpdateRssNotificationBoundary(const TInt32aRssLevelBoundary,
const TInt32aHysteresis
)[pure virtual]

Updates the RSS notification class boundaries.

Parameters

const TInt32 aRssLevelBoundarySpecifies the RSS level when a signal level notification should be given. This boundary is used when signal level is getting worse (see next parameter).
const TInt32 aHysteresisSpecifies the difference between RSS notification trigger levels of declining and improving signal quality, i.e. since aRssLevelBoundary specifies the level boundary for declining signal, the same boundary for improving signal is ( aRssLevelBoundary - aHysteresis ).