Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2011-2015 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
| 28 | /* |
| 29 | * |
| 30 | * Author: Sandesh Goel |
| 31 | * Date: 02/09/03 |
| 32 | * History:- |
| 33 | * 04/09/02 Created. |
| 34 | * -------------------------------------------------------------------- |
| 35 | * |
| 36 | */ |
| 37 | |
| 38 | #ifndef __CFGGLOBAL_H |
| 39 | #define __CFGGLOBAL_H |
| 40 | |
| 41 | #include "sir_common.h" |
| 42 | #include "sir_types.h" |
| 43 | #include "wni_cfg.h" |
| 44 | |
| 45 | #define CFG_MAX_NUM_STA SIR_MAX_NUM_STA_IN_IBSS |
| 46 | |
| 47 | #define CFG_MAX_STATIC_STRING 70 |
| 48 | /* as the number of channels grows, 128 is not big enough */ |
| 49 | #define CFG_MAX_STR_LEN 256 |
| 50 | |
| 51 | /*--------------------------------------------------------------------*/ |
| 52 | /* Configuration Control Structure */ |
| 53 | /*--------------------------------------------------------------------*/ |
| 54 | typedef struct { |
| 55 | uint32_t control; |
| 56 | } tCfgCtl; |
| 57 | |
| 58 | |
| 59 | typedef struct sAniSirCfgStaticString { |
| 60 | uint16_t cfgId; |
| 61 | uint8_t maxLen; |
| 62 | uint8_t length; |
| 63 | uint8_t data[255]; |
| 64 | } cfgstatic_string; |
| 65 | |
| 66 | typedef struct sAniSirCfgStatic { |
| 67 | uint16_t cfgId; |
| 68 | uint32_t control; |
| 69 | uint32_t cfgIMin; |
| 70 | uint32_t cfgIMax; |
| 71 | uint32_t cfgIVal; |
| 72 | void *pStrData; |
| 73 | } cgstatic; |
| 74 | |
| 75 | typedef struct sAniSirCfg { |
| 76 | /* CFG module status */ |
| 77 | uint8_t gCfgStatus; |
| 78 | |
| 79 | tCfgCtl *gCfgEntry; |
| 80 | uint32_t *gCfgIBufMin; |
| 81 | uint32_t *gCfgIBufMax; |
| 82 | uint32_t *gCfgIBuf; |
| 83 | uint8_t *gCfgSBuf; |
| 84 | |
| 85 | uint16_t gCfgMaxIBufSize; |
| 86 | uint16_t gCfgMaxSBufSize; |
| 87 | |
| 88 | /* Static buffer for string parameter (must be word-aligned) */ |
| 89 | uint8_t *gSBuffer; |
| 90 | |
| 91 | /* Message param list buffer (enough for largest possible response) */ |
| 92 | uint32_t *gParamList; |
| 93 | } tAniSirCfg, *tpAniSirCfg; |
| 94 | |
| 95 | #endif |