wlanutilities/wlansniffer/engine/server/inc/wsfwlanscanner.h
branchRCL_3
changeset 18 981afc7d3841
parent 8 c2bc3f8c7777
child 44 a9524956f6b5
equal deleted inserted replaced
16:8b0eae1b1d71 18:981afc7d3841
    31 //  INTERNAL INCLUDES
    31 //  INTERNAL INCLUDES
    32 #include "wsfwlanscannerobserver.h"
    32 #include "wsfwlanscannerobserver.h"
    33 #include "wsfwlanmonitorobserver.h"
    33 #include "wsfwlanmonitorobserver.h"
    34 #include "wsfwlanscanintervalchangeobserver.h"
    34 #include "wsfwlanscanintervalchangeobserver.h"
    35 #include "wsfwlaninfo.h"
    35 #include "wsfwlaninfo.h"
       
    36 
       
    37 
       
    38 const TUint8 TX_RATE_BASIC_MASK = 0x80;
       
    39 
       
    40 
       
    41 /**
       
    42  * Defines the possible TX rate values.
       
    43  */
       
    44 typedef enum _core_tx_rate_e
       
    45     {
       
    46     core_tx_rate_none       = 0x00000000,
       
    47     core_tx_rate_1mbit      = 0x00000001,
       
    48     core_tx_rate_2mbit      = 0x00000002,
       
    49     core_tx_rate_5p5mbit    = 0x00000004,
       
    50     core_tx_rate_6mbit      = 0x00000008,
       
    51     core_tx_rate_9mbit      = 0x00000010,
       
    52     core_tx_rate_11mbit     = 0x00000020,
       
    53     core_tx_rate_12mbit     = 0x00000040,
       
    54     core_tx_rate_18mbit     = 0x00000080,
       
    55     core_tx_rate_22mbit     = 0x00000100,
       
    56     core_tx_rate_24mbit     = 0x00000200,
       
    57     core_tx_rate_33mbit     = 0x00000400,
       
    58     core_tx_rate_36mbit     = 0x00000800,
       
    59     core_tx_rate_48mbit     = 0x00001000,
       
    60     core_tx_rate_54mbit     = 0x00002000
       
    61     } core_tx_rate_e;
       
    62 
       
    63 const TUint32 CORE_TX_RATES_802P11B =
       
    64     core_tx_rate_1mbit |
       
    65     core_tx_rate_2mbit |
       
    66     core_tx_rate_5p5mbit |
       
    67     core_tx_rate_11mbit;
       
    68 
       
    69 const TUint32 CORE_TX_RATES_802P11G =
       
    70     core_tx_rate_6mbit |
       
    71     core_tx_rate_9mbit |
       
    72     core_tx_rate_12mbit |
       
    73     core_tx_rate_18mbit |
       
    74     core_tx_rate_22mbit |
       
    75     core_tx_rate_24mbit |
       
    76     core_tx_rate_33mbit |
       
    77     core_tx_rate_36mbit |
       
    78     core_tx_rate_48mbit |
       
    79     core_tx_rate_54mbit;
       
    80 
       
    81 /**
       
    82  * Define the possible TX rate value as units of 500kbit/s.
       
    83  */
       
    84 typedef enum _core_tx_rate_value_e
       
    85     {
       
    86     core_tx_rate_value_none    = 0,
       
    87     core_tx_rate_value_1mbit   = 2,
       
    88     core_tx_rate_value_2mbit   = 4,
       
    89     core_tx_rate_value_5p5mbit = 11,
       
    90     core_tx_rate_value_6mbit   = 12,
       
    91     core_tx_rate_value_9mbit   = 18,
       
    92     core_tx_rate_value_11mbit  = 22,
       
    93     core_tx_rate_value_12mbit  = 24,
       
    94     core_tx_rate_value_18mbit  = 36,
       
    95     core_tx_rate_value_22mbit  = 44,
       
    96     core_tx_rate_value_24mbit  = 48,
       
    97     core_tx_rate_value_33mbit  = 66,
       
    98     core_tx_rate_value_36mbit  = 72,
       
    99     core_tx_rate_value_48mbit  = 96,
       
   100     core_tx_rate_value_54mbit  = 108,
       
   101     } _core_tx_rate_value_e;
    36 
   102 
    37 
   103 
    38 //  FORWARD DECLARATIONS
   104 //  FORWARD DECLARATIONS
    39 class CWlanMgmtClient;
   105 class CWlanMgmtClient;
    40 class CWlanScanInfo;
   106 class CWlanScanInfo;
   295         * @param aWlanInfo The wlaninfo to put the results in
   361         * @param aWlanInfo The wlaninfo to put the results in
   296         */
   362         */
   297         void RefreshSecurityMode( TWsfWlanInfo& aWlanInfo );
   363         void RefreshSecurityMode( TWsfWlanInfo& aWlanInfo );
   298 
   364 
   299         /**
   365         /**
   300         * Parses the scan results for the transfer rate
   366         * Convert the given rate value (500kbit/s per unit) 
   301         * @since S60 5.0
   367         * to a corresponding enum.
   302         * @param aWlanInfo The wlaninfo to put the results in
   368         * @since S60 5.2
   303         */
   369         * @param aRate Rate value to be converted.
   304         void RefreshMaxRate( TWsfWlanInfo& aWlanInfo );
   370         * @return Corresponding rate enum.
       
   371         */
       
   372         core_tx_rate_e ConvertTxRateToTxRateEnum( TUint8 aRate );
       
   373 
       
   374         /**
       
   375         * Parses the scan results for the technology information
       
   376         * @since S60 5.2
       
   377         * @param aWlanInfo The wlaninfo to put the results in
       
   378         */
       
   379         void RefreshTechnology( TWsfWlanInfo& aWlanInfo );
   305 
   380 
   306         /**
   381         /**
   307         * Prepares for direct scanning
   382         * Prepares for direct scanning
   308         * @since S60 5.0
   383         * @since S60 5.0
   309         */
   384         */