diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-2000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 0e13f0bb2e17..54d931d614fb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
31 | #include <linux/skbuff.h> | 31 | #include <linux/skbuff.h> |
32 | #include <linux/netdevice.h> | 32 | #include <linux/netdevice.h> |
33 | #include <linux/wireless.h> | ||
34 | #include <net/mac80211.h> | 33 | #include <net/mac80211.h> |
35 | #include <linux/etherdevice.h> | 34 | #include <linux/etherdevice.h> |
36 | #include <asm/unaligned.h> | 35 | #include <asm/unaligned.h> |
@@ -47,10 +46,16 @@ | |||
47 | #include "iwl-6000-hw.h" | 46 | #include "iwl-6000-hw.h" |
48 | 47 | ||
49 | /* Highest firmware API version supported */ | 48 | /* Highest firmware API version supported */ |
50 | #define IWL2030_UCODE_API_MAX 5 | 49 | #define IWL2030_UCODE_API_MAX 6 |
51 | #define IWL2000_UCODE_API_MAX 5 | 50 | #define IWL2000_UCODE_API_MAX 6 |
52 | #define IWL105_UCODE_API_MAX 5 | 51 | #define IWL105_UCODE_API_MAX 6 |
53 | #define IWL135_UCODE_API_MAX 5 | 52 | #define IWL135_UCODE_API_MAX 6 |
53 | |||
54 | /* Oldest version we won't warn about */ | ||
55 | #define IWL2030_UCODE_API_OK 5 | ||
56 | #define IWL2000_UCODE_API_OK 5 | ||
57 | #define IWL105_UCODE_API_OK 5 | ||
58 | #define IWL135_UCODE_API_OK 5 | ||
54 | 59 | ||
55 | /* Lowest firmware API version supported */ | 60 | /* Lowest firmware API version supported */ |
56 | #define IWL2030_UCODE_API_MIN 5 | 61 | #define IWL2030_UCODE_API_MIN 5 |
@@ -130,8 +135,7 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv) | |||
130 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; | 135 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; |
131 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; | 136 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; |
132 | 137 | ||
133 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 138 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ); |
134 | BIT(IEEE80211_BAND_5GHZ); | ||
135 | 139 | ||
136 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 140 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
137 | if (priv->cfg->rx_with_siso_diversity) | 141 | if (priv->cfg->rx_with_siso_diversity) |
@@ -217,6 +221,7 @@ static struct iwl_base_params iwl2000_base_params = { | |||
217 | .wd_timeout = IWL_DEF_WD_TIMEOUT, | 221 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
218 | .max_event_log_size = 512, | 222 | .max_event_log_size = 512, |
219 | .shadow_reg_enable = true, | 223 | .shadow_reg_enable = true, |
224 | .hd_v2 = true, | ||
220 | }; | 225 | }; |
221 | 226 | ||
222 | 227 | ||
@@ -236,6 +241,7 @@ static struct iwl_base_params iwl2030_base_params = { | |||
236 | .wd_timeout = IWL_LONG_WD_TIMEOUT, | 241 | .wd_timeout = IWL_LONG_WD_TIMEOUT, |
237 | .max_event_log_size = 512, | 242 | .max_event_log_size = 512, |
238 | .shadow_reg_enable = true, | 243 | .shadow_reg_enable = true, |
244 | .hd_v2 = true, | ||
239 | }; | 245 | }; |
240 | 246 | ||
241 | static struct iwl_ht_params iwl2000_ht_params = { | 247 | static struct iwl_ht_params iwl2000_ht_params = { |
@@ -256,6 +262,7 @@ static struct iwl_bt_params iwl2030_bt_params = { | |||
256 | #define IWL_DEVICE_2000 \ | 262 | #define IWL_DEVICE_2000 \ |
257 | .fw_name_pre = IWL2000_FW_PRE, \ | 263 | .fw_name_pre = IWL2000_FW_PRE, \ |
258 | .ucode_api_max = IWL2000_UCODE_API_MAX, \ | 264 | .ucode_api_max = IWL2000_UCODE_API_MAX, \ |
265 | .ucode_api_ok = IWL2000_UCODE_API_OK, \ | ||
259 | .ucode_api_min = IWL2000_UCODE_API_MIN, \ | 266 | .ucode_api_min = IWL2000_UCODE_API_MIN, \ |
260 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ | 267 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ |
261 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ | 268 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
@@ -280,6 +287,7 @@ struct iwl_cfg iwl2000_2bg_cfg = { | |||
280 | #define IWL_DEVICE_2030 \ | 287 | #define IWL_DEVICE_2030 \ |
281 | .fw_name_pre = IWL2030_FW_PRE, \ | 288 | .fw_name_pre = IWL2030_FW_PRE, \ |
282 | .ucode_api_max = IWL2030_UCODE_API_MAX, \ | 289 | .ucode_api_max = IWL2030_UCODE_API_MAX, \ |
290 | .ucode_api_ok = IWL2030_UCODE_API_OK, \ | ||
283 | .ucode_api_min = IWL2030_UCODE_API_MIN, \ | 291 | .ucode_api_min = IWL2030_UCODE_API_MIN, \ |
284 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ | 292 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ |
285 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ | 293 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
@@ -306,6 +314,7 @@ struct iwl_cfg iwl2030_2bg_cfg = { | |||
306 | #define IWL_DEVICE_105 \ | 314 | #define IWL_DEVICE_105 \ |
307 | .fw_name_pre = IWL105_FW_PRE, \ | 315 | .fw_name_pre = IWL105_FW_PRE, \ |
308 | .ucode_api_max = IWL105_UCODE_API_MAX, \ | 316 | .ucode_api_max = IWL105_UCODE_API_MAX, \ |
317 | .ucode_api_ok = IWL105_UCODE_API_OK, \ | ||
309 | .ucode_api_min = IWL105_UCODE_API_MIN, \ | 318 | .ucode_api_min = IWL105_UCODE_API_MIN, \ |
310 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ | 319 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ |
311 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ | 320 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
@@ -332,6 +341,7 @@ struct iwl_cfg iwl105_bgn_cfg = { | |||
332 | #define IWL_DEVICE_135 \ | 341 | #define IWL_DEVICE_135 \ |
333 | .fw_name_pre = IWL135_FW_PRE, \ | 342 | .fw_name_pre = IWL135_FW_PRE, \ |
334 | .ucode_api_max = IWL135_UCODE_API_MAX, \ | 343 | .ucode_api_max = IWL135_UCODE_API_MAX, \ |
344 | .ucode_api_ok = IWL135_UCODE_API_OK, \ | ||
335 | .ucode_api_min = IWL135_UCODE_API_MIN, \ | 345 | .ucode_api_min = IWL135_UCODE_API_MIN, \ |
336 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ | 346 | .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ |
337 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ | 347 | .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |