aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorRon Rindjunsky <ron.rindjunsky@intel.com>2008-06-09 15:54:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:18:01 -0400
commit4f85f5b39208e755a93f63296ec1224d14121b6c (patch)
tree6a60946481b392c973ca40b0088e7a1c97870150 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parenta19d7292dc7f1c7d8704a353f51c7f1529de953b (diff)
iwlwifi: removing IWL4965_HT config
This patch removes CONFIG_IWL4965_HT #ifdefs for iwl 4965 and 5000. 11n feature is stable in those drivers and its mode of operation is determined in mac80211, so this dependency is not needed any more. Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index c71daec8c74..88229e25837 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -634,7 +634,6 @@ static u16 iwl4965_supported_rate_to_ie(u8 *ie, u16 supported_rate,
634 return ret_rates; 634 return ret_rates;
635} 635}
636 636
637#ifdef CONFIG_IWL4965_HT
638static void iwl4965_ht_conf(struct iwl_priv *priv, 637static void iwl4965_ht_conf(struct iwl_priv *priv,
639 struct ieee80211_bss_conf *bss_conf) 638 struct ieee80211_bss_conf *bss_conf)
640{ 639{
@@ -707,17 +706,6 @@ static void iwl_ht_cap_to_ie(const struct ieee80211_supported_band *sband,
707 IEEE80211_HT_CAP_AMPDU_DENSITY); 706 IEEE80211_HT_CAP_AMPDU_DENSITY);
708 *left -= sizeof(struct ieee80211_ht_cap); 707 *left -= sizeof(struct ieee80211_ht_cap);
709} 708}
710#else
711static inline void iwl4965_ht_conf(struct iwl_priv *priv,
712 struct ieee80211_bss_conf *bss_conf)
713{
714}
715static void iwl_ht_cap_to_ie(const struct ieee80211_supported_band *sband,
716 u8 *pos, int *left)
717{
718}
719#endif
720
721 709
722/** 710/**
723 * iwl4965_fill_probe_req - fill in all required fields and IE for probe request 711 * iwl4965_fill_probe_req - fill in all required fields and IE for probe request
@@ -862,10 +850,8 @@ static void iwl4965_activate_qos(struct iwl_priv *priv, u8 force)
862 priv->qos_data.def_qos_parm.qos_flags |= 850 priv->qos_data.def_qos_parm.qos_flags |=
863 QOS_PARAM_FLG_UPDATE_EDCA_MSK; 851 QOS_PARAM_FLG_UPDATE_EDCA_MSK;
864 852
865#ifdef CONFIG_IWL4965_HT
866 if (priv->current_ht_config.is_ht) 853 if (priv->current_ht_config.is_ht)
867 priv->qos_data.def_qos_parm.qos_flags |= QOS_PARAM_FLG_TGN_MSK; 854 priv->qos_data.def_qos_parm.qos_flags |= QOS_PARAM_FLG_TGN_MSK;
868#endif /* CONFIG_IWL4965_HT */
869 855
870 spin_unlock_irqrestore(&priv->lock, flags); 856 spin_unlock_irqrestore(&priv->lock, flags);
871 857
@@ -3515,10 +3501,9 @@ static void iwl4965_post_associate(struct iwl_priv *priv)
3515 3501
3516 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; 3502 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK;
3517 3503
3518#ifdef CONFIG_IWL4965_HT
3519 if (priv->current_ht_config.is_ht) 3504 if (priv->current_ht_config.is_ht)
3520 iwl_set_rxon_ht(priv, &priv->current_ht_config); 3505 iwl_set_rxon_ht(priv, &priv->current_ht_config);
3521#endif /* CONFIG_IWL4965_HT*/ 3506
3522 iwl_set_rxon_chain(priv); 3507 iwl_set_rxon_chain(priv);
3523 priv->staging_rxon.assoc_id = cpu_to_le16(priv->assoc_id); 3508 priv->staging_rxon.assoc_id = cpu_to_le16(priv->assoc_id);
3524 3509
@@ -3854,7 +3839,6 @@ static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *co
3854 3839
3855 spin_lock_irqsave(&priv->lock, flags); 3840 spin_lock_irqsave(&priv->lock, flags);
3856 3841
3857#ifdef CONFIG_IWL4965_HT
3858 /* if we are switching from ht to 2.4 clear flags 3842 /* if we are switching from ht to 2.4 clear flags
3859 * from any ht related info since 2.4 does not 3843 * from any ht related info since 2.4 does not
3860 * support ht */ 3844 * support ht */
@@ -3864,7 +3848,6 @@ static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *co
3864#endif 3848#endif
3865 ) 3849 )
3866 priv->staging_rxon.flags = 0; 3850 priv->staging_rxon.flags = 0;
3867#endif /* CONFIG_IWL4965_HT */
3868 3851
3869 iwl_set_rxon_channel(priv, conf->channel->band, channel); 3852 iwl_set_rxon_channel(priv, conf->channel->band, channel);
3870 3853
@@ -4489,11 +4472,9 @@ static void iwl4965_mac_reset_tsf(struct ieee80211_hw *hw)
4489 IWL_DEBUG_MAC80211("enter\n"); 4472 IWL_DEBUG_MAC80211("enter\n");
4490 4473
4491 priv->lq_mngr.lq_ready = 0; 4474 priv->lq_mngr.lq_ready = 0;
4492#ifdef CONFIG_IWL4965_HT
4493 spin_lock_irqsave(&priv->lock, flags); 4475 spin_lock_irqsave(&priv->lock, flags);
4494 memset(&priv->current_ht_config, 0, sizeof(struct iwl_ht_info)); 4476 memset(&priv->current_ht_config, 0, sizeof(struct iwl_ht_info));
4495 spin_unlock_irqrestore(&priv->lock, flags); 4477 spin_unlock_irqrestore(&priv->lock, flags);
4496#endif /* CONFIG_IWL4965_HT */
4497 4478
4498 iwl_reset_qos(priv); 4479 iwl_reset_qos(priv);
4499 4480
@@ -5100,9 +5081,7 @@ static struct ieee80211_ops iwl4965_hw_ops = {
5100 .reset_tsf = iwl4965_mac_reset_tsf, 5081 .reset_tsf = iwl4965_mac_reset_tsf,
5101 .beacon_update = iwl4965_mac_beacon_update, 5082 .beacon_update = iwl4965_mac_beacon_update,
5102 .bss_info_changed = iwl4965_bss_info_changed, 5083 .bss_info_changed = iwl4965_bss_info_changed,
5103#ifdef CONFIG_IWL4965_HT
5104 .ampdu_action = iwl4965_mac_ampdu_action, 5084 .ampdu_action = iwl4965_mac_ampdu_action,
5105#endif /* CONFIG_IWL4965_HT */
5106 .hw_scan = iwl4965_mac_hw_scan 5085 .hw_scan = iwl4965_mac_hw_scan
5107}; 5086};
5108 5087