class CWlanScanInfo : public CBase |
This class encapsulates both the WLAN scan results and methods needed for parsing and iterating through them.
Scan results consist of a list of all the BSSs that the scan discovered and their parameters. Methods from MWlanScanInfoIteratorBase are used to iterate through list of BSSs. Parameters of an individual BSS are parsed with methods from MWlanScanInfoBase.
// scanInfo is a pointer to a CScanInfo object that contains results // from a scan. // Information Element ID for SSID as specified in 802.11. const TUint8 KWlan802Dot11SsidIE = 0; // Iterate through scan results. for( scanInfo->First(); !scanInfo->IsDone(); scanInfo->Next() ) { // Parse through BSS parameters. TWlanBssid bssid; scanInfo->Bssid( bssid ); // BSSID of the BSS is now stored in bssid. TUint8 ieLen( 0 ); const TUint8* ieData( NULL ); TInt ret = scanInfo->InformationElement( KWlan802Dot11SsidIE, ieLen, &ieData ); if ( ret == KErrNone ) { // ieData now points to the beginning of the 802.11 SSID payload data // (i.e. the header is bypassed). ieLen contains the length of payload // data. } }MWlanMgmtInterface::GetScanResults
Public Member Functions | |
---|---|
~CWlanScanInfo() | |
CWlanScanInfo * | NewL() |
Private Attributes | |
---|---|
TUid | iInstanceIdentifier |
TUid | iInstanceIdentifier | [private] |
Identifies the instance of an implementation created by the ECOM framework.
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.