diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-05-21 14:03:01 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-06 07:21:16 -0400 |
commit | d370493f9be79530950dfab23b980ce60bc84f34 (patch) | |
tree | 4be4bec91797f5becbc516c9cfeb42111118a6f4 /drivers/net/wireless/iwlwifi/dvm/devices.c | |
parent | 2587d36b1e121b84993e66dc8624c60793e25921 (diff) |
iwlwifi: move ht40 bitmap into config
There's no need to dynamically fill the HT40
band bitmap as it's a device parameter, just
put it into the HT configuration.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/devices.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/devices.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/devices.c b/drivers/net/wireless/iwlwifi/dvm/devices.c index 7d3bb1e2d196..ddf053c5713d 100644 --- a/drivers/net/wireless/iwlwifi/dvm/devices.c +++ b/drivers/net/wireless/iwlwifi/dvm/devices.c | |||
@@ -171,8 +171,6 @@ static const struct iwl_sensitivity_ranges iwl1000_sensitivity = { | |||
171 | 171 | ||
172 | static void iwl1000_hw_set_hw_params(struct iwl_priv *priv) | 172 | static void iwl1000_hw_set_hw_params(struct iwl_priv *priv) |
173 | { | 173 | { |
174 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ); | ||
175 | |||
176 | iwl1000_set_ct_threshold(priv); | 174 | iwl1000_set_ct_threshold(priv); |
177 | 175 | ||
178 | /* Set initial sensitivity parameters */ | 176 | /* Set initial sensitivity parameters */ |
@@ -244,8 +242,6 @@ static const struct iwl_sensitivity_ranges iwl2000_sensitivity = { | |||
244 | 242 | ||
245 | static void iwl2000_hw_set_hw_params(struct iwl_priv *priv) | 243 | static void iwl2000_hw_set_hw_params(struct iwl_priv *priv) |
246 | { | 244 | { |
247 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ); | ||
248 | |||
249 | iwl2000_set_ct_threshold(priv); | 245 | iwl2000_set_ct_threshold(priv); |
250 | 246 | ||
251 | /* Set initial sensitivity parameters */ | 247 | /* Set initial sensitivity parameters */ |
@@ -389,9 +385,6 @@ static void iwl5000_set_ct_threshold(struct iwl_priv *priv) | |||
389 | 385 | ||
390 | static void iwl5000_hw_set_hw_params(struct iwl_priv *priv) | 386 | static void iwl5000_hw_set_hw_params(struct iwl_priv *priv) |
391 | { | 387 | { |
392 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | ||
393 | BIT(IEEE80211_BAND_5GHZ); | ||
394 | |||
395 | iwl5000_set_ct_threshold(priv); | 388 | iwl5000_set_ct_threshold(priv); |
396 | 389 | ||
397 | /* Set initial sensitivity parameters */ | 390 | /* Set initial sensitivity parameters */ |
@@ -400,9 +393,6 @@ static void iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
400 | 393 | ||
401 | static void iwl5150_hw_set_hw_params(struct iwl_priv *priv) | 394 | static void iwl5150_hw_set_hw_params(struct iwl_priv *priv) |
402 | { | 395 | { |
403 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | ||
404 | BIT(IEEE80211_BAND_5GHZ); | ||
405 | |||
406 | iwl5150_set_ct_threshold(priv); | 396 | iwl5150_set_ct_threshold(priv); |
407 | 397 | ||
408 | /* Set initial sensitivity parameters */ | 398 | /* Set initial sensitivity parameters */ |
@@ -594,9 +584,6 @@ static const struct iwl_sensitivity_ranges iwl6000_sensitivity = { | |||
594 | 584 | ||
595 | static void iwl6000_hw_set_hw_params(struct iwl_priv *priv) | 585 | static void iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
596 | { | 586 | { |
597 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | ||
598 | BIT(IEEE80211_BAND_5GHZ); | ||
599 | |||
600 | iwl6000_set_ct_threshold(priv); | 587 | iwl6000_set_ct_threshold(priv); |
601 | 588 | ||
602 | /* Set initial sensitivity parameters */ | 589 | /* Set initial sensitivity parameters */ |