diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-15 16:26:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:37:20 -0400 |
commit | cf61686a77607effdad45107161a8ff4e34d1f08 (patch) | |
tree | 1b8c91aab7b39f6e50810be18001bfd11fabc7b0 | |
parent | 85560af37a5256d48089e04afc5ff4241579ab3e (diff) |
iwlwifi: remove iq_invert config param
This is used only by 2000 class devices, but
they all use it so remove the configuration
parameter and hard-code the programming.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-shared.h | 2 |
2 files changed, 6 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 5635b9e2c69e..5b898db4d3d7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -86,9 +86,8 @@ static void iwl2000_nic_config(struct iwl_priv *priv) | |||
86 | { | 86 | { |
87 | iwl_rf_config(priv); | 87 | iwl_rf_config(priv); |
88 | 88 | ||
89 | if (cfg(priv)->iq_invert) | 89 | iwl_set_bit(trans(priv), CSR_GP_DRIVER_REG, |
90 | iwl_set_bit(trans(priv), CSR_GP_DRIVER_REG, | 90 | CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER); |
91 | CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER); | ||
92 | } | 91 | } |
93 | 92 | ||
94 | static const struct iwl_sensitivity_ranges iwl2000_sensitivity = { | 93 | static const struct iwl_sensitivity_ranges iwl2000_sensitivity = { |
@@ -234,8 +233,7 @@ static const struct iwl_bt_params iwl2030_bt_params = { | |||
234 | .base_params = &iwl2000_base_params, \ | 233 | .base_params = &iwl2000_base_params, \ |
235 | .need_temp_offset_calib = true, \ | 234 | .need_temp_offset_calib = true, \ |
236 | .temp_offset_v2 = true, \ | 235 | .temp_offset_v2 = true, \ |
237 | .led_mode = IWL_LED_RF_STATE, \ | 236 | .led_mode = IWL_LED_RF_STATE |
238 | .iq_invert = true \ | ||
239 | 237 | ||
240 | const struct iwl_cfg iwl2000_2bgn_cfg = { | 238 | const struct iwl_cfg iwl2000_2bgn_cfg = { |
241 | .name = "Intel(R) Centrino(R) Wireless-N 2200 BGN", | 239 | .name = "Intel(R) Centrino(R) Wireless-N 2200 BGN", |
@@ -264,8 +262,7 @@ const struct iwl_cfg iwl2000_2bgn_d_cfg = { | |||
264 | .need_temp_offset_calib = true, \ | 262 | .need_temp_offset_calib = true, \ |
265 | .temp_offset_v2 = true, \ | 263 | .temp_offset_v2 = true, \ |
266 | .led_mode = IWL_LED_RF_STATE, \ | 264 | .led_mode = IWL_LED_RF_STATE, \ |
267 | .adv_pm = true, \ | 265 | .adv_pm = true |
268 | .iq_invert = true \ | ||
269 | 266 | ||
270 | const struct iwl_cfg iwl2030_2bgn_cfg = { | 267 | const struct iwl_cfg iwl2030_2bgn_cfg = { |
271 | .name = "Intel(R) Centrino(R) Wireless-N 2230 BGN", | 268 | .name = "Intel(R) Centrino(R) Wireless-N 2230 BGN", |
@@ -288,8 +285,7 @@ const struct iwl_cfg iwl2030_2bgn_cfg = { | |||
288 | .temp_offset_v2 = true, \ | 285 | .temp_offset_v2 = true, \ |
289 | .led_mode = IWL_LED_RF_STATE, \ | 286 | .led_mode = IWL_LED_RF_STATE, \ |
290 | .adv_pm = true, \ | 287 | .adv_pm = true, \ |
291 | .rx_with_siso_diversity = true, \ | 288 | .rx_with_siso_diversity = true |
292 | .iq_invert = true \ | ||
293 | 289 | ||
294 | const struct iwl_cfg iwl105_bgn_cfg = { | 290 | const struct iwl_cfg iwl105_bgn_cfg = { |
295 | .name = "Intel(R) Centrino(R) Wireless-N 105 BGN", | 291 | .name = "Intel(R) Centrino(R) Wireless-N 105 BGN", |
@@ -319,8 +315,7 @@ const struct iwl_cfg iwl105_bgn_d_cfg = { | |||
319 | .temp_offset_v2 = true, \ | 315 | .temp_offset_v2 = true, \ |
320 | .led_mode = IWL_LED_RF_STATE, \ | 316 | .led_mode = IWL_LED_RF_STATE, \ |
321 | .adv_pm = true, \ | 317 | .adv_pm = true, \ |
322 | .rx_with_siso_diversity = true, \ | 318 | .rx_with_siso_diversity = true |
323 | .iq_invert = true \ | ||
324 | 319 | ||
325 | const struct iwl_cfg iwl135_bgn_cfg = { | 320 | const struct iwl_cfg iwl135_bgn_cfg = { |
326 | .name = "Intel(R) Centrino(R) Wireless-N 135 BGN", | 321 | .name = "Intel(R) Centrino(R) Wireless-N 135 BGN", |
diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h index 18ef286539b9..229c4b903778 100644 --- a/drivers/net/wireless/iwlwifi/iwl-shared.h +++ b/drivers/net/wireless/iwlwifi/iwl-shared.h | |||
@@ -302,7 +302,6 @@ struct iwl_ht_params { | |||
302 | * @adv_pm: advance power management | 302 | * @adv_pm: advance power management |
303 | * @rx_with_siso_diversity: 1x1 device with rx antenna diversity | 303 | * @rx_with_siso_diversity: 1x1 device with rx antenna diversity |
304 | * @internal_wimax_coex: internal wifi/wimax combo device | 304 | * @internal_wimax_coex: internal wifi/wimax combo device |
305 | * @iq_invert: I/Q inversion | ||
306 | * @temp_offset_v2: support v2 of temperature offset calibration | 305 | * @temp_offset_v2: support v2 of temperature offset calibration |
307 | * | 306 | * |
308 | * We enable the driver to be backward compatible wrt. hardware features. | 307 | * We enable the driver to be backward compatible wrt. hardware features. |
@@ -336,7 +335,6 @@ struct iwl_cfg { | |||
336 | const bool adv_pm; | 335 | const bool adv_pm; |
337 | const bool rx_with_siso_diversity; | 336 | const bool rx_with_siso_diversity; |
338 | const bool internal_wimax_coex; | 337 | const bool internal_wimax_coex; |
339 | const bool iq_invert; | ||
340 | const bool temp_offset_v2; | 338 | const bool temp_offset_v2; |
341 | }; | 339 | }; |
342 | 340 | ||