aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.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/iwl-core.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/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 61716ba90427..6c7617c1bb91 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -321,7 +321,6 @@ void iwl_reset_qos(struct iwl_priv *priv)
321} 321}
322EXPORT_SYMBOL(iwl_reset_qos); 322EXPORT_SYMBOL(iwl_reset_qos);
323 323
324#ifdef CONFIG_IWL4965_HT
325#define MAX_BIT_RATE_40_MHZ 0x96; /* 150 Mbps */ 324#define MAX_BIT_RATE_40_MHZ 0x96; /* 150 Mbps */
326#define MAX_BIT_RATE_20_MHZ 0x48; /* 72 Mbps */ 325#define MAX_BIT_RATE_20_MHZ 0x48; /* 72 Mbps */
327static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv, 326static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv,
@@ -374,13 +373,6 @@ static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv,
374 ht_info->supp_mcs_set[12] |= ((tx_chains_num - 1) << 2); 373 ht_info->supp_mcs_set[12] |= ((tx_chains_num - 1) << 2);
375 } 374 }
376} 375}
377#else
378static inline void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv,
379 struct ieee80211_ht_info *ht_info,
380 enum ieee80211_band band)
381{
382}
383#endif /* CONFIG_IWL4965_HT */
384 376
385static void iwlcore_init_hw_rates(struct iwl_priv *priv, 377static void iwlcore_init_hw_rates(struct iwl_priv *priv,
386 struct ieee80211_rate *rates) 378 struct ieee80211_rate *rates)
@@ -553,7 +545,6 @@ static void iwlcore_free_geos(struct iwl_priv *priv)
553 clear_bit(STATUS_GEO_CONFIGURED, &priv->status); 545 clear_bit(STATUS_GEO_CONFIGURED, &priv->status);
554} 546}
555 547
556#ifdef CONFIG_IWL4965_HT
557static u8 is_single_rx_stream(struct iwl_priv *priv) 548static u8 is_single_rx_stream(struct iwl_priv *priv)
558{ 549{
559 return !priv->current_ht_config.is_ht || 550 return !priv->current_ht_config.is_ht ||
@@ -660,13 +651,6 @@ void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info)
660} 651}
661EXPORT_SYMBOL(iwl_set_rxon_ht); 652EXPORT_SYMBOL(iwl_set_rxon_ht);
662 653
663#else
664static inline u8 is_single_rx_stream(struct iwl_priv *priv)
665{
666 return 1;
667}
668#endif /*CONFIG_IWL4965_HT */
669
670/* 654/*
671 * Determine how many receiver/antenna chains to use. 655 * Determine how many receiver/antenna chains to use.
672 * More provides better reception via diversity. Fewer saves power. 656 * More provides better reception via diversity. Fewer saves power.
@@ -791,10 +775,8 @@ int iwl_setup_mac(struct iwl_priv *priv)
791 IEEE80211_HW_NOISE_DBM; 775 IEEE80211_HW_NOISE_DBM;
792 /* Default value; 4 EDCA QOS priorities */ 776 /* Default value; 4 EDCA QOS priorities */
793 hw->queues = 4; 777 hw->queues = 4;
794#ifdef CONFIG_IWL4965_HT
795 /* Enhanced value; more queues, to support 11n aggregation */ 778 /* Enhanced value; more queues, to support 11n aggregation */
796 hw->ampdu_queues = 12; 779 hw->ampdu_queues = 12;
797#endif /* CONFIG_IWL4965_HT */
798 780
799 hw->conf.beacon_int = 100; 781 hw->conf.beacon_int = 100;
800 782