forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/net/wireless/intel/iwlwifi/iwl-modparams.h
....@@ -5,8 +5,7 @@
55 *
66 * GPL LICENSE SUMMARY
77 *
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.
109 *
1110 * This program is free software; you can redistribute it and/or modify
1211 * it under the terms of version 2 of the GNU General Public License as
....@@ -17,9 +16,6 @@
1716 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1817 * General Public License for more details.
1918 *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program;
22
- *
2319 * The full GNU General Public License is included in this distribution
2420 * in the file called COPYING.
2521 *
....@@ -29,8 +25,7 @@
2925 *
3026 * BSD LICENSE
3127 *
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.
3429 * All rights reserved.
3530 *
3631 * Redistribution and use in source and binary forms, with or without
....@@ -114,17 +109,12 @@
114109 * @power_save: enable power save, default = false
115110 * @power_level: power level, default = 1
116111 * @debug_level: levels are IWL_DL_*
117
- * @antenna_coupling: antenna coupling in dB, default = 0
118112 * @nvm_file: specifies a external NVM file
119113 * @uapsd_disable: disable U-APSD, see &enum iwl_uapsd_disable, default =
120114 * 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
126115 * @disable_11ac: disable VHT capabilities, default = false.
127116 * @remove_when_gone: remove an inaccessible device from the PCIe bus.
117
+ * @enable_ini: enable new FW debug infratructure (INI TLVs)
128118 */
129119 struct iwl_mod_params {
130120 int swcrypto;
....@@ -138,19 +128,33 @@
138128 #ifdef CONFIG_IWLWIFI_DEBUG
139129 u32 debug_level;
140130 #endif
141
- int antenna_coupling;
142131 char *nvm_file;
143132 u32 uapsd_disable;
144
- bool d0i3_disable;
145
- unsigned int d0i3_timeout;
146
- bool lar_disable;
147
- bool fw_monitor;
148133 bool disable_11ac;
149134 /**
150135 * @disable_11ax: disable HE capabilities, default = false
151136 */
152137 bool disable_11ax;
153138 bool remove_when_gone;
139
+ bool enable_ini;
154140 };
155141
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
+
156160 #endif /* #__iwl_modparams_h__ */