class RWLMServer : public RSessionBase |
Protected Member Functions | |
---|---|
TInt | StartServer () |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Private Attributes | |
---|---|
CWLMNotify * | iNotify |
TPckgBuf < TWLMOverrideSettings > | iOverridePckg |
TPckgBuf < TMacAddress > | iRoamBssidPckg |
CWlmScanRequest * | iScanRequest |
TWlmTsCreateRequest * | iTsCreateRequest |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C void | ActivateNotifiesL | ( | MWLMNotify & | aCallback, |
TUint32 | aNotificationMask | |||
) |
Client activates the notification service. With this service client can receive asynchronous notifications from the server. TWLMResponses
MWLMNotify & aCallback | Client's callback interface for notifications. |
TUint32 aNotificationMask | Bitmask of notifications to activate. |
IMPORT_C TInt | AddBssidToRoguelist | ( | const TMacAddress & | aBssid | ) |
Adds a BSSID to rogue list
const TMacAddress & aBssid | a BSSID of an accesspoint. |
IMPORT_C TInt | AddIapSsidList | ( | TUint | aIapId, |
const CArrayFixFlat < TWlanSsid > & | aSsidList | |||
) |
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.
TUint aIapId | IAP ID the list is attached to. |
const CArrayFixFlat < TWlanSsid > & aSsidList | List of SSIDs. Any previous list attached will be overwritten. |
IMPORT_C void | CancelCreateTrafficStream | ( | ) |
Cancel an outstanding traffic stream creation request.
IMPORT_C void | CancelDeleteTrafficStream | ( | ) |
Cancel an outstanding traffic stream deletion request.
IMPORT_C void | CancelDirectedRoam | ( | ) |
Cancel an outstanding directed roam request.
IMPORT_C void | CancelGetAvailableIaps | ( | ) |
Cancel an outstanding IAP availability request.
IMPORT_C void | CancelNotifies | ( | ) |
Client deactivates the notification service. This is the client's interface to stop receiveing notifications from the server.
IMPORT_C void | CancelProtectedSetup | ( | ) |
Cancel an outstanding Protected Setup request.
void | CancelRequest | ( | ) |
Cancel pending notification message from server. CWLMNotify class uses this method to cancel pending message at server side.
IMPORT_C void | ClearPacketStatistics | ( | ) |
Clear packet statistics of the current connection.
IMPORT_C TInt | ConfigureMulticast | ( | TUint | aCommand, |
const TMacAddress & | aMulticastAddress | |||
) |
ConfigureMulticast
TUint aCommand | specifies either KSoIp6JoinGroup or KSoIp6LeaveGroup |
const TMacAddress & aMulticastAddress | contains the MAC address |
IMPORT_C void | CreateTrafficStream | ( | TRequestStatus & | aStatus, |
const TWlanTrafficStreamParameters & | aStreamParameters, | |||
TBool | aIsAutomaticStream, | |||
TUint & | aStreamId, | |||
TWlanTrafficStreamStatus & | aStreamStatus | |||
) |
Create a virtual traffic stream.
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
const TWlanTrafficStreamParameters & aStreamParameters | Traffic stream parameters to use. |
TBool aIsAutomaticStream | Whether the stream was created automatically by WLAN NIF. |
TUint & aStreamId | Contains the ID assigned to this traffic stream on successful completion. |
TWlanTrafficStreamStatus & aStreamStatus | Contains the status of the traffic stream on successful completion. |
IMPORT_C void | DeleteTrafficStream | ( | TRequestStatus & | aStatus, |
TUint | aStreamId | |||
) |
Delete a virtual traffic stream.
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
TUint aStreamId | ID of the traffic stream to delete. |
IMPORT_C void | DirectedRoam | ( | TRequestStatus & | aStatus, |
const TMacAddress & | aBssid | |||
) |
Initiate a roam to the given BSSID.
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
const TMacAddress & aBssid | BSSID to roam to. If set to FF:FF:FF:FF:FF:FF address, search for a better BSS is initiated. |
IMPORT_C TInt | GetAcTrafficStatus | ( | TWlmAcTrafficStatusArray & | aArray | ) |
Get the current traffic status for access classes.
TWlmAcTrafficStatusArray & aArray | Traffic status for access classes. |
IMPORT_C TInt | GetAccessPointInfo | ( | TWlanAccessPointInfo & | aInfo | ) |
Get information about the current AP.
TWlanAccessPointInfo & aInfo | Information about the current AP. |
IMPORT_C TInt | GetAvailableIaps | ( | TWlmAvailableIaps & | aAvailableIaps, |
TInt & | aCacheLifetime, | |||
TUint & | aMaxDelay, | |||
TBool | aFilteredResults | |||
) |
Get available WLAN IAPs.
TWlmAvailableIaps & aAvailableIaps | Array of IAP IDs available. |
TInt & aCacheLifetime | how old cached results (in seconds) the client is willing to accept. |
TUint & aMaxDelay | maximum time (in seconds) the client is willing to wait for the scan results. |
TBool aFilteredResults | Whether availability is filtered based on signal strength. |
IMPORT_C void | GetAvailableIaps | ( | TDes8 & | aAvailableIaps, |
TDes8 & | aCacheLifetime, | |||
TDes8 & | aMaxDelay, | |||
TBool | aFilteredResults, | |||
TRequestStatus & | aStatus | |||
) |
Get available WLAN IAPs. In order to call this method, an instance of TWlmAvailableIaps must packaged into a TPckg<TWlmAvailableIaps> package buffer. This buffer can be passed to the called method as a descriptor.
Example: TPckg<TWlmAvailableIaps> availableIapsBuf( availableIaps ); GetAvailableIaps( availableIapsBuf, cacheLifetime, maxDelay, status );
TDes8 & aAvailableIaps | Array of IAP IDs available. |
TDes8 & aCacheLifetime | how old cached results (in seconds) the client is willing to accept. |
TDes8 & aMaxDelay | maximum time (in seconds) the client is willing to wait for the scan results. |
TBool aFilteredResults | Whether availability is filtered based on signal strength. |
TRequestStatus & aStatus | Status of the calling active object. |
IMPORT_C TInt | GetBSSID | ( | TMacAddress & | aBssid | ) |
Get the BSSID of the current connection.
TMacAddress & aBssid | The BSSID of the current connection. If no connection a zero address is returned. |
IMPORT_C TInt | GetConnectionRCPI | ( | TInt32 & | aRCPI | ) |
Get current connections RCPI.
TInt32 & aRCPI | (OUT) Current signal strength of the connection, 0 if no WLAN connection. |
IMPORT_C TWlanConnectionState | GetConnectionState | ( | ) |
Get connection state of WLAN.
IMPORT_C TInt | GetNetworkName | ( | TDes & | aNwName | ) |
Get the name of the current network.
TDes & aNwName | (OUT) The name of the current network. |
IMPORT_C TInt | GetPacketStatistics | ( | TWlanPacketStatistics & | aStatistics | ) |
Get packet statistics of the current connection.
TWlanPacketStatistics & aStatistics | Packet statistics of the current connection. |
IMPORT_C TInt | GetPowerSaveMode | ( | TWlanPowerSave & | aPowerSaveMode | ) |
Get the current power save mode.
TWlanPowerSave & aPowerSaveMode | current power save mode. |
IMPORT_C TInt | GetPowerSaveSettings | ( | TWlanPowerSaveSettings & | aSettings | ) |
Get the current power save settings.
TWlanPowerSaveSettings & aSettings | power save settings. |
IMPORT_C TInt | GetRegulatoryDomain | ( | TWlanRegion & | aRegion | ) |
Get the current regulatory domain.
TWlanRegion & aRegion | current region. |
IMPORT_C TInt | GetRoamMetrics | ( | TWlanRoamMetrics & | aRoamMetrics | ) |
Get roam metrics of the current connection.
TWlanRoamMetrics & aRoamMetrics | Roam metrics of the current connection. |
IMPORT_C TInt | GetRogueList | ( | CArrayFixSeg < TWlanBssid > & | aRogueList | ) |
Return a list of BSSIDs on the rogue list.
CArrayFixSeg < TWlanBssid > & aRogueList | List of BSSIDs on the rogue list. |
IMPORT_C TInt | GetScanResults | ( | ScanList & | aResults, |
const TDesC8 & | aSsid, | |||
TInt & | aCacheLifetime, | |||
TUint & | aMaxDelay | |||
) |
Get scan results.
IMPORT_C void | GetScanResults | ( | ScanList & | aResults, |
const TDesC8 & | aSsid, | |||
TInt & | aCacheLifetime, | |||
TUint & | aMaxDelay, | |||
TRequestStatus & | aStatus | |||
) |
Get scan results.
ScanList & aResults | (OUT) Results of the last scan. |
const TDesC8 & aSsid | SSID to be scanned. |
TInt & aCacheLifetime | how old cached results (in seconds) the client is willing to accept. |
TUint & aMaxDelay | maximum time (in seconds) the client is willing to wait for the scan results. |
TRequestStatus & aStatus | Status of the calling active object. |
IMPORT_C TInt | GetSecurityMode | ( | TWlanSecurity & | aMode | ) |
Get current security mode.
TWlanSecurity & aMode | (OUT) The current security mode. |
IMPORT_C TInt | GetSystemMode | ( | TWlanSystemMode & | aMode | ) |
Get current system mode.
TWlanSystemMode & aMode | (OUT) The current system mode. |
IMPORT_C TInt | GetUapsdSettings | ( | TWlanUapsdSettings & | aSettings | ) |
Get the current U-APSD settings.
TWlanUapsdSettings & aSettings | Current U-APSD settings. |
IMPORT_C void | Join | ( | TRequestStatus & | aStatus, |
const TUint32 | aId, | |||
TWLMOverrideSettings * | aOverrides = NULL | |||
) |
Join to a network using the settings from "IAP specific WLAN table".
TRequestStatus & aStatus | Status of the calling active object. |
const TUint32 aId | Index to the "IAP specific WLAN table". |
TWLMOverrideSettings * aOverrides = NULL | Override parameters to joining the network. |
IMPORT_C TInt | NotifyChangedPsmSrvMode | ( | TInt | aMode | ) |
Notify the server about PSM server mode change.
TInt aMode | new PSM server mode. |
IMPORT_C void | NotifyChangedSettings | ( | ) |
Notify the server about changed WLAN settings.
IMPORT_C TInt | RemoveIapSsidList | ( | TUint | aIapId | ) |
Remove any list of SSIDs attached to the given IAP ID.
TUint aIapId | IAP ID the list is attached to. |
IMPORT_C void | RunProtectedSetup | ( | TRequestStatus & | aStatus, |
TUint32 | aId, | |||
TDes8 & | aCredentials | |||
) |
Run Protected Setup.
TRequestStatus & aStatus | Status of the calling active object. |
TUint32 aId | IAP ID of network which user has selected to be configured. |
TDes8 & aCredentials |
IMPORT_C TInt | SetPowerSaveMode | ( | TWlanPowerSaveMode | aMode | ) |
Set the power save mode.
TWlanPowerSaveMode aMode | Power save mode to be set. |
IMPORT_C TInt | SetPowerSaveSettings | ( | const TWlanPowerSaveSettings & | aSettings | ) |
Set the power save settings.
const TWlanPowerSaveSettings & aSettings | Current power save settings to be set. |
IMPORT_C TInt | SetUapsdSettings | ( | const TWlanUapsdSettings & | aSettings | ) |
Set the U-APSD settings.
const TWlanUapsdSettings & aSettings | Current U-APSD settings to be set. |
IMPORT_C TInt | StartAggressiveBgScan | ( | TUint | aInterval | ) |
Start aggressive background scanning.
Sends a blind request (i.e. request is sent without waiting for reply) to WLAN Engine to enter aggressive BG scan mode. WLAN Engine decides how long it stays in the aggressive mode. The client can monitor BG scan interval changes via WLAN Info P&S. The request is valid only when WLAN is disconnected, if the request is sent when WLAN is connected, it is ignored. If the interval given as a parameter is out of valid range, it is automatically corrected to closest valid value. In case of multiple simultaneous requests, the one with highest scan frequency is served.
TUint aInterval | Desired background scan interval in seconds. Valid range is from 1 to 120 seconds. |
TInt | StartServer | ( | ) | [protected] |
Start the server during Connect() if the server is not loaded.
IMPORT_C TInt | UpdateRcpNotificationBoundary | ( | const TInt32 | aRcpLevelBoundary, |
const TInt32 | aHysteresis | |||
) |
Updates the RCP notification class boundaries.
const TInt32 aRcpLevelBoundary | specifies the RCP level when notification should be given. This boundary is used when signal level is getting worse (see next parameter). |
const TInt32 aHysteresis | specifies the difference between RCP notification trigger levels of declining and improving signal quality. I.e. since aRcpLevelBoundary specifies the level boundary for declining signal, the same boundary for imrpoving signal is ( aRcpLevelBoundary - aHysteresis ). |
void | WaitForNotification | ( | TRequestStatus & | aReturnValue, |
TDes8 & | aReturnData, | |||
TUint32 | aNotificationMask | |||
) |
Set a message to pend notification.
TRequestStatus & aReturnValue | Status of the calling active object. |
TDes8 & aReturnData | (OUT) Data returned by the notification. |
TUint32 aNotificationMask | Bitmask of active notifications. |
CWLMNotify * | iNotify | [private] |
Notification service. Exists only if its activated.
TPckgBuf < TWLMOverrideSettings > | iOverridePckg | [private] |
Buffer for storing override settings.
TPckgBuf < TMacAddress > | iRoamBssidPckg | [private] |
Buffer for storing BSSID to roam to.
CWlmScanRequest * | iScanRequest | [private] |
Class for handling scan requests.
TWlmTsCreateRequest * | iTsCreateRequest | [private] |
Parameters for traffic stream create request.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.