diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 41b45a2778bd..60e4b00d40fc 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -1910,7 +1910,6 @@ static u16 iwl3945_fill_probe_req(struct iwl3945_priv *priv, | |||
1910 | /* | 1910 | /* |
1911 | * QoS support | 1911 | * QoS support |
1912 | */ | 1912 | */ |
1913 | #ifdef CONFIG_IWL3945_QOS | ||
1914 | static int iwl3945_send_qos_params_command(struct iwl3945_priv *priv, | 1913 | static int iwl3945_send_qos_params_command(struct iwl3945_priv *priv, |
1915 | struct iwl3945_qosparam_cmd *qos) | 1914 | struct iwl3945_qosparam_cmd *qos) |
1916 | { | 1915 | { |
@@ -2039,7 +2038,6 @@ static void iwl3945_activate_qos(struct iwl3945_priv *priv, u8 force) | |||
2039 | } | 2038 | } |
2040 | } | 2039 | } |
2041 | 2040 | ||
2042 | #endif /* CONFIG_IWL3945_QOS */ | ||
2043 | /* | 2041 | /* |
2044 | * Power management (not Tx power!) functions | 2042 | * Power management (not Tx power!) functions |
2045 | */ | 2043 | */ |
@@ -6770,9 +6768,8 @@ static void iwl3945_bg_post_associate(struct work_struct *data) | |||
6770 | 6768 | ||
6771 | iwl3945_sequence_reset(priv); | 6769 | iwl3945_sequence_reset(priv); |
6772 | 6770 | ||
6773 | #ifdef CONFIG_IWL3945_QOS | ||
6774 | iwl3945_activate_qos(priv, 0); | 6771 | iwl3945_activate_qos(priv, 0); |
6775 | #endif /* CONFIG_IWL3945_QOS */ | 6772 | |
6776 | /* we have just associated, don't start scan too early */ | 6773 | /* we have just associated, don't start scan too early */ |
6777 | priv->next_scan_jiffies = jiffies + IWL_DELAY_NEXT_SCAN; | 6774 | priv->next_scan_jiffies = jiffies + IWL_DELAY_NEXT_SCAN; |
6778 | mutex_unlock(&priv->mutex); | 6775 | mutex_unlock(&priv->mutex); |
@@ -7417,10 +7414,8 @@ static int iwl3945_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7417 | const struct ieee80211_tx_queue_params *params) | 7414 | const struct ieee80211_tx_queue_params *params) |
7418 | { | 7415 | { |
7419 | struct iwl3945_priv *priv = hw->priv; | 7416 | struct iwl3945_priv *priv = hw->priv; |
7420 | #ifdef CONFIG_IWL3945_QOS | ||
7421 | unsigned long flags; | 7417 | unsigned long flags; |
7422 | int q; | 7418 | int q; |
7423 | #endif /* CONFIG_IWL3945_QOS */ | ||
7424 | 7419 | ||
7425 | IWL_DEBUG_MAC80211("enter\n"); | 7420 | IWL_DEBUG_MAC80211("enter\n"); |
7426 | 7421 | ||
@@ -7434,7 +7429,6 @@ static int iwl3945_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7434 | return 0; | 7429 | return 0; |
7435 | } | 7430 | } |
7436 | 7431 | ||
7437 | #ifdef CONFIG_IWL3945_QOS | ||
7438 | if (!priv->qos_data.qos_enable) { | 7432 | if (!priv->qos_data.qos_enable) { |
7439 | priv->qos_data.qos_active = 0; | 7433 | priv->qos_data.qos_active = 0; |
7440 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); | 7434 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); |
@@ -7463,8 +7457,6 @@ static int iwl3945_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7463 | 7457 | ||
7464 | mutex_unlock(&priv->mutex); | 7458 | mutex_unlock(&priv->mutex); |
7465 | 7459 | ||
7466 | #endif /*CONFIG_IWL3945_QOS */ | ||
7467 | |||
7468 | IWL_DEBUG_MAC80211("leave\n"); | 7460 | IWL_DEBUG_MAC80211("leave\n"); |
7469 | return 0; | 7461 | return 0; |
7470 | } | 7462 | } |
@@ -7529,9 +7521,8 @@ static void iwl3945_mac_reset_tsf(struct ieee80211_hw *hw) | |||
7529 | mutex_lock(&priv->mutex); | 7521 | mutex_lock(&priv->mutex); |
7530 | IWL_DEBUG_MAC80211("enter\n"); | 7522 | IWL_DEBUG_MAC80211("enter\n"); |
7531 | 7523 | ||
7532 | #ifdef CONFIG_IWL3945_QOS | ||
7533 | iwl3945_reset_qos(priv); | 7524 | iwl3945_reset_qos(priv); |
7534 | #endif | 7525 | |
7535 | cancel_delayed_work(&priv->post_associate); | 7526 | cancel_delayed_work(&priv->post_associate); |
7536 | 7527 | ||
7537 | spin_lock_irqsave(&priv->lock, flags); | 7528 | spin_lock_irqsave(&priv->lock, flags); |
@@ -7619,9 +7610,7 @@ static int iwl3945_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *sk | |||
7619 | IWL_DEBUG_MAC80211("leave\n"); | 7610 | IWL_DEBUG_MAC80211("leave\n"); |
7620 | spin_unlock_irqrestore(&priv->lock, flags); | 7611 | spin_unlock_irqrestore(&priv->lock, flags); |
7621 | 7612 | ||
7622 | #ifdef CONFIG_IWL3945_QOS | ||
7623 | iwl3945_reset_qos(priv); | 7613 | iwl3945_reset_qos(priv); |
7624 | #endif | ||
7625 | 7614 | ||
7626 | queue_work(priv->workqueue, &priv->post_associate.work); | 7615 | queue_work(priv->workqueue, &priv->post_associate.work); |
7627 | 7616 | ||
@@ -8409,7 +8398,6 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
8409 | goto out_iounmap; | 8398 | goto out_iounmap; |
8410 | } | 8399 | } |
8411 | 8400 | ||
8412 | #ifdef CONFIG_IWL3945_QOS | ||
8413 | if (iwl3945_param_qos_enable) | 8401 | if (iwl3945_param_qos_enable) |
8414 | priv->qos_data.qos_enable = 1; | 8402 | priv->qos_data.qos_enable = 1; |
8415 | 8403 | ||
@@ -8417,7 +8405,6 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
8417 | 8405 | ||
8418 | priv->qos_data.qos_active = 0; | 8406 | priv->qos_data.qos_active = 0; |
8419 | priv->qos_data.qos_cap.val = 0; | 8407 | priv->qos_data.qos_cap.val = 0; |
8420 | #endif /* CONFIG_IWL3945_QOS */ | ||
8421 | 8408 | ||
8422 | iwl3945_set_rxon_channel(priv, IEEE80211_BAND_2GHZ, 6); | 8409 | iwl3945_set_rxon_channel(priv, IEEE80211_BAND_2GHZ, 6); |
8423 | iwl3945_setup_deferred_work(priv); | 8410 | iwl3945_setup_deferred_work(priv); |