Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /** |
| 20 | * DOC: This file contains centralized definitions of converged configuration. |
| 21 | */ |
| 22 | |
| 23 | #ifndef __CFG_MLME_HT_CAPS_H |
| 24 | #define __CFG_MLME_HT_CAPS_H |
| 25 | |
| 26 | /* |
| 27 | * <ini> |
| 28 | * gTxLdpcEnable - Config Param to enable Tx LDPC capability |
| 29 | * @Min: 0 |
| 30 | * @Max: 3 |
| 31 | * @Default: 3 |
| 32 | * |
| 33 | * This ini is used to enable/disable Tx LDPC capability |
| 34 | * 0 - disable |
| 35 | * 1 - HT LDPC enable |
| 36 | * 2 - VHT LDPC enable |
| 37 | * 3 - HT & VHT LDPC enable |
| 38 | * |
| 39 | * Related: STA/SAP/P2P/IBSS/NAN. |
| 40 | * |
| 41 | * Supported Feature: Concurrency/Standalone |
| 42 | * |
| 43 | * Usage: Internal/External |
| 44 | * |
| 45 | * </ini> |
| 46 | */ |
| 47 | #define CFG_TX_LDPC_ENABLE CFG_INI_UINT( \ |
| 48 | "gTxLdpcEnable", \ |
| 49 | 0, \ |
| 50 | 3, \ |
| 51 | 3, \ |
| 52 | CFG_VALUE_OR_DEFAULT, \ |
| 53 | "Tx LDPC capability") |
| 54 | |
| 55 | /* |
| 56 | * <ini> |
| 57 | * gEnableRXLDPC - Config Param to enable Rx LDPC capability |
| 58 | * @Min: 0 |
| 59 | * @Max: 1 |
| 60 | * @Default: 0 |
| 61 | * |
| 62 | * This ini is used to enable/disable Rx LDPC capability |
| 63 | * 0 - disable Rx LDPC |
| 64 | * 1 - enable Rx LDPC |
| 65 | * |
| 66 | * Related: STA/SAP/P2P/IBSS/NAN. |
| 67 | * |
| 68 | * Supported Feature: Concurrency/Standalone |
| 69 | * |
| 70 | * Usage: Internal/External |
| 71 | * |
| 72 | * </ini> |
| 73 | */ |
| 74 | #define CFG_RX_LDPC_ENABLE CFG_INI_BOOL( \ |
| 75 | "gEnableRXLDPC", \ |
| 76 | 0, \ |
| 77 | "Rx LDPC capability") |
| 78 | |
| 79 | /* |
| 80 | * <ini> |
| 81 | * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode |
| 82 | * @Min: 0 |
| 83 | * @Max: 1 |
| 84 | * @Default: 0 |
| 85 | * |
| 86 | * This ini is used to set default Tx STBC capability |
| 87 | * |
| 88 | * Related: None |
| 89 | * |
| 90 | * Supported Feature: STA |
| 91 | * |
| 92 | * Usage: Internal/External |
| 93 | * |
| 94 | * </ini> |
| 95 | */ |
| 96 | #define CFG_TX_STBC_ENABLE CFG_INI_BOOL( \ |
| 97 | "gEnableTXSTBC", \ |
| 98 | 0, \ |
| 99 | "Tx STBC capability") |
| 100 | |
| 101 | /* |
| 102 | * <ini> |
| 103 | * gEnableRXSTBC - Enables/disables Rx STBC capability in STA mode |
| 104 | * @Min: 0 |
| 105 | * @Max: 1 |
| 106 | * @Default: 1 |
| 107 | * |
| 108 | * This ini is used to set default Rx STBC capability |
| 109 | * |
| 110 | * Related: None |
| 111 | * |
| 112 | * Supported Feature: STA |
| 113 | * |
| 114 | * Usage: Internal/External |
| 115 | * |
| 116 | * </ini> |
| 117 | */ |
| 118 | #define CFG_RX_STBC_ENABLE CFG_INI_BOOL( \ |
| 119 | "gEnableRXSTBC", \ |
| 120 | 1, \ |
| 121 | "Rx STBC capability") |
| 122 | |
| 123 | /* |
| 124 | * <ini> |
| 125 | * gShortGI20Mhz - Short Guard Interval for HT20 |
| 126 | * @Min: 0 |
| 127 | * @Max: 1 |
| 128 | * @Default: 1 |
| 129 | * |
| 130 | * This ini is used to set default short interval for HT20 |
| 131 | * |
| 132 | * Related: None |
| 133 | * |
| 134 | * Supported Feature: STA |
| 135 | * |
| 136 | * Usage: Internal/External |
| 137 | * |
| 138 | * </ini> |
| 139 | */ |
| 140 | #define CFG_SHORT_GI_20MHZ CFG_INI_BOOL( \ |
| 141 | "gShortGI20Mhz", \ |
| 142 | 1, \ |
| 143 | "Short Guard Interval for HT20") |
| 144 | |
| 145 | /* |
| 146 | * <ini> |
| 147 | * gShortGI40Mhz - It will check gShortGI20Mhz and |
| 148 | * gShortGI40Mhz from session entry |
| 149 | * @Min: 0 |
| 150 | * @Max: 1 |
| 151 | * @Default: 1 |
| 152 | * |
| 153 | * This ini is used to set default gShortGI40Mhz |
| 154 | * |
| 155 | * Related: None |
| 156 | * |
| 157 | * Supported Feature: STA |
| 158 | * |
| 159 | * Usage: Internal/External |
| 160 | * |
| 161 | * </ini> |
| 162 | */ |
| 163 | #define CFG_SHORT_GI_40MHZ CFG_INI_BOOL( \ |
| 164 | "gShortGI40Mhz", \ |
| 165 | 1, \ |
| 166 | "Short Guard Interval for HT40") |
| 167 | |
| 168 | #define CFG_HT_CAP_INFO CFG_UINT( \ |
| 169 | "ht_cap_info", \ |
| 170 | 0, \ |
| 171 | 65535, \ |
| 172 | 364, \ |
| 173 | CFG_VALUE_OR_DEFAULT, \ |
| 174 | "HT cap info") |
| 175 | |
| 176 | #define CFG_HT_CAPS_ALL \ |
| 177 | CFG(CFG_HT_CAP_INFO) \ |
| 178 | CFG(CFG_TX_LDPC_ENABLE) \ |
| 179 | CFG(CFG_RX_LDPC_ENABLE) \ |
| 180 | CFG(CFG_TX_STBC_ENABLE) \ |
| 181 | CFG(CFG_RX_STBC_ENABLE) \ |
| 182 | CFG(CFG_SHORT_GI_20MHZ) \ |
| 183 | CFG(CFG_SHORT_GI_40MHZ) |
| 184 | |
| 185 | #endif /* __CFG_MLME_HT_CAPS_H */ |