aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index d0e385aa59e..8284c94a1f0 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -2014,7 +2014,6 @@ static u16 iwl4965_fill_probe_req(struct iwl4965_priv *priv,
2014/* 2014/*
2015 * QoS support 2015 * QoS support
2016*/ 2016*/
2017#ifdef CONFIG_IWL4965_QOS
2018static int iwl4965_send_qos_params_command(struct iwl4965_priv *priv, 2017static int iwl4965_send_qos_params_command(struct iwl4965_priv *priv,
2019 struct iwl4965_qosparam_cmd *qos) 2018 struct iwl4965_qosparam_cmd *qos)
2020{ 2019{
@@ -2148,7 +2147,6 @@ static void iwl4965_activate_qos(struct iwl4965_priv *priv, u8 force)
2148 } 2147 }
2149} 2148}
2150 2149
2151#endif /* CONFIG_IWL4965_QOS */
2152/* 2150/*
2153 * Power management (not Tx power!) functions 2151 * Power management (not Tx power!) functions
2154 */ 2152 */
@@ -7200,9 +7198,8 @@ static void iwl4965_bg_post_associate(struct work_struct *data)
7200 if (priv->iw_mode == IEEE80211_IF_TYPE_IBSS) 7198 if (priv->iw_mode == IEEE80211_IF_TYPE_IBSS)
7201 priv->assoc_station_added = 1; 7199 priv->assoc_station_added = 1;
7202 7200
7203#ifdef CONFIG_IWL4965_QOS
7204 iwl4965_activate_qos(priv, 0); 7201 iwl4965_activate_qos(priv, 0);
7205#endif /* CONFIG_IWL4965_QOS */ 7202
7206 /* we have just associated, don't start scan too early */ 7203 /* we have just associated, don't start scan too early */
7207 priv->next_scan_jiffies = jiffies + IWL_DELAY_NEXT_SCAN; 7204 priv->next_scan_jiffies = jiffies + IWL_DELAY_NEXT_SCAN;
7208 mutex_unlock(&priv->mutex); 7205 mutex_unlock(&priv->mutex);
@@ -7577,9 +7574,7 @@ static void iwl4965_config_ap(struct iwl4965_priv *priv)
7577 /* restore RXON assoc */ 7574 /* restore RXON assoc */
7578 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; 7575 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK;
7579 iwl4965_commit_rxon(priv); 7576 iwl4965_commit_rxon(priv);
7580#ifdef CONFIG_IWL4965_QOS
7581 iwl4965_activate_qos(priv, 1); 7577 iwl4965_activate_qos(priv, 1);
7582#endif
7583 iwl4965_rxon_add_station(priv, iwl4965_broadcast_addr, 0); 7578 iwl4965_rxon_add_station(priv, iwl4965_broadcast_addr, 0);
7584 } 7579 }
7585 iwl4965_send_beacon_cmd(priv); 7580 iwl4965_send_beacon_cmd(priv);
@@ -7893,10 +7888,8 @@ static int iwl4965_mac_conf_tx(struct ieee80211_hw *hw, int queue,
7893 const struct ieee80211_tx_queue_params *params) 7888 const struct ieee80211_tx_queue_params *params)
7894{ 7889{
7895 struct iwl4965_priv *priv = hw->priv; 7890 struct iwl4965_priv *priv = hw->priv;
7896#ifdef CONFIG_IWL4965_QOS
7897 unsigned long flags; 7891 unsigned long flags;
7898 int q; 7892 int q;
7899#endif /* CONFIG_IWL4965_QOS */
7900 7893
7901 IWL_DEBUG_MAC80211("enter\n"); 7894 IWL_DEBUG_MAC80211("enter\n");
7902 7895
@@ -7910,7 +7903,6 @@ static int iwl4965_mac_conf_tx(struct ieee80211_hw *hw, int queue,
7910 return 0; 7903 return 0;
7911 } 7904 }
7912 7905
7913#ifdef CONFIG_IWL4965_QOS
7914 if (!priv->qos_data.qos_enable) { 7906 if (!priv->qos_data.qos_enable) {
7915 priv->qos_data.qos_active = 0; 7907 priv->qos_data.qos_active = 0;
7916 IWL_DEBUG_MAC80211("leave - qos not enabled\n"); 7908 IWL_DEBUG_MAC80211("leave - qos not enabled\n");
@@ -7939,8 +7931,6 @@ static int iwl4965_mac_conf_tx(struct ieee80211_hw *hw, int queue,
7939 7931
7940 mutex_unlock(&priv->mutex); 7932 mutex_unlock(&priv->mutex);
7941 7933
7942#endif /*CONFIG_IWL4965_QOS */
7943
7944 IWL_DEBUG_MAC80211("leave\n"); 7934 IWL_DEBUG_MAC80211("leave\n");
7945 return 0; 7935 return 0;
7946} 7936}
@@ -8012,9 +8002,7 @@ static void iwl4965_mac_reset_tsf(struct ieee80211_hw *hw)
8012 spin_unlock_irqrestore(&priv->lock, flags); 8002 spin_unlock_irqrestore(&priv->lock, flags);
8013#endif /* CONFIG_IWL4965_HT */ 8003#endif /* CONFIG_IWL4965_HT */
8014 8004
8015#ifdef CONFIG_IWL4965_QOS
8016 iwl4965_reset_qos(priv); 8005 iwl4965_reset_qos(priv);
8017#endif
8018 8006
8019 cancel_delayed_work(&priv->post_associate); 8007 cancel_delayed_work(&priv->post_associate);
8020 8008
@@ -8103,9 +8091,7 @@ static int iwl4965_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *sk
8103 IWL_DEBUG_MAC80211("leave\n"); 8091 IWL_DEBUG_MAC80211("leave\n");
8104 spin_unlock_irqrestore(&priv->lock, flags); 8092 spin_unlock_irqrestore(&priv->lock, flags);
8105 8093
8106#ifdef CONFIG_IWL4965_QOS
8107 iwl4965_reset_qos(priv); 8094 iwl4965_reset_qos(priv);
8108#endif
8109 8095
8110 queue_work(priv->workqueue, &priv->post_associate.work); 8096 queue_work(priv->workqueue, &priv->post_associate.work);
8111 8097
@@ -8934,7 +8920,6 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
8934 goto out_iounmap; 8920 goto out_iounmap;
8935 } 8921 }
8936 8922
8937#ifdef CONFIG_IWL4965_QOS
8938 if (iwl4965_param_qos_enable) 8923 if (iwl4965_param_qos_enable)
8939 priv->qos_data.qos_enable = 1; 8924 priv->qos_data.qos_enable = 1;
8940 8925
@@ -8942,7 +8927,6 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
8942 8927
8943 priv->qos_data.qos_active = 0; 8928 priv->qos_data.qos_active = 0;
8944 priv->qos_data.qos_cap.val = 0; 8929 priv->qos_data.qos_cap.val = 0;
8945#endif /* CONFIG_IWL4965_QOS */
8946 8930
8947 iwl4965_set_rxon_channel(priv, IEEE80211_BAND_2GHZ, 6); 8931 iwl4965_set_rxon_channel(priv, IEEE80211_BAND_2GHZ, 6);
8948 iwl4965_setup_deferred_work(priv); 8932 iwl4965_setup_deferred_work(priv);