hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intel/iwlwifi/cfg/5000.c
....@@ -1,23 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /******************************************************************************
23 *
34 * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
45 * Copyright(c) 2018 - 2019 Intel Corporation
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of version 2 of the GNU General Public License as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc.,
17
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18
- *
19
- * The full GNU General Public License is included in this distribution in the
20
- * file called LICENSE.
216 *
227 * Contact Information:
238 * Intel Linux Wireless <linuxwifi@intel.com>
....@@ -82,16 +67,15 @@
8267 .fw_name_pre = IWL5000_FW_PRE, \
8368 .ucode_api_max = IWL5000_UCODE_API_MAX, \
8469 .ucode_api_min = IWL5000_UCODE_API_MIN, \
85
- .device_family = IWL_DEVICE_FAMILY_5000, \
70
+ .trans.device_family = IWL_DEVICE_FAMILY_5000, \
8671 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
8772 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
8873 .nvm_ver = EEPROM_5000_EEPROM_VERSION, \
8974 .nvm_calib_ver = EEPROM_5000_TX_POWER_VERSION, \
90
- .base_params = &iwl5000_base_params, \
75
+ .trans.base_params = &iwl5000_base_params, \
9176 .eeprom_params = &iwl5000_eeprom_params, \
9277 .led_mode = IWL_LED_BLINK, \
93
- .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \
94
- .csr = &iwl_csr_v1
78
+ .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
9579
9680 const struct iwl_cfg iwl5300_agn_cfg = {
9781 .name = "Intel(R) Ultimate N WiFi Link 5300 AGN",
....@@ -130,34 +114,32 @@
130114 .fw_name_pre = IWL5000_FW_PRE,
131115 .ucode_api_max = IWL5000_UCODE_API_MAX,
132116 .ucode_api_min = IWL5000_UCODE_API_MIN,
133
- .device_family = IWL_DEVICE_FAMILY_5000,
117
+ .trans.device_family = IWL_DEVICE_FAMILY_5000,
134118 .max_inst_size = IWLAGN_RTC_INST_SIZE,
135119 .max_data_size = IWLAGN_RTC_DATA_SIZE,
136120 .nvm_ver = EEPROM_5050_EEPROM_VERSION,
137121 .nvm_calib_ver = EEPROM_5050_TX_POWER_VERSION,
138
- .base_params = &iwl5000_base_params,
122
+ .trans.base_params = &iwl5000_base_params,
139123 .eeprom_params = &iwl5000_eeprom_params,
140124 .ht_params = &iwl5000_ht_params,
141125 .led_mode = IWL_LED_BLINK,
142126 .internal_wimax_coex = true,
143
- .csr = &iwl_csr_v1,
144127 };
145128
146129 #define IWL_DEVICE_5150 \
147130 .fw_name_pre = IWL5150_FW_PRE, \
148131 .ucode_api_max = IWL5150_UCODE_API_MAX, \
149132 .ucode_api_min = IWL5150_UCODE_API_MIN, \
150
- .device_family = IWL_DEVICE_FAMILY_5150, \
133
+ .trans.device_family = IWL_DEVICE_FAMILY_5150, \
151134 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
152135 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
153136 .nvm_ver = EEPROM_5050_EEPROM_VERSION, \
154137 .nvm_calib_ver = EEPROM_5050_TX_POWER_VERSION, \
155
- .base_params = &iwl5000_base_params, \
138
+ .trans.base_params = &iwl5000_base_params, \
156139 .eeprom_params = &iwl5000_eeprom_params, \
157140 .led_mode = IWL_LED_BLINK, \
158141 .internal_wimax_coex = true, \
159
- .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \
160
- .csr = &iwl_csr_v1
142
+ .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
161143
162144 const struct iwl_cfg iwl5150_agn_cfg = {
163145 .name = "Intel(R) WiMAX/WiFi Link 5150 AGN",