Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | /* SPDX-License-Identifier: GPL-2.0-only */ /* * This file is part of wl12xx * * Copyright (C) 2011 Texas Instruments Inc. */ #ifndef __WL12XX_CONF_H__ #define __WL12XX_CONF_H__ /* these are number of channels on the band divided by two, rounded up */ #define CONF_TX_PWR_COMPENSATION_LEN_2 7 #define CONF_TX_PWR_COMPENSATION_LEN_5 18 struct wl12xx_conf_rf { /* * Per channel power compensation for 2.4GHz * * Range: s8 */ u8 tx_per_channel_power_compensation_2[CONF_TX_PWR_COMPENSATION_LEN_2]; /* * Per channel power compensation for 5GHz * * Range: s8 */ u8 tx_per_channel_power_compensation_5[CONF_TX_PWR_COMPENSATION_LEN_5]; }; struct wl12xx_priv_conf { struct wl12xx_conf_rf rf; struct conf_memory_settings mem_wl127x; }; enum wl12xx_sg_params { /* * Configure the min and max time BT gains the antenna * in WLAN / BT master basic rate * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_BT_MASTER_MIN_BR = 0, WL12XX_CONF_SG_ACL_BT_MASTER_MAX_BR, /* * Configure the min and max time BT gains the antenna * in WLAN / BT slave basic rate * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_BT_SLAVE_MIN_BR, WL12XX_CONF_SG_ACL_BT_SLAVE_MAX_BR, /* * Configure the min and max time BT gains the antenna * in WLAN / BT master EDR * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_BT_MASTER_MIN_EDR, WL12XX_CONF_SG_ACL_BT_MASTER_MAX_EDR, /* * Configure the min and max time BT gains the antenna * in WLAN / BT slave EDR * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_BT_SLAVE_MIN_EDR, WL12XX_CONF_SG_ACL_BT_SLAVE_MAX_EDR, /* * The maximum time WLAN can gain the antenna * in WLAN PSM / BT master/slave BR * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_WLAN_PS_MASTER_BR, WL12XX_CONF_SG_ACL_WLAN_PS_SLAVE_BR, /* * The maximum time WLAN can gain the antenna * in WLAN PSM / BT master/slave EDR * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_ACL_WLAN_PS_MASTER_EDR, WL12XX_CONF_SG_ACL_WLAN_PS_SLAVE_EDR, /* TODO: explain these values */ WL12XX_CONF_SG_ACL_WLAN_ACTIVE_MASTER_MIN_BR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_MASTER_MAX_BR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MIN_BR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MAX_BR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_MASTER_MIN_EDR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_MASTER_MAX_EDR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MIN_EDR, WL12XX_CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MAX_EDR, WL12XX_CONF_SG_ACL_ACTIVE_SCAN_WLAN_BR, WL12XX_CONF_SG_ACL_ACTIVE_SCAN_WLAN_EDR, WL12XX_CONF_SG_ACL_PASSIVE_SCAN_BT_BR, WL12XX_CONF_SG_ACL_PASSIVE_SCAN_WLAN_BR, WL12XX_CONF_SG_ACL_PASSIVE_SCAN_BT_EDR, WL12XX_CONF_SG_ACL_PASSIVE_SCAN_WLAN_EDR, /* * Compensation percentage of probe requests when scan initiated * during BT voice/ACL link. * * Range: 0 - 255 (%) */ WL12XX_CONF_SG_AUTO_SCAN_PROBE_REQ, /* * Compensation percentage of probe requests when active scan initiated * during BT voice * * Range: 0 - 255 (%) */ WL12XX_CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_HV3, /* * Compensation percentage of WLAN active scan window if initiated * during BT A2DP * * Range: 0 - 1000 (%) */ WL12XX_CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_A2DP, /* * Compensation percentage of WLAN passive scan window if initiated * during BT A2DP BR * * Range: 0 - 1000 (%) */ WL12XX_CONF_SG_PASSIVE_SCAN_DUR_FACTOR_A2DP_BR, /* * Compensation percentage of WLAN passive scan window if initiated * during BT A2DP EDR * * Range: 0 - 1000 (%) */ WL12XX_CONF_SG_PASSIVE_SCAN_DUR_FACTOR_A2DP_EDR, /* * Compensation percentage of WLAN passive scan window if initiated * during BT voice * * Range: 0 - 1000 (%) */ WL12XX_CONF_SG_PASSIVE_SCAN_DUR_FACTOR_HV3, /* TODO: explain these values */ WL12XX_CONF_SG_CONSECUTIVE_HV3_IN_PASSIVE_SCAN, WL12XX_CONF_SG_BCN_HV3_COLL_THR_IN_PASSIVE_SCAN, WL12XX_CONF_SG_TX_RX_PROTECT_BW_IN_PASSIVE_SCAN, /* * Defines whether the SG will force WLAN host to enter/exit PSM * * Range: 1 - SG can force, 0 - host handles PSM */ WL12XX_CONF_SG_STA_FORCE_PS_IN_BT_SCO, /* * Defines antenna configuration (single/dual antenna) * * Range: 0 - single antenna, 1 - dual antenna */ WL12XX_CONF_SG_ANTENNA_CONFIGURATION, /* * The threshold (percent) of max consecutive beacon misses before * increasing priority of beacon reception. * * Range: 0 - 100 (%) */ WL12XX_CONF_SG_BEACON_MISS_PERCENT, /* * Protection time of the DHCP procedure. * * Range: 0 - 100000 (ms) */ WL12XX_CONF_SG_DHCP_TIME, /* * RX guard time before the beginning of a new BT voice frame during * which no new WLAN trigger frame is transmitted. * * Range: 0 - 100000 (us) */ WL12XX_CONF_SG_RXT, /* * TX guard time before the beginning of a new BT voice frame during * which no new WLAN frame is transmitted. * * Range: 0 - 100000 (us) */ WL12XX_CONF_SG_TXT, /* * Enable adaptive RXT/TXT algorithm. If disabled, the host values * will be utilized. * * Range: 0 - disable, 1 - enable */ WL12XX_CONF_SG_ADAPTIVE_RXT_TXT, /* TODO: explain this value */ WL12XX_CONF_SG_GENERAL_USAGE_BIT_MAP, /* * Number of consecutive BT voice frames not interrupted by WLAN * * Range: 0 - 100 */ WL12XX_CONF_SG_HV3_MAX_SERVED, /* * The used WLAN legacy service period during active BT ACL link * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_PS_POLL_TIMEOUT, /* * The used WLAN UPSD service period during active BT ACL link * * Range: 0 - 255 (ms) */ WL12XX_CONF_SG_UPSD_TIMEOUT, WL12XX_CONF_SG_CONSECUTIVE_CTS_THRESHOLD, WL12XX_CONF_SG_STA_RX_WINDOW_AFTER_DTIM, WL12XX_CONF_SG_STA_CONNECTION_PROTECTION_TIME, /* AP params */ WL12XX_CONF_AP_BEACON_MISS_TX, WL12XX_CONF_AP_RX_WINDOW_AFTER_BEACON, WL12XX_CONF_AP_BEACON_WINDOW_INTERVAL, WL12XX_CONF_AP_CONNECTION_PROTECTION_TIME, WL12XX_CONF_AP_BT_ACL_VAL_BT_SERVE_TIME, WL12XX_CONF_AP_BT_ACL_VAL_WL_SERVE_TIME, /* CTS Diluting params */ WL12XX_CONF_SG_CTS_DILUTED_BAD_RX_PACKETS_TH, WL12XX_CONF_SG_CTS_CHOP_IN_DUAL_ANT_SCO_MASTER, WL12XX_CONF_SG_TEMP_PARAM_1, WL12XX_CONF_SG_TEMP_PARAM_2, WL12XX_CONF_SG_TEMP_PARAM_3, WL12XX_CONF_SG_TEMP_PARAM_4, WL12XX_CONF_SG_TEMP_PARAM_5, WL12XX_CONF_SG_TEMP_PARAM_6, WL12XX_CONF_SG_TEMP_PARAM_7, WL12XX_CONF_SG_TEMP_PARAM_8, WL12XX_CONF_SG_TEMP_PARAM_9, WL12XX_CONF_SG_TEMP_PARAM_10, WL12XX_CONF_SG_PARAMS_MAX, WL12XX_CONF_SG_PARAMS_ALL = 0xff }; #endif /* __WL12XX_CONF_H__ */ |