Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 1 | /* |
Hangtian Zhu | 9a28ed0 | 2019-09-24 12:18:20 +0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. |
Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 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_DFS_H |
| 24 | #define __CFG_MLME_DFS_H |
| 25 | |
| 26 | /* |
| 27 | * <ini> |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 28 | * gsap_tx_leakage_threshold - sap tx leakage threshold |
| 29 | * @Min: 100 |
| 30 | * @Max: 1000 |
| 31 | * @Default: 310 |
| 32 | * |
| 33 | * customer can set this value from 100 to 1000 which means |
| 34 | * sap tx leakage threshold is -10db to -100db |
| 35 | * |
| 36 | * Related: none |
| 37 | * |
| 38 | * Usage: External |
| 39 | * |
| 40 | * </ini> |
| 41 | */ |
| 42 | #define CFG_SAP_TX_LEAKAGE_THRESHOLD CFG_INI_UINT( \ |
| 43 | "gsap_tx_leakage_threshold", \ |
| 44 | 100, \ |
| 45 | 1000, \ |
| 46 | 310, \ |
| 47 | CFG_VALUE_OR_DEFAULT, \ |
| 48 | "sap tx leakage threshold") |
| 49 | |
| 50 | /* |
| 51 | * <ini> |
Hangtian Zhu | 9a28ed0 | 2019-09-24 12:18:20 +0800 | [diff] [blame^] | 52 | * gDFSradarMappingPriMultiplier - dfs pri multiplier |
| 53 | * @Min: 1 |
| 54 | * @Max: 10 |
| 55 | * @Default: 2 |
| 56 | * |
| 57 | * customer can set this value from 1 to 10 which means |
| 58 | * host could handle missing pulses while there is high |
| 59 | * channel loading, for example: 30% ETSI and 50% Japan W53 |
| 60 | * |
| 61 | * Related: none |
| 62 | * |
| 63 | * Usage: External |
| 64 | * |
| 65 | * </ini> |
| 66 | */ |
| 67 | #define CFG_DFS_RADAR_PRI_MULTIPLIER CFG_INI_UINT( \ |
| 68 | "gDFSradarMappingPriMultiplier", \ |
| 69 | 1, \ |
| 70 | 10, \ |
| 71 | 2, \ |
| 72 | CFG_VALUE_OR_DEFAULT, \ |
| 73 | "dfs pri multiplier") |
| 74 | |
| 75 | /* |
| 76 | * <ini> |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 77 | * gDfsBeaconTxEnhanced - beacon tx enhanced |
| 78 | * @Min: 0 |
| 79 | * @Max: 1 |
| 80 | * @Default: 0 |
| 81 | * |
| 82 | * This ini is used to enhance dfs beacon tx |
| 83 | * |
| 84 | * Related: none |
| 85 | * |
| 86 | * Usage: External |
| 87 | * |
| 88 | * </ini> |
| 89 | */ |
| 90 | #define CFG_DFS_BEACON_TX_ENHANCED CFG_INI_BOOL( \ |
| 91 | "gDfsBeaconTxEnhanced", \ |
| 92 | 0, \ |
| 93 | "beacon tx enhanced") |
| 94 | |
| 95 | /* |
| 96 | * <ini> |
| 97 | * gPreferNonDfsChanOnRadar - During random channel selection prefer non dfs |
| 98 | * @Min: 0 |
| 99 | * @Max: 1 |
| 100 | * @Default: 0 |
| 101 | * |
| 102 | * During random channel selection prefer non dfs. |
| 103 | * |
| 104 | * Related: none |
| 105 | * |
| 106 | * Usage: External |
| 107 | * |
| 108 | * </ini> |
| 109 | */ |
| 110 | #define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR CFG_INI_BOOL( \ |
| 111 | "gPreferNonDfsChanOnRadar", \ |
| 112 | 0, \ |
| 113 | "channel selection prefer non dfs") |
| 114 | |
| 115 | /* |
| 116 | * <ini> |
| 117 | * dfsPhyerrFilterOffload - Enable dfs phyerror filtering offload in FW |
| 118 | * @Min: 0 |
| 119 | * @Max: 1 |
| 120 | * @Default: 0 |
| 121 | * |
| 122 | * This ini is used to to enable dfs phyerror filtering offload to firmware |
| 123 | * Enabling it will cause basic phy error to be discarding in firmware. |
| 124 | * Related: NA. |
| 125 | * |
| 126 | * Supported Feature: DFS |
| 127 | * |
| 128 | * Usage: Internal/External |
| 129 | * |
| 130 | * </ini> |
| 131 | */ |
| 132 | #define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD CFG_INI_BOOL( \ |
| 133 | "dfsPhyerrFilterOffload", \ |
| 134 | 0, \ |
| 135 | "dfs phyerror filtering offload") |
| 136 | |
| 137 | /* |
| 138 | * <ini> |
| 139 | * gIgnoreCAC - Used to ignore CAC |
| 140 | * @Min: 0 |
| 141 | * @Max: 1 |
| 142 | * @Default: 0 |
| 143 | * |
| 144 | * This ini is used to set default CAC |
| 145 | * |
| 146 | * Related: None |
| 147 | * |
| 148 | * Supported Feature: DFS |
| 149 | * |
| 150 | * Usage: Internal/External |
| 151 | * |
| 152 | * </ini> |
| 153 | */ |
| 154 | #define CFG_IGNORE_CAC CFG_INI_BOOL( \ |
| 155 | "gIgnoreCAC", \ |
| 156 | 0, \ |
| 157 | "ignore CAC on DFS channel") |
| 158 | |
| 159 | /* |
| 160 | * <ini> |
| 161 | * gDisableDFSChSwitch - Disable channel switch if radar is found |
| 162 | * @Min: 0 |
| 163 | * @Max: 1 |
| 164 | * @Default: 0 |
| 165 | * |
| 166 | * This ini is used to disable channel switch if radar is found |
| 167 | * on that channel. |
| 168 | * Related: NA. |
| 169 | * |
| 170 | * Supported Feature: DFS |
| 171 | * |
| 172 | * Usage: Internal |
| 173 | * |
| 174 | * </ini> |
| 175 | */ |
| 176 | #define CFG_DISABLE_DFS_CH_SWITCH CFG_INI_BOOL( \ |
| 177 | "gDisableDFSChSwitch", \ |
| 178 | 0, \ |
| 179 | "Disable channel switch on radar") |
| 180 | |
| 181 | /* |
| 182 | * <ini> |
Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 183 | * gEnableDFSMasterCap - Enable DFS master capability |
| 184 | * @Min: 0 |
| 185 | * @Max: 1 |
| 186 | * @Default: 0 |
| 187 | * |
| 188 | * This ini is used to enable/disable the DFS master capability. |
| 189 | * Disabling it will cause driver to not advertise the spectrum |
| 190 | * management capability |
| 191 | * Related: NA. |
| 192 | * |
| 193 | * upported Feature: DFS |
| 194 | * |
| 195 | * Usage: Internal/External |
| 196 | * |
| 197 | * </ini> |
| 198 | */ |
| 199 | #define CFG_ENABLE_DFS_MASTER_CAPABILITY CFG_INI_BOOL( \ |
| 200 | "gEnableDFSMasterCap", \ |
| 201 | 0, \ |
| 202 | "DFS master mode capability") |
| 203 | |
Arif Hussain | 0b634b4 | 2018-12-20 16:03:18 -0800 | [diff] [blame] | 204 | /* |
| 205 | * <ini> |
| 206 | * gDisableDfsJapanW53 - Block W53 channels in random channel selection |
| 207 | * @Min: 0 |
| 208 | * @Max: 1 |
| 209 | * @Default: 0 |
| 210 | * |
| 211 | * This ini is used to block W53 Japan channel in random channel selection |
| 212 | * |
| 213 | * Related: none |
| 214 | * |
| 215 | * Supported Feature: DFS |
| 216 | * |
| 217 | * Usage: External |
| 218 | * |
| 219 | * </ini> |
| 220 | */ |
| 221 | #define CFG_DISABLE_DFS_JAPAN_W53 CFG_INI_BOOL( \ |
| 222 | "gDisableDfsJapanW53", \ |
| 223 | 0, \ |
| 224 | "Block W53 channels in random selection") |
| 225 | |
Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 226 | #define CFG_DFS_ALL \ |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 227 | CFG(CFG_IGNORE_CAC) \ |
| 228 | CFG(CFG_DISABLE_DFS_CH_SWITCH) \ |
| 229 | CFG(CFG_DFS_BEACON_TX_ENHANCED) \ |
| 230 | CFG(CFG_SAP_TX_LEAKAGE_THRESHOLD) \ |
Hangtian Zhu | 9a28ed0 | 2019-09-24 12:18:20 +0800 | [diff] [blame^] | 231 | CFG(CFG_DFS_RADAR_PRI_MULTIPLIER) \ |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 232 | CFG(CFG_ENABLE_NON_DFS_CHAN_ON_RADAR) \ |
| 233 | CFG(CFG_ENABLE_DFS_MASTER_CAPABILITY) \ |
Arif Hussain | 0b634b4 | 2018-12-20 16:03:18 -0800 | [diff] [blame] | 234 | CFG(CFG_DISABLE_DFS_JAPAN_W53) \ |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 235 | CFG(CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD) |
Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 236 | |
| 237 | #endif /* __CFG_MLME_DFS_H */ |