.. | .. |
---|
5 | 5 | * |
---|
6 | 6 | * GPL LICENSE SUMMARY |
---|
7 | 7 | * |
---|
8 | | - * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved. |
---|
9 | | - * Copyright(c) 2018 Intel Corporation |
---|
| 8 | + * Copyright(c) 2007 - 2014, 2018 - 2020 Intel Corporation. All rights reserved. |
---|
10 | 9 | * |
---|
11 | 10 | * This program is free software; you can redistribute it and/or modify |
---|
12 | 11 | * it under the terms of version 2 of the GNU General Public License as |
---|
.. | .. |
---|
17 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | 17 | * General Public License for more details. |
---|
19 | 18 | * |
---|
20 | | - * You should have received a copy of the GNU General Public License |
---|
21 | | - * along with this program; |
---|
22 | | - * |
---|
23 | 19 | * The full GNU General Public License is included in this distribution |
---|
24 | 20 | * in the file called COPYING. |
---|
25 | 21 | * |
---|
.. | .. |
---|
29 | 25 | * |
---|
30 | 26 | * BSD LICENSE |
---|
31 | 27 | * |
---|
32 | | - * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved. |
---|
33 | | - * Copyright(c) 2018 Intel Corporation |
---|
| 28 | + * Copyright(c) 2005 - 2014, 2018 - 2020 Intel Corporation. All rights reserved. |
---|
34 | 29 | * All rights reserved. |
---|
35 | 30 | * |
---|
36 | 31 | * Redistribution and use in source and binary forms, with or without |
---|
.. | .. |
---|
114 | 109 | * @power_save: enable power save, default = false |
---|
115 | 110 | * @power_level: power level, default = 1 |
---|
116 | 111 | * @debug_level: levels are IWL_DL_* |
---|
117 | | - * @antenna_coupling: antenna coupling in dB, default = 0 |
---|
118 | 112 | * @nvm_file: specifies a external NVM file |
---|
119 | 113 | * @uapsd_disable: disable U-APSD, see &enum iwl_uapsd_disable, default = |
---|
120 | 114 | * IWL_DISABLE_UAPSD_BSS | IWL_DISABLE_UAPSD_P2P_CLIENT |
---|
121 | | - * @d0i3_disable: disable d0i3, default = 1, |
---|
122 | | - * @d0i3_timeout: time to wait after no refs are taken before |
---|
123 | | - * entering D0i3 (in msecs) |
---|
124 | | - * @lar_disable: disable LAR (regulatory), default = 0 |
---|
125 | | - * @fw_monitor: allow to use firmware monitor |
---|
126 | 115 | * @disable_11ac: disable VHT capabilities, default = false. |
---|
127 | 116 | * @remove_when_gone: remove an inaccessible device from the PCIe bus. |
---|
| 117 | + * @enable_ini: enable new FW debug infratructure (INI TLVs) |
---|
128 | 118 | */ |
---|
129 | 119 | struct iwl_mod_params { |
---|
130 | 120 | int swcrypto; |
---|
.. | .. |
---|
138 | 128 | #ifdef CONFIG_IWLWIFI_DEBUG |
---|
139 | 129 | u32 debug_level; |
---|
140 | 130 | #endif |
---|
141 | | - int antenna_coupling; |
---|
142 | 131 | char *nvm_file; |
---|
143 | 132 | u32 uapsd_disable; |
---|
144 | | - bool d0i3_disable; |
---|
145 | | - unsigned int d0i3_timeout; |
---|
146 | | - bool lar_disable; |
---|
147 | | - bool fw_monitor; |
---|
148 | 133 | bool disable_11ac; |
---|
149 | 134 | /** |
---|
150 | 135 | * @disable_11ax: disable HE capabilities, default = false |
---|
151 | 136 | */ |
---|
152 | 137 | bool disable_11ax; |
---|
153 | 138 | bool remove_when_gone; |
---|
| 139 | + bool enable_ini; |
---|
154 | 140 | }; |
---|
155 | 141 | |
---|
| 142 | +static inline bool iwl_enable_rx_ampdu(void) |
---|
| 143 | +{ |
---|
| 144 | + if (iwlwifi_mod_params.disable_11n & IWL_DISABLE_HT_RXAGG) |
---|
| 145 | + return false; |
---|
| 146 | + return true; |
---|
| 147 | +} |
---|
| 148 | + |
---|
| 149 | +static inline bool iwl_enable_tx_ampdu(void) |
---|
| 150 | +{ |
---|
| 151 | + if (iwlwifi_mod_params.disable_11n & IWL_DISABLE_HT_TXAGG) |
---|
| 152 | + return false; |
---|
| 153 | + if (iwlwifi_mod_params.disable_11n & IWL_ENABLE_HT_TXAGG) |
---|
| 154 | + return true; |
---|
| 155 | + |
---|
| 156 | + /* enabled by default */ |
---|
| 157 | + return true; |
---|
| 158 | +} |
---|
| 159 | + |
---|
156 | 160 | #endif /* #__iwl_modparams_h__ */ |
---|