wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_tx_rate_policies.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Default values for TX rate policies.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_TX_RATE_POLICIES_H
       
    20 #define CORE_TX_RATE_POLICIES_H
       
    21 
       
    22 #include "core_types.h"
       
    23 
       
    24 /**
       
    25  * TX rate policies to use with 802.11bg access points.
       
    26  */
       
    27 
       
    28 const core_tx_rate_policy_s TX_RATE_POLICY_BG =
       
    29     {
       
    30     1,                      // 54 Mbits/s
       
    31     0,                      // 48 Mbits/s
       
    32     0,                      // 36 Mbits/s
       
    33     0,                      // 33 Mbits/s
       
    34     1,                      // 24 Mbits/s
       
    35     0,                      // 22 Mbits/s
       
    36     1,                      // 18 Mbits/s
       
    37     1,                      // 12 Mbits/s
       
    38     0,                      // 11 Mbits/s
       
    39     1,                      // 9 Mbits/s
       
    40     3,                      // 6 Mbits/s
       
    41     0,                      // 5.5 Mbits/s
       
    42     0,                      // 2 Mbits/s
       
    43     1,                      // 1 Mbits/s
       
    44     0,                      // short retry limit will be filled later
       
    45     0,                      // long retry limit will be filled later
       
    46     0,                      // no flags
       
    47     core_tx_rate_6mbit,     // initial rate is 6 Mbit/s
       
    48     CORE_TX_RATES_802P11BG, // TX auto rate policy (all 802.11bg rates)
       
    49     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 
       
    50     };
       
    51 
       
    52 const core_tx_rate_policy_s TX_RATE_POLICY_VOICE_BG =
       
    53     {
       
    54     1,                      // 54 Mbits/s
       
    55     0,                      // 48 Mbits/s
       
    56     0,                      // 36 Mbits/s
       
    57     0,                      // 33 Mbits/s
       
    58     1,                      // 24 Mbits/s
       
    59     0,                      // 22 Mbits/s
       
    60     1,                      // 18 Mbits/s
       
    61     1,                      // 12 Mbits/s
       
    62     0,                      // 11 Mbits/s
       
    63     1,                      // 9 Mbits/s
       
    64     1,                      // 6 Mbits/s
       
    65     0,                      // 5.5 Mbits/s
       
    66     0,                      // 2 Mbits/s
       
    67     1,                      // 1 Mbits/s
       
    68     0,                      // short retry limit will be filled later
       
    69     0,                      // long retry limit will be filled later
       
    70     0,                      // no flags
       
    71     core_tx_rate_12mbit,    // initial rate is 12 Mbit/s
       
    72     CORE_TX_RATES_802P11BG, // TX auto rate policy (all 802.11bg rates)
       
    73     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
    74     };
       
    75 
       
    76 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_BG =
       
    77     {
       
    78     2,                      // 54 Mbits/s
       
    79     2,                      // 48 Mbits/s
       
    80     1,                      // 36 Mbits/s
       
    81     0,                      // 33 Mbits/s
       
    82     1,                      // 24 Mbits/s
       
    83     0,                      // 22 Mbits/s
       
    84     1,                      // 18 Mbits/s
       
    85     1,                      // 12 Mbits/s
       
    86     0,                      // 11 Mbits/s
       
    87     1,                      // 9 Mbits/s
       
    88     1,                      // 6 Mbits/s
       
    89     0,                      // 5.5 Mbits/s
       
    90     0,                      // 2 Mbits/s
       
    91     0,                      // 1 Mbits/s
       
    92     0,                      // short retry limit will be filled later
       
    93     0,                      // long retry limit will be filled later
       
    94     0,                      // no flags
       
    95     core_tx_rate_24mbit,    // initial rate is 24 Mbit/s
       
    96     0x3FF8,                 // TX auto rate policy (6 Mbits/s and above)
       
    97     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
    98     };
       
    99 
       
   100 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_VOICE_BG =
       
   101     {
       
   102     2,                      // 54 Mbits/s
       
   103     2,                      // 48 Mbits/s
       
   104     1,                      // 36 Mbits/s
       
   105     0,                      // 33 Mbits/s
       
   106     1,                      // 24 Mbits/s
       
   107     0,                      // 22 Mbits/s
       
   108     1,                      // 18 Mbits/s
       
   109     1,                      // 12 Mbits/s
       
   110     0,                      // 11 Mbits/s
       
   111     1,                      // 9 Mbits/s
       
   112     2,                      // 6 Mbits/s
       
   113     0,                      // 5.5 Mbits/s
       
   114     0,                      // 2 Mbits/s
       
   115     1,                      // 1 Mbits/s
       
   116     0,                      // short retry limit will be filled later
       
   117     0,                      // long retry limit will be filled later
       
   118     0,                      // no flags
       
   119     core_tx_rate_24mbit,    // initial rate is 24 Mbit/s
       
   120     0x3FF9,                 // TX auto rate policy (1 Mbit/s, 6 Mbit/s and above)
       
   121     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   122     };
       
   123 
       
   124 /**
       
   125  * TX rate policies to use with 802.11b-only access points.
       
   126  */
       
   127 
       
   128 const core_tx_rate_policy_s TX_RATE_POLICY_B =
       
   129     {
       
   130     0,                      // 54 Mbits/s
       
   131     0,                      // 48 Mbits/s
       
   132     0,                      // 36 Mbits/s
       
   133     0,                      // 33 Mbits/s
       
   134     0,                      // 24 Mbits/s
       
   135     0,                      // 22 Mbits/s
       
   136     0,                      // 18 Mbits/s
       
   137     0,                      // 12 Mbits/s
       
   138     2,                      // 11 Mbits/s
       
   139     0,                      // 9 Mbits/s
       
   140     0,                      // 6 Mbits/s
       
   141     2,                      // 5.5 Mbits/s
       
   142     2,                      // 2 Mbits/s
       
   143     1,                      // 1 Mbits/s
       
   144     0,                      // short retry limit will be filled later
       
   145     0,                      // long retry limit will be filled later
       
   146     0,                      // no flags
       
   147     core_tx_rate_2mbit,     // initial rate is 2 Mbit/s,
       
   148     CORE_TX_RATES_802P11B,  // TX auto rate policy (all 802.11b rates)
       
   149     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   150     };
       
   151 
       
   152 const core_tx_rate_policy_s TX_RATE_POLICY_VOICE_B =
       
   153     {
       
   154     0,                      // 54 Mbits/s
       
   155     0,                      // 48 Mbits/s
       
   156     0,                      // 36 Mbits/s
       
   157     0,                      // 33 Mbits/s
       
   158     0,                      // 24 Mbits/s
       
   159     0,                      // 22 Mbits/s
       
   160     0,                      // 18 Mbits/s
       
   161     0,                      // 12 Mbits/s
       
   162     2,                      // 11 Mbits/s
       
   163     0,                      // 9 Mbits/s
       
   164     0,                      // 6 Mbits/s
       
   165     2,                      // 5.5 Mbits/s
       
   166     1,                      // 2 Mbits/s  
       
   167     1,                      // 1 Mbits/s
       
   168     0,                      // short retry limit will be filled later
       
   169     0,                      // long retry limit will be filled later
       
   170     0,                      // no flags
       
   171     core_tx_rate_5p5mbit,   // initial rate is 5.5 Mbit/s
       
   172     CORE_TX_RATES_802P11B,  // TX auto rate policy (all 802.11b rates)
       
   173     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   174     };
       
   175 
       
   176 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_B =
       
   177     {
       
   178     0,                      // 54 Mbits/s
       
   179     0,                      // 48 Mbits/s
       
   180     0,                      // 36 Mbits/s
       
   181     0,                      // 33 Mbits/s
       
   182     0,                      // 24 Mbits/s
       
   183     0,                      // 22 Mbits/s
       
   184     0,                      // 18 Mbits/s
       
   185     0,                      // 12 Mbits/s
       
   186     6,                      // 11 Mbits/s
       
   187     0,                      // 9 Mbits/s
       
   188     0,                      // 6 Mbits/s
       
   189     2,                      // 5.5 Mbits/s
       
   190     0,                      // 2 Mbits/s
       
   191     0,                      // 1 Mbits/s
       
   192     0,                      // short retry limit will be filled later
       
   193     0,                      // long retry limit will be filled later
       
   194     0,                      // no flags
       
   195     core_tx_rate_11mbit,    // initial rate is 11 Mbit/s
       
   196     0x24,                   // TX auto rate policy (5.5 Mbit/s, 11 Mbit/s)
       
   197     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   198     };
       
   199 
       
   200 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_VOICE_B =
       
   201     {
       
   202     0,                      // 54 Mbits/s
       
   203     0,                      // 48 Mbits/s
       
   204     0,                      // 36 Mbits/s
       
   205     0,                      // 33 Mbits/s
       
   206     0,                      // 24 Mbits/s
       
   207     0,                      // 22 Mbits/s
       
   208     0,                      // 18 Mbits/s
       
   209     0,                      // 12 Mbits/s
       
   210     6,                      // 11 Mbits/s
       
   211     0,                      // 9 Mbits/s
       
   212     0,                      // 6 Mbits/s
       
   213     2,                      // 5.5 Mbits/s
       
   214     0,                      // 2 Mbits/s
       
   215     1,                      // 1 Mbits/s
       
   216     0,                      // short retry limit will be filled later
       
   217     0,                      // long retry limit will be filled later
       
   218     0,                      // no flags
       
   219     core_tx_rate_11mbit,    // initial rate is 11 Mbit/s
       
   220     0x25,                   // TX auto rate policy (1 Mbit/s, 5.5 Mbit/s, 11 Mbit/s)
       
   221     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   222     };
       
   223 
       
   224 /**
       
   225  * TX rate policies to use with 802.11g-only access points.
       
   226  */
       
   227 
       
   228 const core_tx_rate_policy_s TX_RATE_POLICY_G =
       
   229     {
       
   230     1,                      // 54 Mbits/s
       
   231     0,                      // 48 Mbits/s
       
   232     0,                      // 36 Mbits/s
       
   233     0,                      // 33 Mbits/s
       
   234     1,                      // 24 Mbits/s
       
   235     0,                      // 22 Mbits/s
       
   236     1,                      // 18 Mbits/s
       
   237     1,                      // 12 Mbits/s
       
   238     0,                      // 11 Mbits/s
       
   239     1,                      // 9 Mbits/s
       
   240     2,                      // 6 Mbits/s
       
   241     0,                      // 5.5 Mbits/s
       
   242     0,                      // 2 Mbits/s
       
   243     0,                      // 1 Mbits/s
       
   244     0,                      // short retry limit will be filled later
       
   245     0,                      // long retry limit will be filled later
       
   246     0,                      // no flags
       
   247     core_tx_rate_6mbit,     // initial rate is 6 Mbit/s,
       
   248     CORE_TX_RATES_802P11G,  // TX auto rate policy (all 802.11g rates)
       
   249     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   250     };
       
   251 
       
   252 const core_tx_rate_policy_s TX_RATE_POLICY_VOICE_G =
       
   253     {
       
   254     1,                      // 54 Mbits/s
       
   255     0,                      // 48 Mbits/s
       
   256     0,                      // 36 Mbits/s
       
   257     0,                      // 33 Mbits/s
       
   258     1,                      // 24 Mbits/s
       
   259     0,                      // 22 Mbits/s
       
   260     1,                      // 18 Mbits/s
       
   261     1,                      // 12 Mbits/s
       
   262     0,                      // 11 Mbits/s
       
   263     0,                      // 9 Mbits/s
       
   264     2,                      // 6 Mbits/s
       
   265     0,                      // 5.5 Mbits/s
       
   266     0,                      // 2 Mbits/s
       
   267     0,                      // 1 Mbits/s
       
   268     0,                      // short retry limit will be filled later
       
   269     0,                      // long retry limit will be filled later
       
   270     0,                      // no flags
       
   271     core_tx_rate_6mbit,     // initial rate is 6 Mbit/s
       
   272     CORE_TX_RATES_802P11G,  // TX auto rate policy (all 802.11g rates)
       
   273     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   274     };
       
   275 
       
   276 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_G =
       
   277     {
       
   278     2,                      // 54 Mbits/s
       
   279     2,                      // 48 Mbits/s
       
   280     1,                      // 36 Mbits/s
       
   281     0,                      // 33 Mbits/s
       
   282     1,                      // 24 Mbits/s
       
   283     0,                      // 22 Mbits/s
       
   284     1,                      // 18 Mbits/s
       
   285     1,                      // 12 Mbits/s
       
   286     0,                      // 11 Mbits/s
       
   287     1,                      // 9 Mbits/s
       
   288     1,                      // 6 Mbits/s
       
   289     0,                      // 5.5 Mbits/s
       
   290     0,                      // 2 Mbits/s
       
   291     0,                      // 1 Mbits/s
       
   292     0,                      // short retry limit will be filled later
       
   293     0,                      // long retry limit will be filled later
       
   294     0,                      // no flags
       
   295     core_tx_rate_24mbit,    // initial rate is 24 Mbit/s
       
   296     CORE_TX_RATES_802P11G,  // TX auto rate policy (all 802.11g rates)
       
   297     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   298     };
       
   299 
       
   300 const core_tx_rate_policy_s TX_RATE_POLICY_BLUETOOTH_VOICE_G =
       
   301     {
       
   302     2,                      // 54 Mbits/s
       
   303     2,                      // 48 Mbits/s
       
   304     1,                      // 36 Mbits/s
       
   305     0,                      // 33 Mbits/s
       
   306     1,                      // 24 Mbits/s
       
   307     0,                      // 22 Mbits/s
       
   308     1,                      // 18 Mbits/s
       
   309     1,                      // 12 Mbits/s
       
   310     0,                      // 11 Mbits/s
       
   311     1,                      // 9 Mbits/s
       
   312     1,                      // 6 Mbits/s
       
   313     0,                      // 5.5 Mbits/s
       
   314     0,                      // 2 Mbits/s
       
   315     0,                      // 1 Mbits/s
       
   316     0,                      // short retry limit will be filled later
       
   317     0,                      // long retry limit will be filled later
       
   318     0,                      // no flags
       
   319     core_tx_rate_24mbit,    // initial rate is 24 Mbit/s
       
   320     CORE_TX_RATES_802P11G,  // TX auto rate policy (all 802.11g rates)
       
   321     { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
       
   322     };
       
   323 
       
   324 #endif // CORE_TX_RATE_POLICIES_H