Home | History | Annotate | Download | only in inc
      1 /****************************************************************************
      2 **+-----------------------------------------------------------------------+**
      3 **|                                                                       |**
      4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved.      |**
      5 **| All rights reserved.                                                  |**
      6 **|                                                                       |**
      7 **| Redistribution and use in source and binary forms, with or without    |**
      8 **| modification, are permitted provided that the following conditions    |**
      9 **| are met:                                                              |**
     10 **|                                                                       |**
     11 **|  * Redistributions of source code must retain the above copyright     |**
     12 **|    notice, this list of conditions and the following disclaimer.      |**
     13 **|  * Redistributions in binary form must reproduce the above copyright  |**
     14 **|    notice, this list of conditions and the following disclaimer in    |**
     15 **|    the documentation and/or other materials provided with the         |**
     16 **|    distribution.                                                      |**
     17 **|  * Neither the name Texas Instruments nor the names of its            |**
     18 **|    contributors may be used to endorse or promote products derived    |**
     19 **|    from this software without specific prior written permission.      |**
     20 **|                                                                       |**
     21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |**
     22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |**
     23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
     24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |**
     25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
     26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |**
     27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
     28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
     29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |**
     30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
     31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |**
     32 **|                                                                       |**
     33 **+-----------------------------------------------------------------------+**
     34 ****************************************************************************/
     35 
     36 #ifndef _CORE_DEFAULT_PARAMS_H
     37 #define _CORE_DEFAULT_PARAMS_H
     38 
     39 #if defined(__ARMCC__)
     40 #include "public_infoele.h"
     41 #endif
     42 /************************************/
     43 /*      Min, Max & Default values   */
     44 /************************************/
     45 
     46 /* In this section are defined default, min & max values for parameters, according to the MIB */
     47 /* This values are used as following:
     48         - By the OS abstraction layer in order to fill the init table with the default values
     49         if the NVRAM/Registry value for the parameter is invalid
     50         - By the core modules in order to perform validity check upon setting a parameter. */
     51 
     52 
     53 #define SITE_MGR_CHANNEL_MIN                    1
     54 #define SITE_MGR_CHANNEL_A_MIN                  36 /*   band A*/
     55 #define SITE_MGR_CHANNEL_B_G_MAX                14 /*   band B&G*/
     56 #define SITE_MGR_CHANNEL_MAX                    201
     57 #define SITE_MGR_CHANNEL_DEF                    11
     58 
     59 #define SITE_MGR_DOT_11_MODE_MIN                DOT11_B_MODE
     60 #define SITE_MGR_DOT_11_MODE_MAX                DOT11_DUAL_MODE
     61 #define SITE_MGR_DOT_11_MODE_DEF                DOT11_G_MODE
     62 
     63 #define SITE_MGR_BSSID_DEF                      "DEADDEADDEAD"
     64 
     65 #define SITE_MGR_SSID_STRING_DEF                ""
     66 #define SITE_MGR_SSID_LEN_DEF                   0
     67 
     68 #define SITE_MGR_BSS_TYPE_DEF                   BSS_INFRASTRUCTURE
     69 
     70 #define SITE_MGR_DEF_RATE_SET_MAX_BASIC_DEF     DRV_RATE_2M
     71 #define SITE_MGR_DEF_RATE_SET_MAX_ACTIVE_DEF    DRV_RATE_11M
     72 
     73 #define SITE_MGR_MGMT_FRAME_RATE_MIN            DRV_RATE_1M
     74 #define SITE_MGR_MGMT_FRAME_RATE_MAX            DRV_RATE_22M
     75 #define SITE_MGR_MGMT_FRAME_RATE_DEF            DRV_RATE_2M
     76 
     77 #define SITE_MGR_MODULATION_TYPE_DEF            DRV_MODULATION_CCK
     78 
     79 #define SITE_MGR_BEACON_INTERVAL_MIN            1
     80 #define SITE_MGR_BEACON_INTERVAL_MAX            65535
     81 #define SITE_MGR_BEACON_INTERVAL_DEF            200
     82 
     83 /* number of events to wake up on -
     84     For WakeOnBeacon- Aging interval =  SITE_MGR_NUMBER_OF_EVENTS_BEFORE_AGING * BeaconInterval
     85     For WakeOnDtim - Aging interval =  SITE_MGR_NUMBER_OF_EVENTS_BEFORE_AGING * BeaconInterval * DtimPeriod */
     86 #define SITE_MGR_NUMBER_OF_EVENTS_BEFORE_AGING_MIN  2
     87 #define SITE_MGR_NUMBER_OF_EVENTS_BEFORE_AGING_MAX  20
     88 #define SITE_MGR_NUMBER_OF_EVENTS_BEFORE_AGING_DEF  10
     89 
     90 #define SITE_MGR_NUMBER_OF_TX_FAILURE_BEFORE_AGING_MIN  3
     91 #define SITE_MGR_NUMBER_OF_TX_FAILURE_BEFORE_AGING_MAX  100
     92 #define SITE_MGR_NUMBER_OF_TX_FAILURE_BEFORE_AGING_DEF  6
     93 
     94 #define SITE_MGR_ROAMING_STATS_RESET_TIMEOUT_MIN   5        /* in seconds */
     95 #define SITE_MGR_ROAMING_STATS_RESET_TIMEOUT_MAX   60
     96 #define SITE_MGR_ROAMING_STATS_RESET_TIMEOUT_DEF   10
     97 
     98 #define SITE_MGR_LNA_BEACON_INT_COUNT_MIN       2
     99 #define SITE_MGR_LNA_BEACON_INT_COUNT_MAX       0xFFFF
    100 #define SITE_MGR_LNA_BEACON_INT_COUNT_DEF       3
    101 
    102 #define SITE_MGR_LNA_PD_THRESHOLD_LOW_MIN       0x00
    103 #define SITE_MGR_LNA_PD_THRESHOLD_LOW_MAX       0xff
    104 #define SITE_MGR_LNA_PD_THRESHOLD_LOW_DEF       0x90
    105 
    106 #define SITE_MGR_LNA_PD_THRESHOLD_HIGH_MIN      0x00
    107 #define SITE_MGR_LNA_PD_THRESHOLD_HIGH_MAX      0xff
    108 #define SITE_MGR_LNA_PD_THRESHOLD_HIGH_DEF      0xD5
    109 
    110 #define SITE_MGR_LNA_EN_DINAMYC_TX_ALGO_DEF     0
    111 #define SITE_MGR_LNA_EN_DINAMYC_TX_ALGO_MAX     1
    112 #define SITE_MGR_LNA_EN_DINAMYC_TX_ALGO_MIN     0
    113 
    114 #define SITE_MGR_PREAMBLE_TYPE_DEF              PREAMBLE_SHORT
    115 
    116 #define SITE_MGR_EXTERNAL_MODE_MIN              0
    117 #define SITE_MGR_EXTERNAL_MODE_MAX              1
    118 #define SITE_MGR_EXTERNAL_MODE_DEF              0
    119 
    120 #define SITE_MGR_PERFORM_BUILD_IN_TEST_RECOVEY_MIN      FALSE
    121 #define SITE_MGR_PERFORM_BUILD_IN_TEST_RECOVEY_MAX      TRUE
    122 #define SITE_MGR_PERFORM_BUILD_IN_TEST_RECOVEY_DEF      FALSE
    123 
    124 #define SITE_MGR_WiFiAdHoc_MIN                  0
    125 #define SITE_MGR_WiFiAdHoc_MAX                  1
    126 #define SITE_MGR_WiFiAdHoc_DEF                  0
    127 
    128 
    129 
    130 #define SITE_MGR_BROADCAST_BACKGROUND_SCAN_MIN  FALSE
    131 #define SITE_MGR_BROADCAST_BACKGROUND_SCAN_MAX  TRUE
    132 #define SITE_MGR_BROADCAST_BACKGROUND_SCAN_DEF  FALSE
    133 
    134 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_MIN FALSE
    135 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_MAX TRUE
    136 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_DEF FALSE
    137 
    138 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_INTERVAL_TIME_MIN   10000  /* in miliseconds */
    139 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_INTERVAL_TIME_MAX   3600000
    140 #define SITE_MGR_PERIODIC_BROADCAST_BACKGROUND_SCAN_INTERVAL_TIME_DEF   60000
    141 
    142 #define SITE_MGR_KEEP_ALIVE_MIN                 FALSE
    143 #define SITE_MGR_KEEP_ALIVE_MAX                 TRUE
    144 #define SITE_MGR_KEEP_ALIVE_DEF                 TRUE
    145 
    146 #define SITE_MGR_RX_LEVEL_TABLE_SIZE_DEF        44
    147 
    148 #define MAX_SITES_BG_BAND   32
    149 #define MAX_SITES_A_BAND    20
    150 #define MAX_HASH_ENTRIES    32 /* must a power of 2  and more or less the site table size */
    151 
    152 #define NUM_OF_SITE_TABLE   2
    153 
    154 /* Beacon broadcast options */
    155 #define BCN_RX_TIMEOUT_DEF_VALUE 10000
    156 #define BCN_RX_TIMEOUT_MIN_VALUE 1
    157 #define BCN_RX_TIMEOUT_MAX_VALUE 65535
    158 
    159 #define	BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
    160 #define BROADCAST_RX_TIMEOUT_MIN_VALUE 1
    161 #define BROADCAST_RX_TIMEOUT_MAX_VALUE 65535
    162 
    163 #define	RX_BROADCAST_IN_PS_DEF_VALUE 1
    164 #define RX_BROADCAST_IN_PS_MIN_VALUE 0
    165 #define RX_BROADCAST_IN_PS_MAX_VALUE 1
    166 
    167 #define	CONSECUTIVE_PS_POLL_FAILURE_DEF 4
    168 #define CONSECUTIVE_PS_POLL_FAILURE_MIN 1
    169 #define CONSECUTIVE_PS_POLL_FAILURE_MAX 100
    170 
    171 #define	PS_POLL_FAILURE_PERIOD_DEF 20
    172 #define PS_POLL_FAILURE_PERIOD_MIN 0       /* '0' is disabled */
    173 #define PS_POLL_FAILURE_PERIOD_MAX 60000
    174 
    175 /*---------------------------*/
    176 /*  Classifier parameters    */
    177 /*---------------------------*/
    178 
    179 #define CLSFR_TYPE_MIN						1 /* 1 - Dtag, 2 - Port, 3 - IP & port */
    180 #define CLSFR_TYPE_DEF						3
    181 #define CLSFR_TYPE_MAX						3
    182 
    183 /* general values of D-tags */
    184 #define CLASSIFIER_DTAG_MIN					0
    185 #define CLASSIFIER_DTAG_MAX					7
    186 #define CLASSIFIER_DTAG_DEF					0
    187 
    188 /* general values of code points in
    189 the DSCP classification table*/
    190 #define CLASSIFIER_CODE_POINT_MIN		0
    191 #define CLASSIFIER_CODE_POINT_MAX		63
    192 #define CLASSIFIER_CODE_POINT_DEF		0
    193 
    194 /* general values of port numbers */
    195 #define CLASSIFIER_PORT_MIN					1
    196 #define CLASSIFIER_PORT_MAX					65535
    197 #define CLASSIFIER_PORT_DEF					1024
    198 
    199 /* general values of IP addresses */
    200 #define CLASSIFIER_IPADDRESS_MIN			0x0			/* TBD according to spec!*/
    201 #define CLASSIFIER_IPADDRESS_DEF			0x0A030DC4	/* MY IP ... TBD according to spec!*/
    202 #define CLASSIFIER_IPADDRESS_MAX			0xFFFFFFFF  /* TBD according to spec!*/
    203 
    204 /* DSCP (differentiated services code
    205 point) classifier parameters
    206 --------------------------------*/
    207 /* number of classifier entries in the
    208    classification table (in case of DSCP classifier) */
    209 
    210 #define NUM_OF_CODE_POINTS_MIN				0
    211 #define NUM_OF_CODE_POINTS_MAX				16
    212 #define NUM_OF_CODE_POINTS_DEF				0
    213 
    214 /* def values of code points in the DSCP classification table*/
    215 #define DSCP_CLASSIFIER_CODE_POINT_DEF	0x0
    216 
    217 /* def values of D-tags in the DSCP classification table*/
    218 #define DSCP_CLASSIFIER_DTAG_DEF			0
    219 
    220 /* Port Classifier parameters
    221 --------------------------------*/
    222 
    223 /* number of entries in the classification table (in case of destination port classifier) */
    224 #define NUM_OF_PORT_CLASSIFIERS_MIN			0
    225 #define NUM_OF_PORT_CLASSIFIERS_MAX			16
    226 #define NUM_OF_PORT_CLASSIFIERS_DEF			0
    227 
    228 /* def values of port numbers in the destination port classification table*/
    229 #define PORT_CLASSIFIER_PORT_DEF			5000
    230 
    231 /* def values of D-tags in the destination port classification table*/
    232 #define PORT_CLASSIFIER_DTAG_DEF			7
    233 
    234 /* IP&Port Classifier parameters
    235 --------------------------------*/
    236 
    237 /* number of active entries in the
    238 IP&Port classification table  */
    239 #define NUM_OF_IPPORT_CLASSIFIERS_MIN		0
    240 #define NUM_OF_IPPORT_CLASSIFIERS_MAX		16
    241 #define NUM_OF_IPPORT_CLASSIFIERS_DEF		0
    242 
    243 /* def values of IP addresses in the IP&Port classification table*/
    244 #define IPPORT_CLASSIFIER_IPADDRESS_DEF	167972292
    245 
    246 /* def values of port numbers in the IP&Port classification table*/
    247 #define IPPORT_CLASSIFIER_PORT_DEF		5004
    248 
    249 /* def values of D-tags in the IP&Port classification table*/
    250 #define IPPORT_CLASSIFIER_DTAG_DEF		7
    251 
    252 /* end of classifier parameters */
    253 
    254 #define MAX_USER_PRIORITY			(7)
    255 
    256 
    257 
    258 #define  WME_ENABLED_MIN                       (FALSE)
    259 #define  WME_ENABLED_MAX                       (TRUE)
    260 #define  WME_ENABLED_DEF                       (TRUE)
    261 
    262 #define  QOS_TRAFFIC_ADM_CTRL_ENABLED_MIN				   (FALSE)
    263 #define  QOS_TRAFFIC_ADM_CTRL_ENABLED_MAX				   (TRUE)
    264 #define  QOS_TRAFFIC_ADM_CTRL_ENABLED_DEF				   (TRUE)
    265 
    266 #define  QOS_DESIRED_PS_MODE_MIN			PS_SCHEME_LEGACY
    267 #define  QOS_DESIRED_PS_MODE_MAX			MAX_PS_SCHEME
    268 #define  QOS_DESIRED_PS_MODE_DEF			PS_SCHEME_UPSD_TRIGGER
    269 
    270 #define  QOS_TAG_ZERO_PRIO_MIN                 (FALSE)
    271 #define  QOS_TAG_ZERO_PRIO_MAX                 (TRUE)
    272 #define  QOS_TAG_ZERO_PRIO_DEF                 (TRUE)
    273 
    274 
    275 /* for the AC */
    276 #define  QOS_TX_OP_CONTINUATION_MIN             0
    277 #define  QOS_TX_OP_CONTINUATION_MAX             1
    278 #define  QOS_TX_OP_CONTINUATION_DEF            1
    279 
    280 #define  QOS_TX_OP_LIMIT_MIN                   0
    281 #define  QOS_TX_OP_LIMIT_MAX                   32000
    282 #define  QOS_TX_OP_LIMIT_DEF                   0
    283 
    284 /* for packet burst in non-qos protocol */
    285 #define  QOS_PACKET_BURST_ENABLE_MIN             0
    286 #define  QOS_PACKET_BURST_ENABLE_DEF            0
    287 #define  QOS_PACKET_BURST_ENABLE_MAX             1
    288 
    289 #define  QOS_PACKET_BURST_TXOP_LIMIT_MIN         0
    290 #define  QOS_PACKET_BURST_TXOP_LIMIT_MAX         1000
    291 #define  QOS_PACKET_BURST_TXOP_LIMIT_DEF         93
    292 
    293 #define  QOS_RX_TIMEOUT_PS_POLL_MIN                0
    294 #define  QOS_RX_TIMEOUT_PS_POLL_MAX                (200000)
    295 #define  QOS_RX_TIMEOUT_PS_POLL_DEF                15
    296 
    297 #define  QOS_RX_TIMEOUT_UPSD_MIN                   0
    298 #define  QOS_RX_TIMEOUT_UPSD_MAX                   (200000)
    299 #define  QOS_RX_TIMEOUT_UPSD_DEF                   15
    300 
    301 #define  QOS_MSDU_LIFE_TIME_MIN                0
    302 #define  QOS_MSDU_LIFE_TIME_MAX                1024
    303 
    304 #define  QOS_MSDU_LIFE_TIME_BE_MIN             (QOS_MSDU_LIFE_TIME_MIN)
    305 #define  QOS_MSDU_LIFE_TIME_BE_MAX             (QOS_MSDU_LIFE_TIME_MAX)
    306 #define  QOS_MSDU_LIFE_TIME_BE_DEF             (512)
    307 
    308 #define  QOS_MSDU_LIFE_TIME_BK_MIN             (QOS_MSDU_LIFE_TIME_MIN)
    309 #define  QOS_MSDU_LIFE_TIME_BK_MAX             (QOS_MSDU_LIFE_TIME_MAX)
    310 #define  QOS_MSDU_LIFE_TIME_BK_DEF             (100)
    311 
    312 #define  QOS_MSDU_LIFE_TIME_VI_MIN             (QOS_MSDU_LIFE_TIME_MIN)
    313 #define  QOS_MSDU_LIFE_TIME_VI_MAX             (QOS_MSDU_LIFE_TIME_MAX)
    314 #define  QOS_MSDU_LIFE_TIME_VI_DEF             (100)
    315 
    316 #define  QOS_MSDU_LIFE_TIME_VO_MIN             (QOS_MSDU_LIFE_TIME_MIN)
    317 #define  QOS_MSDU_LIFE_TIME_VO_MAX             (QOS_MSDU_LIFE_TIME_MAX)
    318 #define  QOS_MSDU_LIFE_TIME_VO_DEF             (40)
    319 
    320 #define  QOS_TX_QUEUE_SIZE_MIN                 1
    321 #define  QOS_TX_QUEUE_SIZE_MAX                 128
    322 
    323 #define  QOS_TX_QUEUE0_SIZE_MIN                (QOS_TX_QUEUE_SIZE_MIN)
    324 #define  QOS_TX_QUEUE0_SIZE_MAX                (QOS_TX_QUEUE_SIZE_MAX)
    325 #define  QOS_TX_QUEUE0_SIZE_DEF                (32)
    326 
    327 #define  QOS_TX_QUEUE1_SIZE_MIN                (QOS_TX_QUEUE_SIZE_MIN)
    328 #define  QOS_TX_QUEUE1_SIZE_MAX                (QOS_TX_QUEUE_SIZE_MAX)
    329 #define  QOS_TX_QUEUE1_SIZE_DEF                (32)
    330 
    331 #define  QOS_TX_QUEUE2_SIZE_MIN                (QOS_TX_QUEUE_SIZE_MIN)
    332 #define  QOS_TX_QUEUE2_SIZE_MAX                (QOS_TX_QUEUE_SIZE_MAX)
    333 #define  QOS_TX_QUEUE2_SIZE_DEF                (32)
    334 
    335 #define  QOS_TX_QUEUE3_SIZE_MIN                (QOS_TX_QUEUE_SIZE_MIN)
    336 #define  QOS_TX_QUEUE3_SIZE_MAX                (QOS_TX_QUEUE_SIZE_MAX)
    337 #define  QOS_TX_QUEUE3_SIZE_DEF                (32)
    338 
    339 #define  QOS_WME_PS_MODE_BE_MIN                (PS_SCHEME_LEGACY)
    340 #define  QOS_WME_PS_MODE_BE_MAX                (MAX_PS_SCHEME)
    341 #define  QOS_WME_PS_MODE_BE_DEF                (PS_SCHEME_LEGACY_PSPOLL)
    342 
    343 #define  QOS_WME_PS_MODE_BK_MIN                (PS_SCHEME_LEGACY)
    344 #define  QOS_WME_PS_MODE_BK_MAX                (MAX_PS_SCHEME)
    345 #define  QOS_WME_PS_MODE_BK_DEF                (PS_SCHEME_LEGACY_PSPOLL)
    346 
    347 #define  QOS_WME_PS_MODE_VI_MIN                (PS_SCHEME_LEGACY)
    348 #define  QOS_WME_PS_MODE_VI_MAX                (MAX_PS_SCHEME)
    349 #define  QOS_WME_PS_MODE_VI_DEF                (PS_SCHEME_LEGACY_PSPOLL)
    350 
    351 #define  QOS_WME_PS_MODE_VO_MIN                (PS_SCHEME_LEGACY)
    352 #define  QOS_WME_PS_MODE_VO_MAX                (MAX_PS_SCHEME)
    353 #define  QOS_WME_PS_MODE_VO_DEF                (PS_SCHEME_LEGACY_PSPOLL)
    354 
    355 
    356 /*
    357  * new host interface method
    358  * sum of High threshold TxBlocks > 100% of Tx blocks
    359  */
    360 #define  QOS_TX_BLKS_HIGH_PRCNT_MIN            (0)
    361 #define  QOS_TX_BLKS_HIGH_PRCNT_MAX            (100)
    362 
    363 #define  QOS_TX_BLKS_HIGH_PRCNT_BK_DEF         (25)
    364 #define  QOS_TX_BLKS_HIGH_PRCNT_BE_DEF         (35)
    365 #define  QOS_TX_BLKS_HIGH_PRCNT_VI_DEF         (35)
    366 #define  QOS_TX_BLKS_HIGH_PRCNT_VO_DEF         (35)
    367 /*
    368  * sum of Low threshold TxBlocks < 100% of Tx blocks
    369  */
    370 #define  QOS_TX_BLKS_LOW_PRCNT_BK_DEF         (15)
    371 #define  QOS_TX_BLKS_LOW_PRCNT_BE_DEF         (25)
    372 #define  QOS_TX_BLKS_LOW_PRCNT_VI_DEF         (25)
    373 #define  QOS_TX_BLKS_LOW_PRCNT_VO_DEF         (25)
    374 
    375 
    376 
    377 #define  QOS_QID_MIN                           0
    378 #define  QOS_QID_MAX                           3
    379 
    380 #define  QOS_AC_MIN                            QOS_QID_MIN
    381 #define  QOS_AC_MAX                            QOS_QID_MAX
    382 
    383 #define  QOS_AIFS_MIN                          1
    384 #define  QOS_AIFS_MAX                          15
    385 
    386 #define QOS_CWMIN_MIN                          0
    387 #define QOS_CWMIN_MAX                          15
    388 
    389 #define QOS_CWMAX_MIN                          0
    390 #define QOS_CWMAX_MAX                          15
    391 
    392 #define QOS_TIMEOUT_MIN                        0
    393 #define QOS_TIMEOUT_MAX                        65535
    394 
    395 #define QOS_ACK_POLICY_MIN                     0
    396 #define QOS_ACK_POLICY_MAX                     1
    397 
    398 #define QOS_TRAFFIC_TYPE_MIN                   0
    399 #define QOS_TRAFFIC_TYPE_MAX                   1
    400 
    401 #define QOS_SHORT_RETRY_LIMIT_MIN              1
    402 #define QOS_SHORT_RETRY_LIMIT_MAX              255
    403 #define QOS_SHORT_RETRY_LIMIT_DEF              10
    404 
    405 #define QOS_SHORT_RETRY_LIMIT_BE_MIN           (QOS_SHORT_RETRY_LIMIT_MIN)
    406 #define QOS_SHORT_RETRY_LIMIT_BE_MAX           (QOS_SHORT_RETRY_LIMIT_MAX)
    407 #define QOS_SHORT_RETRY_LIMIT_BE_DEF           (QOS_SHORT_RETRY_LIMIT_DEF)
    408 
    409 #define QOS_SHORT_RETRY_LIMIT_BK_MIN           (QOS_SHORT_RETRY_LIMIT_MIN)
    410 #define QOS_SHORT_RETRY_LIMIT_BK_MAX           (QOS_SHORT_RETRY_LIMIT_MAX)
    411 #define QOS_SHORT_RETRY_LIMIT_BK_DEF           (QOS_SHORT_RETRY_LIMIT_DEF)
    412 
    413 #define QOS_SHORT_RETRY_LIMIT_VI_MIN           (QOS_SHORT_RETRY_LIMIT_MIN)
    414 #define QOS_SHORT_RETRY_LIMIT_VI_MAX           (QOS_SHORT_RETRY_LIMIT_MAX)
    415 #define QOS_SHORT_RETRY_LIMIT_VI_DEF           (QOS_SHORT_RETRY_LIMIT_DEF)
    416 
    417 #define QOS_SHORT_RETRY_LIMIT_VO_MIN           (QOS_SHORT_RETRY_LIMIT_MIN)
    418 #define QOS_SHORT_RETRY_LIMIT_VO_MAX           (QOS_SHORT_RETRY_LIMIT_MAX)
    419 #define QOS_SHORT_RETRY_LIMIT_VO_DEF           (4)
    420 
    421 
    422 #define QOS_LONG_RETRY_LIMIT_MIN               1
    423 #define QOS_LONG_RETRY_LIMIT_MAX               255
    424 #define QOS_LONG_RETRY_LIMIT_DEF               4
    425 
    426 #define QOS_LONG_RETRY_LIMIT_BE_MIN           (QOS_LONG_RETRY_LIMIT_MIN)
    427 #define QOS_LONG_RETRY_LIMIT_BE_MAX           (QOS_LONG_RETRY_LIMIT_MAX)
    428 #define QOS_LONG_RETRY_LIMIT_BE_DEF           (QOS_LONG_RETRY_LIMIT_DEF)
    429 
    430 #define QOS_LONG_RETRY_LIMIT_BK_MIN           (QOS_LONG_RETRY_LIMIT_MIN)
    431 #define QOS_LONG_RETRY_LIMIT_BK_MAX           (QOS_LONG_RETRY_LIMIT_MAX)
    432 #define QOS_LONG_RETRY_LIMIT_BK_DEF           (QOS_LONG_RETRY_LIMIT_DEF)
    433 
    434 #define QOS_LONG_RETRY_LIMIT_VI_MIN           (QOS_LONG_RETRY_LIMIT_MIN)
    435 #define QOS_LONG_RETRY_LIMIT_VI_MAX           (QOS_LONG_RETRY_LIMIT_MAX)
    436 #define QOS_LONG_RETRY_LIMIT_VI_DEF           (QOS_LONG_RETRY_LIMIT_DEF)
    437 
    438 #define QOS_LONG_RETRY_LIMIT_VO_MIN           (QOS_LONG_RETRY_LIMIT_MIN)
    439 #define QOS_LONG_RETRY_LIMIT_VO_MAX           (QOS_LONG_RETRY_LIMIT_MAX)
    440 #define QOS_LONG_RETRY_LIMIT_VO_DEF           (QOS_LONG_RETRY_LIMIT_DEF)
    441 
    442 
    443 
    444 #define QOS_QUEUE_0_OVFLOW_POLICY_MIN          (DROP_NEW_PACKET)
    445 #define QOS_QUEUE_0_OVFLOW_POLICY_MAX          (DROP_OLD_PACKET)
    446 #define QOS_QUEUE_0_OVFLOW_POLICY_DEF          (DROP_NEW_PACKET)
    447 
    448 #define QOS_QUEUE_1_OVFLOW_POLICY_MIN          (DROP_NEW_PACKET)
    449 #define QOS_QUEUE_1_OVFLOW_POLICY_MAX          (DROP_OLD_PACKET)
    450 #define QOS_QUEUE_1_OVFLOW_POLICY_DEF          (DROP_NEW_PACKET)
    451 
    452 #define QOS_QUEUE_2_OVFLOW_POLICY_MIN          (DROP_NEW_PACKET)
    453 #define QOS_QUEUE_2_OVFLOW_POLICY_MAX          (DROP_OLD_PACKET)
    454 #define QOS_QUEUE_2_OVFLOW_POLICY_DEF          (DROP_NEW_PACKET)
    455 
    456 #define QOS_QUEUE_3_OVFLOW_POLICY_MIN          (DROP_NEW_PACKET)
    457 #define QOS_QUEUE_3_OVFLOW_POLICY_MAX          (DROP_OLD_PACKET)
    458 #define QOS_QUEUE_3_OVFLOW_POLICY_DEF          (DROP_NEW_PACKET)
    459 
    460 #define QOS_ACK_POLICY_BE_MIN             (ACK_POLICY_LEGACY)
    461 #define QOS_ACK_POLICY_BE_MAX			  (MAX_ACK_POLICY)
    462 #define QOS_ACK_POLICY_BE_DEF             (ACK_POLICY_LEGACY)
    463 
    464 #define QOS_ACK_POLICY_BK_MIN             (ACK_POLICY_LEGACY)
    465 #define QOS_ACK_POLICY_BK_MAX			  (MAX_ACK_POLICY)
    466 #define QOS_ACK_POLICY_BK_DEF             (ACK_POLICY_LEGACY)
    467 
    468 #define QOS_ACK_POLICY_VI_MIN             (ACK_POLICY_LEGACY)
    469 #define QOS_ACK_POLICY_VI_MAX			  (MAX_ACK_POLICY)
    470 #define QOS_ACK_POLICY_VI_DEF             (ACK_POLICY_LEGACY)
    471 
    472 #define QOS_ACK_POLICY_VO_MIN             (ACK_POLICY_LEGACY)
    473 #define QOS_ACK_POLICY_VO_MAX			  (MAX_ACK_POLICY)
    474 #define QOS_ACK_POLICY_VO_DEF             (ACK_POLICY_LEGACY)
    475 
    476 
    477 /* MAX_SP_LEN_VALUES
    478   00 - all buffered frames
    479   01 - 2
    480   10 - 4
    481   11 - 6
    482 */
    483 
    484 #define QOS_MAX_SP_LEN_MIN						0
    485 #define QOS_MAX_SP_LEN_MAX						3
    486 #define QOS_MAX_SP_LEN_DEF						1 /* means maxSpLen = 2 (changed for SoftGemini requiremnet) */
    487 
    488 
    489 /*---------------------------
    490       ROAMING parameters
    491 -----------------------------*/
    492 #define ROAMING_MNGR_ENABLE_MIN             0
    493 #define ROAMING_MNGR_ENABLE_MAX             1
    494 #define ROAMING_MNGR_ENABLE_DEF             0
    495 
    496 #define ROAMING_MNGR_ENABLE_PERIODIC_SCAN_MIN       0
    497 #define ROAMING_MNGR_ENABLE_PERIODIC_SCAN_MAX       1
    498 #define ROAMING_MNGR_ENABLE_PERIODIC_SCAN_DEF       0
    499 
    500 #define ROAMING_MNGR_RSSI_GAP_MIN                   0
    501 #define ROAMING_MNGR_RSSI_GAP_MAX                   50
    502 #define ROAMING_MNGR_RSSI_GAP_DEF                   10
    503 
    504 #define ROAMING_MNGR_PERIODIC_SCAN_TIEMOUT_MIN      1000
    505 #define ROAMING_MNGR_PERIODIC_SCAN_TIEMOUT_MAX      10000
    506 #define ROAMING_MNGR_PERIODIC_SCAN_TIEMOUT_DEF      3000
    507 
    508 #define ROAMING_MNGR_PERIODIC_SCAN_MIN_CH_MIN       5
    509 #define ROAMING_MNGR_PERIODIC_SCAN_MIN_CH_MAX       60
    510 #define ROAMING_MNGR_PERIODIC_SCAN_MIN_CH_DEF       5
    511 
    512 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_CH_MIN       5
    513 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_CH_MAX       60
    514 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_CH_DEF       20
    515 
    516 #define ROAMING_MNGR_PERIODIC_SCAN_ET_MODE_MIN      0
    517 #define ROAMING_MNGR_PERIODIC_SCAN_ET_MODE_MAX      3
    518 #define ROAMING_MNGR_PERIODIC_SCAN_ET_MODE_DEF      3
    519 
    520 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_NUM_FRAMES_MIN       1
    521 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_NUM_FRAMES_MAX       30
    522 #define ROAMING_MNGR_PERIODIC_SCAN_MAX_NUM_FRAMES_DEF       1
    523 
    524 #define ROAMING_MNGR_PERIODIC_SCAN_NUM_PROBE_REQ_MIN        1
    525 #define ROAMING_MNGR_PERIODIC_SCAN_NUM_PROBE_REQ_MAX        10
    526 #define ROAMING_MNGR_PERIODIC_SCAN_NUM_PROBE_REQ_DEF        2
    527 
    528 /*---------------------------
    529     Measurement parameters
    530 -----------------------------*/
    531 #define MEASUREMENT_TRAFFIC_THRSHLD_MIN             1       /* Packets Per Second threshold */
    532 #define MEASUREMENT_TRAFFIC_THRSHLD_MAX             1000
    533 #define MEASUREMENT_TRAFFIC_THRSHLD_DEF             400
    534 
    535 #define MEASUREMENT_MAX_DUR_NON_SRV_CHANNEL_MIN            1           /* In ms */
    536 #define MEASUREMENT_MAX_DUR_NON_SRV_CHANNEL_MAX             1000
    537 #define MEASUREMENT_MAX_DUR_NON_SRV_CHANNEL_DEF             300
    538 
    539 
    540 /*---------------------------
    541       EXC Manager parameters
    542 -----------------------------*/
    543 #define EXC_MNGR_ENABLE_MIN             EXC_MODE_DISABLED
    544 #define EXC_MNGR_ENABLE_MAX             EXC_MODE_STANDBY
    545 #define EXC_MNGR_ENABLE_DEF             EXC_MODE_ENABLED
    546 
    547 #define EXC_TEST_IGNORE_DEAUTH_0_DEF            1
    548 #define EXC_TEST_IGNORE_DEAUTH_0_MIN            0
    549 #define EXC_TEST_IGNORE_DEAUTH_0_MAX            1
    550 
    551 #define SITE_MGR_ROAMING_TX_RATE_PERCENTAGE_MIN         30
    552 #define SITE_MGR_ROAMING_TX_RATE_PERCENTAGE_MAX         75
    553 #define SITE_MGR_ROAMING_TX_RATE_PERCENTAGE_DEF         40
    554 
    555 
    556 #define SITE_MGR_ROAMING_RSSI_MIN                       0
    557 #define SITE_MGR_ROAMING_RSSI_MAX                       100
    558 #define SITE_MGR_ROAMING_RSSI_DEF                       80
    559 
    560 #define SITE_MGR_ROAMING_CONS_TX_ERRORS_MIN				1
    561 #define SITE_MGR_ROAMING_CONS_TX_ERRORS_MAX				200
    562 #define SITE_MGR_ROAMING_CONS_TX_ERRORS_DEF				10
    563 
    564 
    565 #define SITE_MGR_POSTDISCONNECT_TIMEOUT_DEF     6000 /*6 sec*/
    566 #define SITE_MGR_POSTDISCONNECT_TIMEOUT_MIN     1000
    567 #define SITE_MGR_POSTDISCONNECT_TIMEOUT_MAX     10000
    568 
    569 #define CONN_SELF_TIMEOUT_MIN                   1 * 1000        /* 1 seconds */
    570 #define CONN_SELF_TIMEOUT_MAX                   60 * 1000       /* 1 minute */
    571 #define CONN_SELF_TIMEOUT_DEF                   10 * 1000       /* 10 seconds */
    572 
    573 #define AUTH_RESPONSE_TIMEOUT_MIN               100
    574 #define AUTH_RESPONSE_TIMEOUT_MAX               5000
    575 #define AUTH_RESPONSE_TIMEOUT_DEF               500
    576 
    577 #define AUTH_MAX_RETRY_COUNT_MIN                1
    578 #define AUTH_MAX_RETRY_COUNT_MAX                5
    579 #define AUTH_MAX_RETRY_COUNT_DEF                2
    580 
    581 #define ASSOC_RESPONSE_TIMEOUT_MIN              1000
    582 #define ASSOC_RESPONSE_TIMEOUT_MAX              5000
    583 #define ASSOC_RESPONSE_TIMEOUT_DEF              2000
    584 
    585 #define ASSOC_MAX_RETRY_COUNT_MIN               1
    586 #define ASSOC_MAX_RETRY_COUNT_MAX               5
    587 #define ASSOC_MAX_RETRY_COUNT_DEF               2
    588 
    589 #define RX_DATA_FILTERS_ENABLED_MIN      FALSE
    590 #define RX_DATA_FILTERS_ENABLED_MAX      TRUE
    591 #define RX_DATA_FILTERS_ENABLED_DEF      FALSE
    592 
    593 #define RX_DATA_FILTERS_DEFAULT_ACTION_MIN      FILTER_DROP
    594 #define RX_DATA_FILTERS_DEFAULT_ACTION_MAX      FILTER_FW_HANDLE
    595 #define RX_DATA_FILTERS_DEFAULT_ACTION_DEF      FILTER_DROP
    596 
    597 #define RX_DATA_FILTERS_FILTER_OFFSET_DEF       0
    598 #define RX_DATA_FILTERS_FILTER_OFFSET_MIN       0
    599 #define RX_DATA_FILTERS_FILTER_OFFSET_MAX       255
    600 
    601 #define RX_DATA_FILTERS_FILTER_MASK_DEF         ""
    602 #define RX_DATA_FILTERS_FILTER_MASK_LEN_DEF     0
    603 
    604 #define RX_DATA_FILTERS_FILTER_PATTERN_DEF      ""
    605 #define RX_DATA_FILTERS_FILTER_PATTERN_LEN_DEF  0
    606 
    607 #define TX_DATA_NUMBER_OF_DATA_QUEUES_MIN       1
    608 #define TX_DATA_NUMBER_OF_DATA_QUEUES_MAX       10
    609 #define TX_DATA_NUMBER_OF_DATA_QUEUES_DEF       4
    610 
    611 #define TX_DATA_CREDIT_CALC_TIMOEUT_DEF			100
    612 #define TX_DATA_CREDIT_CALC_TIMOEUT_MIN			20
    613 #define TX_DATA_CREDIT_CALC_TIMOEUT_MAX			1000
    614 
    615 #define TX_DATA_FRAC_OF_LIFE_TIME_TO_DROP_DEF	50
    616 #define TX_DATA_FRAC_OF_LIFE_TIME_TO_DROP_MIN	1   /* 0% means we drop everything... so make it 1 */
    617 #define TX_DATA_FRAC_OF_LIFE_TIME_TO_DROP_MAX	100 /* don't drop anything (unless time expired)   */
    618 
    619 #define TX_DATA_ADM_CTRL_DELAY_DUE_TO_MEDIUM_OVER_USAGE_DEF				FALSE
    620 #define TX_DATA_ADM_CTRL_DELAY_DUE_TO_MEDIUM_OVER_USAGE_MIN				FALSE
    621 #define TX_DATA_ADM_CTRL_DELAY_DUE_TO_MEDIUM_OVER_USAGE_MAX				TRUE
    622 
    623 #define TX_DATA_ADM_CTRL_DOWN_GRADE_DEF			TRUE
    624 #define TX_DATA_ADM_CTRL_DOWN_GRADE_MIN			FALSE
    625 #define TX_DATA_ADM_CTRL_DOWN_GRADE_MAX			TRUE
    626 
    627 #define TRAFFIC_ADM_CONTROL_TIMEOUT_MIN       (10)
    628 #define TRAFFIC_ADM_CONTROL_TIMEOUT_MAX       (10000)
    629 #define TRAFFIC_ADM_CONTROL_TIMEOUT_DEF       (5000)
    630 
    631 #define CTRL_DATA_TRAFFIC_THRESHOLD_HIGH_MIN    1           /* Traffic intensity threshold - Measured in packets */
    632 #define CTRL_DATA_TRAFFIC_THRESHOLD_HIGH_MAX    1000
    633 #define CTRL_DATA_TRAFFIC_THRESHOLD_HIGH_DEF    100
    634 
    635 #define CTRL_DATA_TRAFFIC_THRESHOLD_LOW_MIN     1           /* Traffic intensity threshold - Measured in packets */
    636 #define CTRL_DATA_TRAFFIC_THRESHOLD_LOW_MAX     1000
    637 #define CTRL_DATA_TRAFFIC_THRESHOLD_LOW_DEF     25
    638 
    639 #define CTRL_DATA_TRAFFIC_THRESHOLD_INTERVAL_MIN   50       /* Traffic intensity threshold - Traffic test interval - measured in ms */
    640 #define CTRL_DATA_TRAFFIC_THRESHOLD_INTERVAL_MAX   10000
    641 #define CTRL_DATA_TRAFFIC_THRESHOLD_INTERVAL_DEF   1000
    642 
    643 #define CTRL_DATA_TRAFFIC_THRESHOLD_ENABLED_MIN FALSE
    644 #define CTRL_DATA_TRAFFIC_THRESHOLD_ENABLED_MAX TRUE
    645 #define CTRL_DATA_TRAFFIC_THRESHOLD_ENABLED_DEF FALSE
    646 
    647 #define TRAFFIC_MONITOR_MIN_INTERVAL_PERCENT_MIN   10
    648 #define TRAFFIC_MONITOR_MIN_INTERVAL_PERCENT_MAX   90
    649 #define TRAFFIC_MONITOR_MIN_INTERVAL_PERCENT_DEF   50
    650 
    651 #define CTRL_DATA_CONT_TX_THRESHOLD_MIN  2
    652 #define CTRL_DATA_CONT_TX_THRESHOLD_MAX  256
    653 #define CTRL_DATA_CONT_TX_THRESHOLD_DEF  30
    654 
    655 #define CTRL_DATA_STEP_UP_TX_THRESHOLD_MIN    2
    656 #define CTRL_DATA_STEP_UP_TX_THRESHOLD_MAX    256
    657 #define CTRL_DATA_STEP_UP_TX_THRESHOLD_DEF    10
    658 
    659 #define CTRL_DATA_FB_SHORT_INTERVAL_MIN         20
    660 #define CTRL_DATA_FB_SHORT_INTERVAL_MAX         2000
    661 #define CTRL_DATA_FB_SHORT_INTERVAL_DEF         50
    662 
    663 #define CTRL_DATA_FB_LONG_INTERVAL_MIN          100
    664 #define CTRL_DATA_FB_LONG_INTERVAL_MAX          10000
    665 #define CTRL_DATA_FB_LONG_INTERVAL_DEF          2000
    666 
    667 #define RATE_ADAPTATION_TIMEOUT_MIN             1
    668 #define RATE_ADAPTATION_TIMEOUT_MAX             3600
    669 #define RATE_ADAPTATION_TIMEOUT_DEF             300
    670 
    671 #define RATE_ADAPT_HIGH_TRSH_AC_VO_MIN			0
    672 #define RATE_ADAPT_HIGH_TRSH_AC_VO_MAX			54
    673 #define RATE_ADAPT_HIGH_TRSH_AC_VO_DEF			0
    674 
    675 #define RATE_ADAPT_HIGH_TRSH_AC_VI_MIN			0
    676 #define RATE_ADAPT_HIGH_TRSH_AC_VI_MAX			54
    677 #define RATE_ADAPT_HIGH_TRSH_AC_VI_DEF			0
    678 
    679 #define RATE_ADAPT_HIGH_TRSH_AC_BE_MIN			0
    680 #define RATE_ADAPT_HIGH_TRSH_AC_BE_MAX			54
    681 #define RATE_ADAPT_HIGH_TRSH_AC_BE_DEF			0
    682 
    683 #define RATE_ADAPT_HIGH_TRSH_AC_BK_MIN			0
    684 #define RATE_ADAPT_HIGH_TRSH_AC_BK_MAX			54
    685 #define RATE_ADAPT_HIGH_TRSH_AC_BK_DEF			0
    686 
    687 #define RATE_ADAPT_LOW_TRSH_AC_VO_MIN			0
    688 #define RATE_ADAPT_LOW_TRSH_AC_VO_MAX			54
    689 #define RATE_ADAPT_LOW_TRSH_AC_VO_DEF			0
    690 
    691 #define RATE_ADAPT_LOW_TRSH_AC_VI_MIN			0
    692 #define RATE_ADAPT_LOW_TRSH_AC_VI_MAX			54
    693 #define RATE_ADAPT_LOW_TRSH_AC_VI_DEF			0
    694 
    695 #define RATE_ADAPT_LOW_TRSH_AC_BE_MIN			0
    696 #define RATE_ADAPT_LOW_TRSH_AC_BE_MAX			54
    697 #define RATE_ADAPT_LOW_TRSH_AC_BE_DEF			0
    698 
    699 #define RATE_ADAPT_LOW_TRSH_AC_BK_MIN			0
    700 #define RATE_ADAPT_LOW_TRSH_AC_BK_MAX			54
    701 #define RATE_ADAPT_LOW_TRSH_AC_BK_DEF			0
    702 
    703 #define CTRL_DATA_RATE_CONTROL_ENABLE_MIN       FALSE
    704 #define CTRL_DATA_RATE_CONTROL_ENABLE_MAX       TRUE
    705 #define CTRL_DATA_RATE_CONTROL_ENABLE_DEF       FALSE
    706 
    707 #define CTRL_DATA_FOUR_X_ENABLE_MIN             FALSE
    708 #define CTRL_DATA_FOUR_X_ENABLE_MAX             TRUE
    709 #define CTRL_DATA_FOUR_X_ENABLE_DEF             FALSE
    710 
    711 #define CTRL_DATA_RATE_POLICY_USER_SHORT_RETRY_LIMIT_MIN 1
    712 #define CTRL_DATA_RATE_POLICY_USER_SHORT_RETRY_LIMIT_MAX 255
    713 #define CTRL_DATA_RATE_POLICY_USER_SHORT_RETRY_LIMIT_DEF 10
    714 
    715 #define CTRL_DATA_RATE_POLICY_USER_LONG_RETRY_LIMIT_MIN 1
    716 #define CTRL_DATA_RATE_POLICY_USER_LONG_RETRY_LIMIT_MAX 255
    717 #define CTRL_DATA_RATE_POLICY_USER_LONG_RETRY_LIMIT_DEF 4
    718 
    719 #define CTRL_DATA_RATE_POLICY_USER_RETRIES_PER_RATE_CCK_DEF		"1,1,1,1,1,1,1,1,1,1,1,1,1"
    720 #define CTRL_DATA_RATE_POLICY_USER_RETRIES_PER_RATE_PBCC_DEF	"1,1,1,1,1,1,1,1,1,1,1,1,1"
    721 #define CTRL_DATA_RATE_POLICY_USER_RETRIES_PER_RATE_OFDM_DEF	"0,0,0,1,0,0,0,1,0,0,1,1,1"
    722 #define CTRL_DATA_RATE_POLICY_USER_RETRIES_PER_RATE_OFDMA_DEF	"0,0,0,1,0,0,1,0,0,1,0,0,0"
    723 
    724 #define CTRL_DATA_RATE_POLICY_SG_SHORT_RETRY_LIMIT_MIN 1
    725 #define CTRL_DATA_RATE_POLICY_SG_SHORT_RETRY_LIMIT_MAX 255
    726 #define CTRL_DATA_RATE_POLICY_SG_SHORT_RETRY_LIMIT_DEF 10
    727 
    728 #define CTRL_DATA_RATE_POLICY_SG_LONG_RETRY_LIMIT_MIN 1
    729 #define CTRL_DATA_RATE_POLICY_SG_LONG_RETRY_LIMIT_MAX 255
    730 #define CTRL_DATA_RATE_POLICY_SG_LONG_RETRY_LIMIT_DEF 4
    731 
    732 #define CTRL_DATA_RATE_POLICY_SG_RETRIES_PER_RATE_CCK_DEF	"1,1,1,1,1,1,1,5,1,1,1,1,1"
    733 #define CTRL_DATA_RATE_POLICY_SG_RETRIES_PER_RATE_PBCC_DEF	"1,1,1,1,1,1,1,5,1,1,1,1,1"
    734 #define CTRL_DATA_RATE_POLICY_SG_RETRIES_PER_RATE_OFDM_DEF	"1,1,1,1,1,1,1,5,1,1,1,1,1"
    735 #define CTRL_DATA_RATE_POLICY_SG_RETRIES_PER_RATE_OFDMA_DEF	"1,1,1,1,1,1,1,5,1,1,1,1,1"
    736 
    737 #define CTRL_DATA_RATE_POLICY_RETRIES_PER_RATE_MAX_LEN 100
    738 
    739 #define REPORT_SEVERITY_VALUE_MIN               0
    740 #define REPORT_SEVERITY_VALUE_MAX               0xFF
    741 #define REPORT_SEVERITY_VALUE_DEF               0xB8    /* WLAN_SEVERITY_WARNING | WLAN_SEVERITY_ERROR | WLAN_SEVERITY_FATAL_ERROR | WLAN_SEVERITY_CONSOLE */
    742 
    743 #define RSN_AUTH_SUITE_MIN                      RSN_AUTH_OPEN
    744 #define RSN_AUTH_SUITE_MAX                      RSN_AUTH_NONE
    745 #define RSN_AUTH_SUITE_DEF                      RSN_AUTH_OPEN
    746 
    747 #define RSN_DEFAULT_KEY_ID_MIN                  0
    748 #define RSN_DEFAULT_KEY_ID_MAX                  (DOT11_MAX_DEFAULT_WEP_KEYS - 1)
    749 #define RSN_DEFAULT_KEY_ID_DEF                  0
    750 
    751 #define RSN_PMKSA_LIFETIME_MIN					1		  	/* 1 sec */
    752 #define RSN_PMKSA_LIFETIME_MAX					4233600 	/* 49 days in sec */
    753 #define RSN_PMKSA_LIFETIME_DEF					86400  		/* 1 day in sec */
    754 
    755 #define RSN_WEP_STATUS_MIN                      0
    756 #define RSN_WEP_STATUS_MAX                      1
    757 #define RSN_WEP_STATUS_DEF                      0
    758 
    759 #define RSN_WEPMIXEDMODE_ENABLED_MIN                    0
    760 #define RSN_WEPMIXEDMODE_ENABLED_MAX                    1
    761 #define RSN_WEPMIXEDMODE_ENABLED_DEF                    0
    762 
    763 #define RSN_WPAMIXEDMODE_ENABLE_MIN             0
    764 #define RSN_WPAMIXEDMODE_ENABLE_MAX             1
    765 #define RSN_WPAMIXEDMODE_ENABLE_DEF             1
    766 
    767 
    768 #define RSN_PREAUTH_ENABLE_MIN                  0
    769 #define RSN_PREAUTH_ENABLE_MAX                  1
    770 #define RSN_PREAUTH_ENABLE_DEF                  1
    771 
    772 #define RSN_PREAUTH_TIMEOUT_MIN                  500
    773 #define RSN_PREAUTH_TIMEOUT_MAX                  60000
    774 #define RSN_PREAUTH_TIMEOUT_DEF                  2000  /* In mSec units */
    775 
    776 
    777 #define  RSN_PMKIDCANDLIST_DELAY_MIN            3000
    778 #define  RSN_PMKIDCANDLIST_DELAY_MAX            9000
    779 #define  RSN_PMKIDCANDLIST_DELAY_DEF            4000
    780 
    781 
    782 /* 4X VALUES */
    783 #define DESIRED_CONCATENATION_ENABLE_DEF        TRUE
    784 #define DESIRED_CWMIN_ENABLE_DEF                TRUE
    785 #define DESIRED_CWCOMBO_ENABLE_DEF              FALSE
    786 #define DESIRED_ACKEMULATION_ENABLE_DEF         FALSE
    787 #define DESIRED_ERP_PROTECTION_ENABLE_DEF       FALSE
    788 #define MAX_CONCAT_SIZE_DEF                     4032
    789 #define IBSS_FOUR_X_MODE_PAYLOAD_SIZE           4032
    790 #define INFRASTRUCTURE_FOUR_X_MODE_PAYLOAD_SIZE 1300
    791 #define NOT_FOUR_X_MODE_PAYLOAD_SIZE            1500
    792 
    793 /* SME Values */
    794 
    795 #define ENABLE_SME_SCAN_DEF			            1
    796 #define ENABLE_SME_SCAN_MIN                     0
    797 #define ENABLE_SME_SCAN_MAX                     1
    798 
    799 #define SME_INTER_SCAN_MIN_DEF                  10000 /* 10 seconds */
    800 #define SME_INTER_SCAN_MIN_MIN		            1000
    801 #define SME_INTER_SCAN_MIN_MAX              	3600000
    802 
    803 #define SME_INTER_SCAN_MAX_DEF                  60000 /* 60 seconds */
    804 #define SME_INTER_SCAN_MAX_MIN		            1000
    805 #define SME_INTER_SCAN_MAX_MAX              	3600000
    806 
    807 #define SME_INTER_SCAN_DELTA_DEF                1000 /* 1sec*/
    808 #define SME_INTER_SCAN_DELTA_MIN		        100
    809 #define SME_INTER_SCAN_DELTA_MAX              	10000
    810 
    811 
    812 /*        B\G First Scan Params              */
    813 /*       ----------------------              */
    814 #define SME_SCAN_BG_LIST_BAND_STRING_MAX_SIZE    100
    815 #define SME_SCAN_BG_LIST_BAND_VAL_DEF			"1,2,3,4,5,6,7,8,9,10,11,12,13,14"   /* All chaneels */
    816 
    817 #define SME_SCAN_BG_MIN_DWELL_TIME_DEF			30000
    818 #define SME_SCAN_BG_MIN_DWELL_TIME_MIN			100
    819 #define SME_SCAN_BG_MIN_DWELL_TIME_MAX			1000000
    820 
    821 #define SME_SCAN_BG_MAX_DWELL_TIME_DEF			60000
    822 #define SME_SCAN_BG_MAX_DWELL_TIME_MIN			100
    823 #define SME_SCAN_BG_MAX_DWELL_TIME_MAX			1000000
    824 
    825 #define	SME_SCAN_BG_NUM_PROB_REQ_DEF			3
    826 #define SME_SCAN_BG_NUM_PROB_REQ_MIN			1
    827 #define SME_SCAN_BG_NUM_PROB_REQ_MAX			5
    828 
    829 #define SME_SCAN_BG_PROB_REQ_RATE_DEF		    0x2         /* Represented as bitmask */
    830 #define SME_SCAN_BG_PROB_REQ_RATE_MIN			0x1			/* 1M=0x1, 2M=0x2, 5.5M=0x4, 11M=0x8,    */
    831 #define SME_SCAN_BG_NUM_PROB_REQ_RATE_MAX		0x1000 		/* 22M=0x10, 6M=0x20, 9M=0x40, 12M=0x80, */
    832 															/* 18M=0x100, 24M=0x200, 36M=0x400, */
    833 															/* 48M=0x800, 54M=0x1000 */
    834 
    835 #define SME_SCAN_BG_TX_POWER_DEF				MAX_TX_POWER	/* Dbm/10 Units */
    836 #define SME_SCAN_BG_TX_POWER_MIN				MIN_TX_POWER
    837 #define SME_SCAN_BG_TX_POWER_MAX				MAX_TX_POWER
    838 
    839 
    840 /*        A First Scan Params              */
    841 /*       ----------------------              */
    842 #define SME_SCAN_A_LIST_BAND_STRING_MAX_SIZE    100
    843 #define SME_SCAN_A_LIST_BAND_VAL_DEF			"36,40,44,48,52,56,60,64"   /* All chaneels */
    844 
    845 #define SME_SCAN_A_MIN_DWELL_TIME_DEF			30000
    846 #define SME_SCAN_A_MIN_DWELL_TIME_MIN			100
    847 #define SME_SCAN_A_MIN_DWELL_TIME_MAX			1000000
    848 
    849 #define SME_SCAN_A_MAX_DWELL_TIME_DEF			60000
    850 #define SME_SCAN_A_MAX_DWELL_TIME_MIN			100
    851 #define SME_SCAN_A_MAX_DWELL_TIME_MAX			1000000
    852 
    853 #define	SME_SCAN_A_NUM_PROB_REQ_DEF				3
    854 #define SME_SCAN_A_NUM_PROB_REQ_MIN				1
    855 #define SME_SCAN_A_NUM_PROB_REQ_MAX				5
    856 
    857 #define SME_SCAN_A_PROB_REQ_RATE_DEF		    0x20         /* Represented as bitmask */
    858 #define SME_SCAN_A_PROB_REQ_RATE_MIN			0x20		/* 1M=0x1, 2M=0x2, 5.5M=0x4, 11M=0x8,    */
    859 #define SME_SCAN_A_NUM_PROB_REQ_RATE_MAX		0x1000 		/* 22M=0x10, 6M=0x20, 9M=0x40, 12M=0x80, */
    860 															/* 18M=0x100, 24M=0x200, 36M=0x400, */
    861 															/* 48M=0x800, 54M=0x1000 */
    862 #define SME_SCAN_A_TX_POWER_DEF				MAX_TX_POWER	/* Dbm/10 */
    863 #define SME_SCAN_A_TX_POWER_MIN				MIN_TX_POWER
    864 #define SME_SCAN_A_TX_POWER_MAX				MAX_TX_POWER
    865 
    866 /* Scan SRV parameters */
    867 #define SCAN_SRV_NUMBER_OF_NO_SCAN_COMPLETE_TO_RECOVERY_DEF		3
    868 #define SCAN_SRV_NUMBER_OF_NO_SCAN_COMPLETE_TO_RECOVERY_MIN		1
    869 #define	SCAN_SRV_NUMBER_OF_NO_SCAN_COMPLETE_TO_RECOVERY_MAX		1000000
    870 
    871 #define SCAN_SRV_TRIGGERED_SCAN_TIME_OUT_DEF		50000
    872 #define SCAN_SRV_TRIGGERED_SCAN_TIME_OUT_MIN		0
    873 #define	SCAN_SRV_TRIGGERED_SCAN_TIME_OUT_MAX		0xffffffff
    874 
    875 /*
    876   EEPROM-less support
    877 */
    878 #define REG_MAC_ADDR_STR_LEN                    17
    879 #define REG_ARP_IP_ADDR_STR_LEN					11
    880 #define REG_MAC_ADDR_PREAMBLE_STR_LEN			9
    881 #define BEACON_FILTER_STRING_MAX_LEN			300
    882 
    883 #define HAL_CTRL_EEPROMLESS_ENABLE_DEF          1
    884 #define HAL_CTRL_EEPROMLESS_ENABLE_MIN          0
    885 #define HAL_CTRL_EEPROMLESS_ENABLE_MAX          1
    886 
    887 /* Scanning Channel Values */
    888 #define MAX_CHAN_BITMAP_BYTES                   (26)
    889 
    890 #define MAX_CHANNEL_IN_BAND_2_4					14
    891 
    892 #define SCAN_CONTROL_TABLE_ENTRY_MIN            (0x00)
    893 #define SCAN_CONTROL_TABLE_ENTRY_MAX            (0xff)
    894 #define SCAN_CONTROL_TABLE_ENTRY_DEF            (0xff)
    895 
    896 /* country code reset time out */
    897 #define REGULATORY_DOMAIN_COUNTRY_TIME_RESET_MIN     (1000)       /* 1 sec   */
    898 #define REGULATORY_DOMAIN_COUNTRY_TIME_RESET_MAX     (1000000000) /* 11 days */
    899 #define REGULATORY_DOMAIN_COUNTRY_TIME_RESET_DEF     (60000)      /* 60 Sec  */
    900 
    901 /* d/h Enabling */
    902 
    903 #define MULTI_REGULATORY_DOMAIN_ENABLED_MIN     (FALSE) /* 802.11d */
    904 #define MULTI_REGULATORY_DOMAIN_ENABLED_MAX     (TRUE)
    905 #define MULTI_REGULATORY_DOMAIN_ENABLED_DEF     (FALSE)
    906 
    907 #define SPECTRUM_MANAGEMENT_ENABLED_MIN         (FALSE) /* 802.11h */
    908 #define SPECTRUM_MANAGEMENT_ENABLED_MAX         (TRUE)
    909 #define SPECTRUM_MANAGEMENT_ENABLED_DEF         (FALSE)
    910 
    911 /* Tx Power table (Power level to Dbm)*/
    912 #define TX_POWER_LEVEL_TABLE_24                 "21,13,10,7"
    913 #define TX_POWER_LEVEL_TABLE_5                  "20,12,9,6"
    914 
    915 /* Scan concentrator init parameters - default dwell time values for driver passive scan */
    916 #define SCAN_CNCN_DRIVER_DEFAULT_DWELL_TIME_DEF 200000
    917 #define SCAN_CNCN_DRIVER_DEFAULT_DWELL_TIME_MIN 10000
    918 #define SCAN_CNCN_DRIVER_DEFAULT_DWELL_TIME_MAX 500000
    919 
    920 #define SCAN_CNCN_MIN_DURATION_FOR_OID_SCANS_DEF 30
    921 #define SCAN_CNCN_MIN_DURATION_FOR_OID_SCANS_MIN 0
    922 #define SCAN_CNCN_MIN_DURATION_FOR_OID_SCANS_MAX 1000000
    923 
    924 /* Packet Filtering Define */
    925 #define MIN_NUM_OF_BEACONS_IN_BUFFER 1
    926 #define DEF_NUM_OF_BEACONS_IN_BUFFER 5
    927 #define MAX_NUM_OF_BEACONS_IN_BUFFER 10
    928 
    929 /* Soft Gemini Enabling */
    930 #define SOFT_GEMINI_ENABLED_MIN						(SG_ENABLE)
    931 #define SOFT_GEMINI_ENABLED_MAX						(SG_SENSE_NO_ACTIVITY) /* same as Auto*/
    932 #define SOFT_GEMINI_ENABLED_DEF						(SG_DISABLE)	/* we don't use SG_SENSE_ACTIVE*/
    933 
    934 #define SOFT_GEMINI_PARAMS_BT_HP_MAXTIME_MIN				(100)
    935 #define SOFT_GEMINI_PARAMS_BT_HP_MAXTIME_MAX				(15000)
    936 #define SOFT_GEMINI_PARAMS_BT_HP_MAXTIME_DEF				(2000)
    937 
    938 #define SOFT_GEMINI_PARAMS_WLAN_HP_MAX_TIME_MIN				(100)
    939 #define SOFT_GEMINI_PARAMS_WLAN_HP_MAX_TIME_MAX				(15000)
    940 #define SOFT_GEMINI_PARAMS_WLAN_HP_MAX_TIME_DEF				(5000)
    941 
    942 #define SOFT_GEMINI_PARAMS_SENSE_DISABLE_TIMER_MIN				(100)
    943 #define SOFT_GEMINI_PARAMS_SENSE_DISABLE_TIMER_MAX				(15000)
    944 #define SOFT_GEMINI_PARAMS_SENSE_DISABLE_TIMER_DEF				(1350)
    945 
    946 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_MIN				(10)
    947 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_MAX				(2300)
    948 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_DEF				(1500)
    949 
    950 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_MIN				(10)
    951 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_MAX				(2300)
    952 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_DEF				(1500)
    953 
    954 #define SOFT_GEMINI_PARAMS_TIMEOUT_NEXT_BT_LP_PACKET_MIN				(400)
    955 #define SOFT_GEMINI_PARAMS_TIMEOUT_NEXT_BT_LP_PACKET_MAX				(10000)
    956 #define SOFT_GEMINI_PARAMS_TIMEOUT_NEXT_BT_LP_PACKET_DEF				(3000)
    957 
    958 #define SOFT_GEMINI_PARAMS_SG_ANTENNA_TYPE_MIN				(0)
    959 #define SOFT_GEMINI_PARAMS_SG_ANTENNA_TYPE_MAX				(7)
    960 #define SOFT_GEMINI_PARAMS_SG_ANTENNA_TYPE_DEF				(0)
    961 
    962 #define SOFT_GEMINI_PARAMS_SIGNALING_TYPE_MIN				(0)
    963 #define SOFT_GEMINI_PARAMS_SIGNALING_TYPE_MAX				(3)
    964 #define SOFT_GEMINI_PARAMS_SIGNALING_TYPE_DEF				(1)
    965 
    966 #define SOFT_GEMINI_PARAMS_AFH_LEVERAGE_ON_MIN					(0)
    967 #define SOFT_GEMINI_PARAMS_AFH_LEVERAGE_ON_MAX					(2)
    968 #define SOFT_GEMINI_PARAMS_AFH_LEVERAGE_ON_DEF					(0)
    969 
    970 #define SOFT_GEMINI_PARAMS_NUMBER_QUIET_CYCLE_MIN		(0)
    971 #define SOFT_GEMINI_PARAMS_NUMBER_QUIET_CYCLE_MAX		(10)
    972 #define SOFT_GEMINI_PARAMS_NUMBER_QUIET_CYCLE_DEF		(0)
    973 
    974 #define SOFT_GEMINI_PARAMS_MAX_NUM_CTS_MIN			(0)
    975 #define SOFT_GEMINI_PARAMS_MAX_NUM_CTS_MAX			(10)
    976 #define SOFT_GEMINI_PARAMS_MAX_NUM_CTS_DEF			(3)
    977 
    978 #define SOFT_GEMINI_PARAMS_NUMBER_OF_WLAN_PACKETS_MIN			(1)
    979 #define SOFT_GEMINI_PARAMS_NUMBER_OF_WLAN_PACKETS_MAX			(10)
    980 #define SOFT_GEMINI_PARAMS_NUMBER_OF_WLAN_PACKETS_DEF			(2)
    981 
    982 #define SOFT_GEMINI_PARAMS_NUMBER_OF_BT_PACKETS_MIN			(2)
    983 #define SOFT_GEMINI_PARAMS_NUMBER_OF_BT_PACKETS_MAX			(10)
    984 #define SOFT_GEMINI_PARAMS_NUMBER_OF_BT_PACKETS_DEF			(2)
    985 
    986 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_FAST_MIN				(10)
    987 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_FAST_MAX				(20000)
    988 #define SOFT_GEMINI_PARAMS_PROTECTIVE_RX_TIME_FAST_DEF				(1500)
    989 
    990 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_FAST_MIN				(10)
    991 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_FAST_MAX				(20000)
    992 #define SOFT_GEMINI_PARAMS_PROTECTIVE_TX_TIME_FAST_DEF				(3000)
    993 
    994 #define SOFT_GEMINI_PARAMS_CYCLE_TIME_FAST_MIN				(2000)
    995 #define SOFT_GEMINI_PARAMS_CYCLE_TIME_FAST_MAX				(65535)
    996 #define SOFT_GEMINI_PARAMS_CYCLE_TIME_FAST_DEF				(8700)
    997 
    998 #define SOFT_GEMINI_PARAMS_RX_FOR_AVALANCHE_MIN			(1)
    999 #define SOFT_GEMINI_PARAMS_RX_FOR_AVALANCHE_MAX			(255)
   1000 #define SOFT_GEMINI_PARAMS_RX_FOR_AVALANCHE_DEF			(5)
   1001 
   1002 #define SOFT_GEMINI_PARAMS_ELP_HP_MIN			(0)
   1003 #define SOFT_GEMINI_PARAMS_ELP_HP_MAX			(1)
   1004 #define SOFT_GEMINI_PARAMS_ELP_HP_DEF			(0)
   1005 
   1006 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_PERIOD_MIN			(0)
   1007 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_PERIOD_MAX			(15000)
   1008 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_PERIOD_DEF			(500)
   1009 
   1010 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_NUM_CYCLE_MIN			(0)
   1011 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_NUM_CYCLE_MAX			(15)
   1012 #define SOFT_GEMINI_PARAMS_ANTI_STARVE_NUM_CYCLE_DEF			(4)
   1013 
   1014 #define SOFT_GEMINI_PARAMS_ALLOW_PA_SD_MIN			(0)
   1015 #define SOFT_GEMINI_PARAMS_ALLOW_PA_SD_MAX			(1)
   1016 #define SOFT_GEMINI_PARAMS_ALLOW_PA_SD_DEF			(1)
   1017 
   1018 #define SOFT_GEMINI_PARAMS_TIME_BEFORE_BEACON_MIN			(0)
   1019 #define SOFT_GEMINI_PARAMS_TIME_BEFORE_BEACON_MAX			(20000)
   1020 #define SOFT_GEMINI_PARAMS_TIME_BEFORE_BEACON_DEF			(6300)
   1021 
   1022 
   1023 #define SOFT_GEMINI_PARAMS_HPDM_MAX_TIME_MIN			(0)
   1024 #define SOFT_GEMINI_PARAMS_HPDM_MAX_TIME_MAX			(50000)
   1025 #define SOFT_GEMINI_PARAMS_HPDM_MAX_TIME_DEF			(1600)
   1026 
   1027 #define SOFT_GEMINI_PARAMS_TIME_OUT_NEXT_WLAN_MIN			(100)
   1028 #define SOFT_GEMINI_PARAMS_TIME_OUT_NEXT_WLAN_MAX			(50000)
   1029 #define SOFT_GEMINI_PARAMS_TIME_OUT_NEXT_WLAN_DEF			(2550)
   1030 
   1031 #define SOFT_GEMINI_PARAMS_AUTO_MODE_NO_CTS_MIN			(0)
   1032 #define SOFT_GEMINI_PARAMS_AUTO_MODE_NO_CTS_MAX			(1)
   1033 #define SOFT_GEMINI_PARAMS_AUTO_MODE_NO_CTS_DEF			(0)
   1034 
   1035 #define SOFT_GEMINI_PARAMS_BT_HP_RESPECTED_MIN			(0)
   1036 #define SOFT_GEMINI_PARAMS_BT_HP_RESPECTED_MAX			(20)
   1037 #define SOFT_GEMINI_PARAMS_BT_HP_RESPECTED_DEF			(3)
   1038 
   1039 #define SOFT_GEMINI_PARAMS_WLAN_RX_MIN_RATE_MIN			(0)
   1040 #define SOFT_GEMINI_PARAMS_WLAN_RX_MIN_RATE_MAX			(54)
   1041 #define SOFT_GEMINI_PARAMS_WLAN_RX_MIN_RATE_DEF			(24)
   1042 
   1043 
   1044 #define SOFT_GEMINI_PARAMS_ACK_MODE_MIN		            	(0)
   1045 #define SOFT_GEMINI_PARAMS_ACK_MODE_MAX		            	(1)
   1046 #define SOFT_GEMINI_PARAMS_ACK_MODE_DEF		            	(1)
   1047 
   1048 #define SOFT_GEMINI_SCAN_NUMBER_OF_PROBE_REQUEST_MIN		(0)
   1049 #define SOFT_GEMINI_SCAN_NUMBER_OF_PROBE_REQUEST_MAX		(255)
   1050 #define SOFT_GEMINI_SCAN_NUMBER_OF_PROBE_REQUEST_DEF		(8)
   1051 
   1052 #define SOFT_GEMINI_SCAN_COMPENSATION_PERCENT_MIN			(0)
   1053 #define SOFT_GEMINI_SCAN_COMPENSATION_PERCENT_MAX			(1000)
   1054 #define SOFT_GEMINI_SCAN_COMPENSATION_PERCENT_DEF			(50)
   1055 
   1056 #define SOFT_GEMINI_SCAN_COMPENSATION_MAX_TIME_MIN			(1)
   1057 #define SOFT_GEMINI_SCAN_COMPENSATION_MAX_TIME_MAX			(1000000)
   1058 #define SOFT_GEMINI_SCAN_COMPENSATION_MAX_TIME_DEF			(120000)
   1059 
   1060 #define SOFT_GEMINI_BSS_LOSS_COMPENSATION_PERCENT_MIN			(0)
   1061 #define SOFT_GEMINI_BSS_LOSS_COMPENSATION_PERCENT_MAX			(1000)
   1062 #define SOFT_GEMINI_BSS_LOSS_COMPENSATION_PERCENT_DEF			(100)
   1063 
   1064 #define WIFI_WMM_PS_MIN			(0)
   1065 #define WIFI_WMM_PS_MAX			(1)
   1066 #define WIFI_WMM_PS_DEF			(0)
   1067 
   1068 
   1069 /*  TX FLAGS    */
   1070 /*--------------*/
   1071 #define TX_DATA_MGMT_MSDU           0x0001
   1072 #define TX_DATA_DATA_MSDU           0x0002
   1073 #define TX_DATA_EAPOL_MSDU          0x0004
   1074 #define TX_DATA_NULL_MSDU           0x0008 /* used for sending null frame before and after measuring a non serving channel */
   1075 #define TX_DATA_MULTICAST_FRAME     0x0010
   1076 #define TX_DATA_FROM_OS             0x0020
   1077 #define TX_DATA_IAPP_MSDU           0x0040
   1078 #define TX_DATA_PS_POLL             0x0080
   1079 #define TX_DATA_ENCRYPT_MSDU        0x0100
   1080 
   1081 
   1082 /*  TX FLAGS for tx complete 2  - used for requesting txComplete*/
   1083 /*--------------*/
   1084 #define TX_DATA_USE_TX_COMPLETE     0x01 /* need only for TxComplete indication */
   1085 #define TX_DATA_DISCONNECT_TEST     0x02
   1086 #define TX_DATA_VO_SYNC_TRIG        0x04
   1087 #define TX_DATA_DISASSOC_SYNC_TRIG  0x08
   1088 #define TX_DATA_DEAUTH_SYNC_TRIG    0x10
   1089 
   1090 
   1091 
   1092 /* Structures definitions */
   1093 PACKED_STRUCT( rates_t,
   1094 
   1095     UINT8       len;
   1096     UINT8       ratesString[MAX_SUPPORTED_RATES];
   1097 );
   1098 
   1099 /* Configurable Scan Rate */
   1100 #define SCAN_RATE_MODE_B_MIN    (DRV_RATE_1M)
   1101 #define SCAN_RATE_MODE_B_MAX    (DRV_RATE_11M)
   1102 #define SCAN_RATE_MODE_B_DEF    (DRV_RATE_2M)
   1103 
   1104 #define SCAN_RATE_MODE_G_MIN    (DRV_RATE_1M)
   1105 #define SCAN_RATE_MODE_G_MAX    (DRV_RATE_54M)
   1106 #define SCAN_RATE_MODE_G_DEF    (DRV_RATE_2M)
   1107 
   1108 #define SCAN_RATE_MODE_A_MIN    (DRV_RATE_6M)
   1109 #define SCAN_RATE_MODE_A_MAX    (DRV_RATE_54M)
   1110 #define SCAN_RATE_MODE_A_DEF    (DRV_RATE_6M)
   1111 
   1112 /* Probe request number during scan */
   1113 #define SCAN_PROBE_REQ_NUMBER_MIN   1
   1114 #define SCAN_PROBE_REQ_NUMBER_MAX   7
   1115 #define SCAN_PROBE_REQ_NUMBER_DEF   3
   1116 
   1117 
   1118 /*****************************************************************************
   1119  **         POWER MANAGER MODULE REGISTRY DEFINITIONS                       **
   1120  *****************************************************************************/
   1121 /** \enum PowerMode_e */
   1122 /* MUST be sync with OS_802_11_POWER_PROFILE */
   1123 typedef enum
   1124 {
   1125     POWER_MODE_AUTO,        /**< In this mode the power manager module is toggle states
   1126                              * (ACTIVE, SHORT_DOZE and LONG_DOZE) by its own inner algorithm.
   1127                              */
   1128 
   1129     POWER_MODE_ACTIVE,      /**< In this mode there is no power save, the host interface & the radio
   1130                              * is always active. The TNET is constantly awake. This mode is used,
   1131                              * for example, when the device is powered from an AC power source,
   1132                              * and provides maximum throughput and minimal latency.
   1133                              */
   1134 
   1135     POWER_MODE_SHORT_DOZE,  /**< In this mode the system is going to ELP state and awakes (by the
   1136                              * FW) every beacon. The F/W wakes up the host on every Beacon passes
   1137                              * the Beacon to the driver and returns to ELP Doze as soon as possible.
   1138                              */
   1139 
   1140     POWER_MODE_LONG_DOZE,    /**< In this mode the system is going to ELP state and awakes (by the
   1141                              * FW) every DTIM or listen interval. This mode consumes low power,
   1142                              * while still waking-up for Beacons once in a while. The system spends
   1143                              * a lot of time in ELP-Doze, and the F/W rarely wakes up the host.
   1144                              */
   1145 
   1146     POWER_MODE_PS_ONLY,     /**< In this mode the system is setting the Ps as ON.
   1147 							 * the ELP state is changing to SHORT or LONG DOZE (According to last configuration).
   1148 							 * Auto mode won't be used here.
   1149                              */
   1150 
   1151     POWER_MODE_MAX
   1152 }PowerMgr_PowerMode_e;
   1153 
   1154 
   1155 /** \enum PowerMgr_Priority_e */
   1156 typedef enum
   1157 {
   1158     POWER_MANAGER_USER_PRIORITY,           /**< indicates the default user priority. */
   1159     POWER_MANAGER_SG_PRIORITY,             /**< Indicate the Soft Gemini priority */
   1160     POWER_MANAGER_PS_POLL_FAILURE_PRIORITY,/**< After receiving the PsPoll failure event */
   1161     POWER_MANAGER_MAX_PRIORITY
   1162 }PowerMgr_Priority_e;
   1163 
   1164 
   1165 enum PowerMgr_registryDefinitions
   1166 {
   1167     POWER_MODE_MIN_VALUE = POWER_MODE_AUTO,
   1168     POWER_MODE_MAX_VALUE = POWER_MODE_LONG_DOZE,
   1169     POWER_MODE_DEF_VALUE = POWER_MODE_AUTO,
   1170 
   1171     BEACON_RECEIVE_TIME_MIN_VALUE = 10,
   1172     BEACON_RECEIVE_TIME_MAX_VALUE = 1000,
   1173     BEACON_RECEIVE_TIME_DEF_VALUE = 50,
   1174 
   1175     BASE_BAND_WAKE_UP_TIME_MIN_VALUE = 100,      /* in micro seconds */
   1176     BASE_BAND_WAKE_UP_TIME_MAX_VALUE = 10000,
   1177     BASE_BAND_WAKE_UP_TIME_DEF_VALUE = 2000,
   1178 
   1179     PLL_LOCK_TIME_MIN_VALUE = 500,
   1180     PLL_LOCK_TIME_MAX_VALUE = 20000,
   1181     PLL_LOCK_TIME_DEF_VALUE = 4000,
   1182 
   1183     HANGOVER_PERIOD_MIN_VALUE = 5,
   1184     HANGOVER_PERIOD_MAX_VALUE = 255,
   1185     HANGOVER_PERIOD_DEF_VALUE = 5,
   1186 
   1187     BEACON_LISTEN_INTERVAL_MIN_VALUE = 1,
   1188     BEACON_LISTEN_INTERVAL_MAX_VALUE = 50,
   1189     BEACON_LISTEN_INTERVAL_DEF_VALUE = 1,
   1190 
   1191     DTIM_LISTEN_INTERVAL_MIN_VALUE = 1,
   1192     DTIM_LISTEN_INTERVAL_MAX_VALUE = 50,
   1193     DTIM_LISTEN_INTERVAL_DEF_VALUE = 1,
   1194 
   1195     BEACON_FILTERING_MIN_VALUE = 0,
   1196     BEACON_FILTERING_MAX_VALUE = 30,
   1197     BEACON_FILTERING_DEF_VALUE = 10,
   1198 
   1199     N_CONSECUTIVE_BEACONS_MISSED_MIN_VALUE = 0,
   1200     N_CONSECUTIVE_BEACONS_MISSED_MAX_VALUE = 50,
   1201     N_CONSECUTIVE_BEACONS_MISSED_DEF_VALUE = 1,
   1202 
   1203     ENTER_TO_802_11_POWER_SAVE_RETRIES_MIN_VALUE = 0,
   1204     ENTER_TO_802_11_POWER_SAVE_RETRIES_MAX_VALUE = 50,
   1205     ENTER_TO_802_11_POWER_SAVE_RETRIES_DEF_VALUE = 5,
   1206 
   1207     AUTO_POWER_MODE_INTERVAL_MIN_VALUE = 100,
   1208     AUTO_POWER_MODE_INTERVAL_MAX_VALUE = 30000,
   1209     AUTO_POWER_MODE_INTERVAL_DEF_VALUE = 1000,
   1210 
   1211     AUTO_POWER_MODE_ACTIVE_TH_MIN_VALUE = 2,
   1212     AUTO_POWER_MODE_ACTIVE_TH_MAX_VALUE = 30000,
   1213     AUTO_POWER_MODE_ACTIVE_TH_DEF_VALUE = 15,
   1214 
   1215     AUTO_POWER_MODE_DOZE_TH_MIN_VALUE = 1,
   1216     AUTO_POWER_MODE_DOZE_TH_MAX_VALUE = 30000,
   1217     AUTO_POWER_MODE_DOZE_TH_DEF_VALUE = 8,
   1218 
   1219     AUTO_POWER_MODE_DOZE_MODE_MIN_VALUE = POWER_MODE_SHORT_DOZE,
   1220     AUTO_POWER_MODE_DOZE_MODE_MAX_VALUE = POWER_MODE_LONG_DOZE,
   1221     AUTO_POWER_MODE_DOZE_MODE_DEF_VALUE = POWER_MODE_LONG_DOZE,
   1222 
   1223     DEFAULT_POWER_LEVEL_MIN_VALUE = POWERAUTHO_POLICY_ELP,
   1224     DEFAULT_POWER_LEVEL_MAX_VALUE = POWERAUTHO_POLICY_AWAKE,
   1225     DEFAULT_POWER_LEVEL_DEF_VALUE = POWERAUTHO_POLICY_ELP,
   1226 
   1227 	PS_POWER_LEVEL_MIN_VALUE = POWERAUTHO_POLICY_ELP,
   1228    	PS_POWER_LEVEL_MAX_VALUE = POWERAUTHO_POLICY_AWAKE,
   1229     PS_POWER_LEVEL_DEF_VALUE = POWERAUTHO_POLICY_ELP,
   1230 
   1231 	POWER_MGMNT_MODE_DEF_VALUE = 1,
   1232     POWER_MGMNT_MODE_MIN_VALUE = 0,
   1233     POWER_MGMNT_MODE_MAX_VALUE = 1,
   1234 
   1235 	POWER_MGMNT_NEED_TO_SEND_NULL_PACKET_DEF_VALUE = 1,
   1236     POWER_MGMNT_NEED_TO_SEND_NULL_PACKET_MIN_VALUE = 0,
   1237     POWER_MGMNT_NEED_TO_SEND_NULL_PACKET_MAX_VALUE = 1,
   1238 
   1239 	/*
   1240 	 bit14 - "1" send Prob Request in PBCC
   1241 	 bit15 - "1" short preamble, "0" long preammle
   1242 	 bit0:bit12  Rates
   1243 	 */
   1244 	POWER_MGMNT_NULL_PACKET_RATE_MOD_DEF_VALUE =  ((1<<DRV_RATE_1M) | (1<<DRV_RATE_2M)),
   1245     POWER_MGMNT_NULL_PACKET_RATE_MOD_MIN_VALUE = 0,
   1246     POWER_MGMNT_NULL_PACKET_RATE_MOD_MAX_VALUE = 255 ,
   1247 
   1248 	POWER_MGMNT_NUM_NULL_PACKET_RETRY_DEF_VALUE = 5,
   1249     POWER_MGMNT_NUM_NULL_PACKET_RETRY_MIN_VALUE = 1,
   1250     POWER_MGMNT_NUM_NULL_PACKET_RETRY_MAX_VALUE = 255,
   1251 };
   1252 
   1253 /*****************************************************************************
   1254  **         END POWER MANAGER MODULE REGISTRY DEFINITIONS                   **
   1255  *****************************************************************************/
   1256 
   1257 
   1258 typedef enum
   1259 {
   1260     ERP_PROTECTION_NONE       = 0,
   1261     ERP_PROTECTION_STANDARD   = 1,
   1262     ERP_PROTECTION_TI_TRICK   = 2
   1263 } erpProtectionType_e;
   1264 
   1265 
   1266 #endif /* _CORE_DEFAULT_PARAMS_H */
   1267