hotspotfw/hsserver/inc/hssscanoffsets.h
changeset 0 56b72877c1cb
child 8 c2bc3f8c7777
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Definition of scan frame offsets.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HSSSCANOFFSETS_H
       
    21 #define HSSSCANOFFSETS_H
       
    22 
       
    23 #include "802dot11.h"
       
    24 
       
    25 // Offsets for the static header.
       
    26 const TUint32 RX_LEVEL_OFFSET         = 0;                                                // 0
       
    27 const TUint32 RX_SNR_OFFSET           = RX_LEVEL_OFFSET + sizeof(TUint32);                // 4
       
    28 
       
    29 // Offsets for scan results.
       
    30 const TUint32 LENGTH_OFFSET           = RX_SNR_OFFSET + sizeof(TUint32);                  // 8
       
    31 
       
    32 // length of the control information proceeding the DOT11 header (DOT11_BASE_OFFSET)
       
    33 const TUint32 CNTRL_HEADER_LEN        = 12;
       
    34 
       
    35 const TUint32 DOT11_BASE_OFFSET       = CNTRL_HEADER_LEN;
       
    36 // start of BSSID
       
    37 const TUint32 BSSID_OFFSET            = DOT11_BASE_OFFSET + 16;           
       
    38 // start of first IE in beacon of the probe response
       
    39 const TUint32 BODY_OFFSET             = DOT11_BASE_OFFSET + sizeof(SManagementFrameHeader)
       
    40                                         + KTimeStampFixedFieldLength
       
    41                                         + KBeaconIntervalFixedFieldLength
       
    42                                         + KCapabilityInformationFixedFieldLength;
       
    43 
       
    44 const TUint32 BEACON_INTERVAL_OFFSET  = DOT11_BASE_OFFSET 
       
    45                                         + sizeof(SManagementFrameHeader)
       
    46                                         + KTimeStampFixedFieldLength;
       
    47 const TUint32 CAPABILITY_OFFSET       = BEACON_INTERVAL_OFFSET + KBeaconIntervalFixedFieldLength;
       
    48 
       
    49 // start of timestamp field
       
    50 const TUint32 TIMESTAMP_OFFSET        = DOT11_BASE_OFFSET + sizeof(SManagementFrameHeader);
       
    51 
       
    52 // Offsets for the static header.
       
    53 const TUint16 x30RX_LEVEL_OFFSET         = 13;
       
    54 const TUint16 x30RX_SNR_OFFSET           = 12;
       
    55 //const TUint16 FRAME_CNTRL_OFFSET      = 12;
       
    56 const TUint16 x30BSSID_OFFSET            = 0;
       
    57 const TUint16 x30BEACON_INTERVAL_OFFSET  = 52;
       
    58 const TUint16 x30CAPABILITY_OFFSET       = 54;
       
    59 const TUint16 x30STATUS_INFO_LENGTH      = 12;
       
    60 // Offsets for scan results.
       
    61 const TUint16 x30LENGTH_OFFSET           = 62;
       
    62 const TUint16 x30BODY_OFFSET             = 64 + x30STATUS_INFO_LENGTH;
       
    63 #endif // HSSSCANOFFSETS_H