CWlanScanInfo Class Reference

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.

An usage example:
 // 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
Since
S60 3.0

Inherits from

Constructor & Destructor Documentation

~CWlanScanInfo()

~CWlanScanInfo()[inline, virtual]

Destructor.

Member Functions Documentation

NewL()

CWlanScanInfo *NewL()[static, inline]

Static constructor.

Member Data Documentation

TUid iInstanceIdentifier

TUid iInstanceIdentifier[private]

Identifies the instance of an implementation created by the ECOM framework.