diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-07 12:52:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-08 13:59:49 -0500 |
commit | 9563fe1696fa0ced8cfa3f935736d4662a81c1c3 (patch) | |
tree | f8c5f401a6b2c9299dea9d96fdd43f87d39b6c25 | |
parent | 51dc51d12bd609644bbe9877825a1a25a6016639 (diff) |
iwlwifi: remove unused max_nrg_cck from sensitivity and constify
The sensitivity parameters are never modified, so they
should be const. Also remove the unused max_nrg_cck
value to save some space.
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-1000.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 1 |
5 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index f6e6f57aade5..450250332e4b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -96,9 +96,8 @@ static void iwl1000_nic_config(struct iwl_priv *priv) | |||
96 | ~APMG_SVR_VOLTAGE_CONFIG_BIT_MSK); | 96 | ~APMG_SVR_VOLTAGE_CONFIG_BIT_MSK); |
97 | } | 97 | } |
98 | 98 | ||
99 | static struct iwl_sensitivity_ranges iwl1000_sensitivity = { | 99 | static const struct iwl_sensitivity_ranges iwl1000_sensitivity = { |
100 | .min_nrg_cck = 95, | 100 | .min_nrg_cck = 95, |
101 | .max_nrg_cck = 0, /* not used, set to 0 */ | ||
102 | .auto_corr_min_ofdm = 90, | 101 | .auto_corr_min_ofdm = 90, |
103 | .auto_corr_min_ofdm_mrc = 170, | 102 | .auto_corr_min_ofdm_mrc = 170, |
104 | .auto_corr_min_ofdm_x1 = 120, | 103 | .auto_corr_min_ofdm_x1 = 120, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 14ce83bc71a5..abfd901e81a2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -91,9 +91,8 @@ static void iwl2000_nic_config(struct iwl_priv *priv) | |||
91 | CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER); | 91 | CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER); |
92 | } | 92 | } |
93 | 93 | ||
94 | static struct iwl_sensitivity_ranges iwl2000_sensitivity = { | 94 | static const struct iwl_sensitivity_ranges iwl2000_sensitivity = { |
95 | .min_nrg_cck = 97, | 95 | .min_nrg_cck = 97, |
96 | .max_nrg_cck = 0, /* not used, set to 0 */ | ||
97 | .auto_corr_min_ofdm = 80, | 96 | .auto_corr_min_ofdm = 80, |
98 | .auto_corr_min_ofdm_mrc = 128, | 97 | .auto_corr_min_ofdm_mrc = 128, |
99 | .auto_corr_min_ofdm_x1 = 105, | 98 | .auto_corr_min_ofdm_x1 = 105, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 907a0b22f7b2..9e187f8f5ae4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -75,9 +75,8 @@ static void iwl5000_nic_config(struct iwl_priv *priv) | |||
75 | ~APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS); | 75 | ~APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS); |
76 | } | 76 | } |
77 | 77 | ||
78 | static struct iwl_sensitivity_ranges iwl5000_sensitivity = { | 78 | static const struct iwl_sensitivity_ranges iwl5000_sensitivity = { |
79 | .min_nrg_cck = 100, | 79 | .min_nrg_cck = 100, |
80 | .max_nrg_cck = 0, /* not used, set to 0 */ | ||
81 | .auto_corr_min_ofdm = 90, | 80 | .auto_corr_min_ofdm = 90, |
82 | .auto_corr_min_ofdm_mrc = 170, | 81 | .auto_corr_min_ofdm_mrc = 170, |
83 | .auto_corr_min_ofdm_x1 = 105, | 82 | .auto_corr_min_ofdm_x1 = 105, |
@@ -102,7 +101,6 @@ static struct iwl_sensitivity_ranges iwl5000_sensitivity = { | |||
102 | 101 | ||
103 | static struct iwl_sensitivity_ranges iwl5150_sensitivity = { | 102 | static struct iwl_sensitivity_ranges iwl5150_sensitivity = { |
104 | .min_nrg_cck = 95, | 103 | .min_nrg_cck = 95, |
105 | .max_nrg_cck = 0, /* not used, set to 0 */ | ||
106 | .auto_corr_min_ofdm = 90, | 104 | .auto_corr_min_ofdm = 90, |
107 | .auto_corr_min_ofdm_mrc = 170, | 105 | .auto_corr_min_ofdm_mrc = 170, |
108 | .auto_corr_min_ofdm_x1 = 105, | 106 | .auto_corr_min_ofdm_x1 = 105, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 0f89e45da1a2..e64bc6b7bcbf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -113,9 +113,8 @@ static void iwl6000_nic_config(struct iwl_priv *priv) | |||
113 | cfg(priv)->additional_nic_config(priv); | 113 | cfg(priv)->additional_nic_config(priv); |
114 | } | 114 | } |
115 | 115 | ||
116 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { | 116 | static const struct iwl_sensitivity_ranges iwl6000_sensitivity = { |
117 | .min_nrg_cck = 110, | 117 | .min_nrg_cck = 110, |
118 | .max_nrg_cck = 0, /* not used, set to 0 */ | ||
119 | .auto_corr_min_ofdm = 80, | 118 | .auto_corr_min_ofdm = 80, |
120 | .auto_corr_min_ofdm_mrc = 128, | 119 | .auto_corr_min_ofdm_mrc = 128, |
121 | .auto_corr_min_ofdm_x1 = 105, | 120 | .auto_corr_min_ofdm_x1 = 105, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 74429702b130..c3f372e2c142 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -294,7 +294,6 @@ struct iwl_vif_priv { | |||
294 | 294 | ||
295 | struct iwl_sensitivity_ranges { | 295 | struct iwl_sensitivity_ranges { |
296 | u16 min_nrg_cck; | 296 | u16 min_nrg_cck; |
297 | u16 max_nrg_cck; | ||
298 | 297 | ||
299 | u16 nrg_th_cck; | 298 | u16 nrg_th_cck; |
300 | u16 nrg_th_ofdm; | 299 | u16 nrg_th_ofdm; |