wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacinternaldefinitions.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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 the License "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:   UMAC internal types and constants
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 11 %
       
    20 */
       
    21 
       
    22 #ifndef WLANINTERNALDEFINITIONS_H
       
    23 #define WLANINTERNALDEFINITIONS_H
       
    24 
       
    25 #include "am_platform_libraries.h" // basic types
       
    26 #include "umacoidmsg.h"
       
    27 #include "802dot11.h"
       
    28 
       
    29 #ifndef RD_WLAN_DDK
       
    30 #include <wha.h>
       
    31 #else
       
    32 #include <wlanwha.h>
       
    33 #endif
       
    34 
       
    35 
       
    36 typedef TUint16 TCwMinVector[WHA::Wha::KNumOfEdcaQueues];
       
    37 typedef TUint16 TCwMaxVector[WHA::Wha::KNumOfEdcaQueues];
       
    38 typedef TUint8  TAifsVector[WHA::Wha::KNumOfEdcaQueues];
       
    39 typedef TUint16 TTxOplimitVector[WHA::Wha::KNumOfEdcaQueues];    
       
    40 typedef TBool   TAcmVector[WHA::Wha::KNumOfEdcaQueues];
       
    41 
       
    42 // MPDU SNAP header validation status codes
       
    43 enum TSnapStatus
       
    44     {
       
    45     ESnapUnknown,       // unknown SNAP encountered
       
    46     ESnapDot11Ok,       // SNAP used by generic data MPDUs encountered
       
    47     ESnapProprietaryOk  // vendor specific SNAP encountered
       
    48     };
       
    49 
       
    50 const TUint8 KWmmParamSetNotDefined = 255;                
       
    51 
       
    52 // DA type
       
    53 enum TDaType
       
    54     {
       
    55     EUnicastAddress,
       
    56     EMulticastAddress,
       
    57     EBroadcastAddress
       
    58     };
       
    59 
       
    60 // Type used to instruct Dynamic 802.11 Pwr Mode Mgt regarding switching from
       
    61 // PS to CAM mode after frame Tx
       
    62 enum TDynamicCamSwitch
       
    63     {
       
    64     ECamSwitchNotForced,
       
    65     // if in PS, switch to CAM
       
    66     ESwitchToCam,
       
    67     // if in PS, stay in PS
       
    68     EDontSwitchToCam
       
    69     };
       
    70 
       
    71 enum TPowerMgmtMode
       
    72     {
       
    73     EActive,
       
    74     ELightPs,
       
    75     EDeepPs
       
    76     };
       
    77 
       
    78 enum TPowerMgmtModeChange
       
    79     {
       
    80     ENoChange,
       
    81     EToActive,
       
    82     EToLightPs,
       
    83     EToDeepPs
       
    84     };
       
    85 
       
    86 struct TDot11PsModeWakeupSetting
       
    87     {
       
    88     /** 
       
    89     * WLAN wake-up mode in 802.11 PS mode. 
       
    90     */
       
    91     TWlanWakeUpInterval iWakeupMode;
       
    92     /** 
       
    93     * Specifies the value of N for wake-up modes 2 and 3. So, is relevant
       
    94     * only for wake-up modes 2 & 3 
       
    95     */
       
    96     TUint8 iListenInterval;
       
    97     };
       
    98 
       
    99 typedef WHA::TRate TWhaRateMasks[KMaxNbrOfRateClasses];
       
   100 
       
   101 // Value to denote an undefined SNAP header
       
   102 const SSnapHeader KUndefinedSnapHeader 
       
   103     = { 0x00, 0x00, 0x00, { 0x00, 0x00, 0x00 } };
       
   104 
       
   105 #endif // WLANINTERNALDEFINITIONS_H