1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name /** 21*5113495bSYour Name * DOC: This file contains centralized definitions of converged configuration. 22*5113495bSYour Name */ 23*5113495bSYour Name 24*5113495bSYour Name #ifndef __CFG_MLME_DFS_H 25*5113495bSYour Name #define __CFG_MLME_DFS_H 26*5113495bSYour Name 27*5113495bSYour Name /* 28*5113495bSYour Name * <ini> 29*5113495bSYour Name * gsap_tx_leakage_threshold - sap tx leakage threshold 30*5113495bSYour Name * @Min: 100 31*5113495bSYour Name * @Max: 1000 32*5113495bSYour Name * @Default: 310 33*5113495bSYour Name * 34*5113495bSYour Name * customer can set this value from 100 to 1000 which means 35*5113495bSYour Name * sap tx leakage threshold is -10db to -100db 36*5113495bSYour Name * 37*5113495bSYour Name * Related: none 38*5113495bSYour Name * 39*5113495bSYour Name * Usage: External 40*5113495bSYour Name * 41*5113495bSYour Name * </ini> 42*5113495bSYour Name */ 43*5113495bSYour Name #define CFG_SAP_TX_LEAKAGE_THRESHOLD CFG_INI_UINT( \ 44*5113495bSYour Name "gsap_tx_leakage_threshold", \ 45*5113495bSYour Name 100, \ 46*5113495bSYour Name 1000, \ 47*5113495bSYour Name 310, \ 48*5113495bSYour Name CFG_VALUE_OR_DEFAULT, \ 49*5113495bSYour Name "sap tx leakage threshold") 50*5113495bSYour Name 51*5113495bSYour Name /* 52*5113495bSYour Name * <ini> 53*5113495bSYour Name * gDFSradarMappingPriMultiplier - dfs pri multiplier 54*5113495bSYour Name * @Min: 1 55*5113495bSYour Name * @Max: 10 56*5113495bSYour Name * @Default: 2 57*5113495bSYour Name * 58*5113495bSYour Name * customer can set this value from 1 to 10 which means 59*5113495bSYour Name * host could handle missing pulses while there is high 60*5113495bSYour Name * channel loading, for example: 30% ETSI and 50% Japan W53 61*5113495bSYour Name * 62*5113495bSYour Name * Related: none 63*5113495bSYour Name * 64*5113495bSYour Name * Usage: External 65*5113495bSYour Name * 66*5113495bSYour Name * </ini> 67*5113495bSYour Name */ 68*5113495bSYour Name #define CFG_DFS_RADAR_PRI_MULTIPLIER CFG_INI_UINT( \ 69*5113495bSYour Name "gDFSradarMappingPriMultiplier", \ 70*5113495bSYour Name 1, \ 71*5113495bSYour Name 10, \ 72*5113495bSYour Name 2, \ 73*5113495bSYour Name CFG_VALUE_OR_DEFAULT, \ 74*5113495bSYour Name "dfs pri multiplier") 75*5113495bSYour Name 76*5113495bSYour Name /* 77*5113495bSYour Name * <ini> 78*5113495bSYour Name * gDfsBeaconTxEnhanced - beacon tx enhanced 79*5113495bSYour Name * @Min: 0 80*5113495bSYour Name * @Max: 1 81*5113495bSYour Name * @Default: 0 82*5113495bSYour Name * 83*5113495bSYour Name * This ini is used to enhance dfs beacon tx 84*5113495bSYour Name * 85*5113495bSYour Name * Related: none 86*5113495bSYour Name * 87*5113495bSYour Name * Usage: External 88*5113495bSYour Name * 89*5113495bSYour Name * </ini> 90*5113495bSYour Name */ 91*5113495bSYour Name #define CFG_DFS_BEACON_TX_ENHANCED CFG_INI_BOOL( \ 92*5113495bSYour Name "gDfsBeaconTxEnhanced", \ 93*5113495bSYour Name 0, \ 94*5113495bSYour Name "beacon tx enhanced") 95*5113495bSYour Name 96*5113495bSYour Name /* 97*5113495bSYour Name * <ini> 98*5113495bSYour Name * gPreferNonDfsChanOnRadar - During random channel selection prefer non dfs 99*5113495bSYour Name * @Min: 0 100*5113495bSYour Name * @Max: 1 101*5113495bSYour Name * @Default: 0 102*5113495bSYour Name * 103*5113495bSYour Name * During random channel selection prefer non dfs. 104*5113495bSYour Name * 105*5113495bSYour Name * Related: none 106*5113495bSYour Name * 107*5113495bSYour Name * Usage: External 108*5113495bSYour Name * 109*5113495bSYour Name * </ini> 110*5113495bSYour Name */ 111*5113495bSYour Name #define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR CFG_INI_BOOL( \ 112*5113495bSYour Name "gPreferNonDfsChanOnRadar", \ 113*5113495bSYour Name 0, \ 114*5113495bSYour Name "channel selection prefer non dfs") 115*5113495bSYour Name 116*5113495bSYour Name /* 117*5113495bSYour Name * <ini> 118*5113495bSYour Name * dfsPhyerrFilterOffload - Enable dfs phyerror filtering offload in FW 119*5113495bSYour Name * @Min: 0 120*5113495bSYour Name * @Max: 1 121*5113495bSYour Name * @Default: 0 122*5113495bSYour Name * 123*5113495bSYour Name * This ini is used to to enable dfs phyerror filtering offload to firmware 124*5113495bSYour Name * Enabling it will cause basic phy error to be discarding in firmware. 125*5113495bSYour Name * Related: NA. 126*5113495bSYour Name * 127*5113495bSYour Name * Supported Feature: DFS 128*5113495bSYour Name * 129*5113495bSYour Name * Usage: External 130*5113495bSYour Name * 131*5113495bSYour Name * </ini> 132*5113495bSYour Name */ 133*5113495bSYour Name #define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD CFG_INI_BOOL( \ 134*5113495bSYour Name "dfsPhyerrFilterOffload", \ 135*5113495bSYour Name 0, \ 136*5113495bSYour Name "dfs phyerror filtering offload") 137*5113495bSYour Name 138*5113495bSYour Name /* 139*5113495bSYour Name * <ini> 140*5113495bSYour Name * gIgnoreCAC - Used to ignore CAC 141*5113495bSYour Name * @Min: 0 142*5113495bSYour Name * @Max: 1 143*5113495bSYour Name * @Default: 0 144*5113495bSYour Name * 145*5113495bSYour Name * This ini is used to set default CAC 146*5113495bSYour Name * 147*5113495bSYour Name * Related: None 148*5113495bSYour Name * 149*5113495bSYour Name * Supported Feature: DFS 150*5113495bSYour Name * 151*5113495bSYour Name * Usage: External 152*5113495bSYour Name * 153*5113495bSYour Name * </ini> 154*5113495bSYour Name */ 155*5113495bSYour Name #define CFG_IGNORE_CAC CFG_INI_BOOL( \ 156*5113495bSYour Name "gIgnoreCAC", \ 157*5113495bSYour Name 0, \ 158*5113495bSYour Name "ignore CAC on DFS channel") 159*5113495bSYour Name 160*5113495bSYour Name /* 161*5113495bSYour Name * <ini> 162*5113495bSYour Name * gDisableDFSChSwitch - Disable channel switch if radar is found 163*5113495bSYour Name * @Min: 0 164*5113495bSYour Name * @Max: 1 165*5113495bSYour Name * @Default: 0 166*5113495bSYour Name * 167*5113495bSYour Name * This ini is used to disable channel switch if radar is found 168*5113495bSYour Name * on that channel. 169*5113495bSYour Name * Related: NA. 170*5113495bSYour Name * 171*5113495bSYour Name * Supported Feature: DFS 172*5113495bSYour Name * 173*5113495bSYour Name * Usage: Internal 174*5113495bSYour Name * 175*5113495bSYour Name * </ini> 176*5113495bSYour Name */ 177*5113495bSYour Name #define CFG_DISABLE_DFS_CH_SWITCH CFG_INI_BOOL( \ 178*5113495bSYour Name "gDisableDFSChSwitch", \ 179*5113495bSYour Name 0, \ 180*5113495bSYour Name "Disable channel switch on radar") 181*5113495bSYour Name 182*5113495bSYour Name /* 183*5113495bSYour Name * <ini> 184*5113495bSYour Name * gEnableDFSMasterCap - Enable DFS master capability 185*5113495bSYour Name * @Min: 0 186*5113495bSYour Name * @Max: 1 187*5113495bSYour Name * @Default: 0 188*5113495bSYour Name * 189*5113495bSYour Name * This ini is used to enable/disable the DFS master capability. 190*5113495bSYour Name * Disabling it will cause driver to not advertise the spectrum 191*5113495bSYour Name * management capability 192*5113495bSYour Name * Related: NA. 193*5113495bSYour Name * 194*5113495bSYour Name * Supported Feature: DFS 195*5113495bSYour Name * 196*5113495bSYour Name * Usage: External 197*5113495bSYour Name * 198*5113495bSYour Name * </ini> 199*5113495bSYour Name */ 200*5113495bSYour Name #define CFG_ENABLE_DFS_MASTER_CAPABILITY CFG_INI_BOOL( \ 201*5113495bSYour Name "gEnableDFSMasterCap", \ 202*5113495bSYour Name 0, \ 203*5113495bSYour Name "DFS master mode capability") 204*5113495bSYour Name 205*5113495bSYour Name /* 206*5113495bSYour Name * <ini> 207*5113495bSYour Name * gDisableDfsJapanW53 - Block W53 channels in random channel selection 208*5113495bSYour Name * @Min: 0 209*5113495bSYour Name * @Max: 1 210*5113495bSYour Name * @Default: 0 211*5113495bSYour Name * 212*5113495bSYour Name * This ini is used to block W53 Japan channel in random channel selection 213*5113495bSYour Name * 214*5113495bSYour Name * Related: none 215*5113495bSYour Name * 216*5113495bSYour Name * Supported Feature: DFS 217*5113495bSYour Name * 218*5113495bSYour Name * Usage: External 219*5113495bSYour Name * 220*5113495bSYour Name * </ini> 221*5113495bSYour Name */ 222*5113495bSYour Name #define CFG_DISABLE_DFS_JAPAN_W53 CFG_INI_BOOL( \ 223*5113495bSYour Name "gDisableDfsJapanW53", \ 224*5113495bSYour Name 0, \ 225*5113495bSYour Name "Block W53 channels in random selection") 226*5113495bSYour Name 227*5113495bSYour Name #define CFG_DFS_ALL \ 228*5113495bSYour Name CFG(CFG_IGNORE_CAC) \ 229*5113495bSYour Name CFG(CFG_DISABLE_DFS_CH_SWITCH) \ 230*5113495bSYour Name CFG(CFG_DFS_BEACON_TX_ENHANCED) \ 231*5113495bSYour Name CFG(CFG_SAP_TX_LEAKAGE_THRESHOLD) \ 232*5113495bSYour Name CFG(CFG_DFS_RADAR_PRI_MULTIPLIER) \ 233*5113495bSYour Name CFG(CFG_ENABLE_NON_DFS_CHAN_ON_RADAR) \ 234*5113495bSYour Name CFG(CFG_ENABLE_DFS_MASTER_CAPABILITY) \ 235*5113495bSYour Name CFG(CFG_DISABLE_DFS_JAPAN_W53) \ 236*5113495bSYour Name CFG(CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD) 237*5113495bSYour Name 238*5113495bSYour Name #endif /* __CFG_MLME_DFS_H */ 239