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_GREEN_AP_PARAMS_H 24 #define __CFG_GREEN_AP_PARAMS_H 25 26 /* 27 * <ini> 28 * enable_green_ap - Enable green ap feature 29 * @Min: 0 30 * @Max: 1 31 * @Default: 0 32 * 33 * This ini is used to enable green ap feature 34 * 35 * Related: None 36 * 37 * Supported Feature: SAP 38 * 39 * Usage: Internal/External 40 * 41 * </ini> 42 */ 43 44 #define CFG_ENABLE_GREEN_AP_FEATURE CFG_INI_BOOL( \ 45 "gEnableGreenAp", \ 46 MCL_OR_WIN_VALUE(1, 0), \ 47 "enable green ap") 48 49 /* 50 * <ini> 51 * enable_egap - Enable the enhanced green ap feature 52 * @Min: 0 53 * @Max: 1 54 * @Default: 1 55 * 56 * This ini is used to enable the enhanced green ap feature 57 * 58 * Related: None 59 * 60 * Supported Feature: SAP 61 * 62 * Usage: Internal/External 63 * 64 * </ini> 65 */ 66 67 #define CFG_ENABLE_EGAP_FEATURE CFG_INI_BOOL( \ 68 "gEnableEGAP", \ 69 MCL_OR_WIN_VALUE(1,0), \ 70 "enable e-gap") 71 /* 72 * <ini> 73 * egap_inact_time - configure the inactive time for EGAP 74 * @Min: 0 75 * @Max: 300000 76 * @Default: 2000 77 * 78 * This ini is used to configure the inactive time for EGAP 79 * 80 * Related: None 81 * 82 * Supported Feature: SAP 83 * 84 * Usage: Internal/External 85 * 86 * </ini> 87 */ 88 89 #define CFG_EGAP_INACT_TIME_FEATURE CFG_INI_UINT( \ 90 "gEGAPInactTime", \ 91 0, \ 92 300000, \ 93 2000, \ 94 CFG_VALUE_OR_DEFAULT, \ 95 "egap inactivity time") 96 /* 97 * <ini> 98 * egap_wait_time - configure the wait time for EGAP 99 * @Min: 0 100 * @Max: 1 101 * @Default: 0 102 * 103 * This ini is used to configure the wait time for EGAP 104 * 105 * Related: None 106 * 107 * Supported Feature: SAP 108 * 109 * Usage: Internal/External 110 * 111 * </ini> 112 */ 113 114 #define CFG_EGAP_WAIT_TIME_FEATURE CFG_INI_UINT( \ 115 "gEGAPWaitTime", \ 116 0, \ 117 300000, \ 118 150, \ 119 CFG_VALUE_OR_DEFAULT, \ 120 "egap wait time") 121 /* 122 * <ini> 123 * egap_flag - Configure the EGAP flags 124 * @Min: 0 125 * @Max: 1 126 * @Default: 0 127 * 128 * This ini is used to configure the EGAP flags 129 * 130 * Related: None 131 * 132 * Supported Feature: SAP 133 * 134 * Usage: Internal/External 135 * 136 * </ini> 137 */ 138 139 #define CFG_EGAP_FLAGS_FEATURE CFG_INI_UINT( \ 140 "gEGAPFeatures", \ 141 0, \ 142 15, \ 143 3, \ 144 CFG_VALUE_OR_DEFAULT, \ 145 "egap flag") 146 147 #ifdef WLAN_SUPPORT_GREEN_AP 148 #define CFG_GREEN_AP_ALL \ 149 CFG(CFG_ENABLE_GREEN_AP_FEATURE) \ 150 CFG(CFG_ENABLE_EGAP_FEATURE) \ 151 CFG(CFG_EGAP_INACT_TIME_FEATURE) \ 152 CFG(CFG_EGAP_WAIT_TIME_FEATURE) \ 153 CFG(CFG_EGAP_FLAGS_FEATURE) 154 #else 155 #define CFG_GREEN_AP_ALL 156 #endif 157 158 #endif /* __CFG_GREEN_AP_PARAMS_H */ 159 160