diff options
author | Christoph Hellwig <hch@lst.de> | 2007-10-25 05:15:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:25 -0500 |
commit | c8b0e6e19c0bcd30689cb6c6f64eb140f5d61894 (patch) | |
tree | 5c9ef861d391a3d8d56f3e24cd9920f19161f7d2 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 5d08cd1dfdc57dc834c47eb9f023fcf861f3d6bf (diff) |
iwlwifi: cleanup Kconfig and ifdefs to split 3945 and 4965
Currently the iwl3945 & iwl4965 drivers share some common Kconfig
symbols. This split it up into options for the individual drivers
and gets rid of all the CONFIG_IWLWIFI cruft.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index b9b67e617ff..691d64e0393 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -59,7 +59,7 @@ | |||
59 | #include "iwl-3945.h" | 59 | #include "iwl-3945.h" |
60 | #include "iwl-helpers.h" | 60 | #include "iwl-helpers.h" |
61 | 61 | ||
62 | #ifdef CONFIG_IWLWIFI_DEBUG | 62 | #ifdef CONFIG_IWL3945_DEBUG |
63 | u32 iwl_debug_level; | 63 | u32 iwl_debug_level; |
64 | #endif | 64 | #endif |
65 | 65 | ||
@@ -89,13 +89,13 @@ int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; | |||
89 | #define DRV_DESCRIPTION \ | 89 | #define DRV_DESCRIPTION \ |
90 | "Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux" | 90 | "Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux" |
91 | 91 | ||
92 | #ifdef CONFIG_IWLWIFI_DEBUG | 92 | #ifdef CONFIG_IWL3945_DEBUG |
93 | #define VD "d" | 93 | #define VD "d" |
94 | #else | 94 | #else |
95 | #define VD | 95 | #define VD |
96 | #endif | 96 | #endif |
97 | 97 | ||
98 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 98 | #ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT |
99 | #define VS "s" | 99 | #define VS "s" |
100 | #else | 100 | #else |
101 | #define VS | 101 | #define VS |
@@ -180,7 +180,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len) | |||
180 | 180 | ||
181 | static void iwl_print_hex_dump(int level, void *p, u32 len) | 181 | static void iwl_print_hex_dump(int level, void *p, u32 len) |
182 | { | 182 | { |
183 | #ifdef CONFIG_IWLWIFI_DEBUG | 183 | #ifdef CONFIG_IWL3945_DEBUG |
184 | if (!(iwl_debug_level & level)) | 184 | if (!(iwl_debug_level & level)) |
185 | return; | 185 | return; |
186 | 186 | ||
@@ -1584,7 +1584,7 @@ int iwl_eeprom_init(struct iwl_priv *priv) | |||
1584 | * Misc. internal state and helper functions | 1584 | * Misc. internal state and helper functions |
1585 | * | 1585 | * |
1586 | ******************************************************************************/ | 1586 | ******************************************************************************/ |
1587 | #ifdef CONFIG_IWLWIFI_DEBUG | 1587 | #ifdef CONFIG_IWL3945_DEBUG |
1588 | 1588 | ||
1589 | /** | 1589 | /** |
1590 | * iwl_report_frame - dump frame to syslog during debug sessions | 1590 | * iwl_report_frame - dump frame to syslog during debug sessions |
@@ -1864,7 +1864,7 @@ static u16 iwl_fill_probe_req(struct iwl_priv *priv, | |||
1864 | /* | 1864 | /* |
1865 | * QoS support | 1865 | * QoS support |
1866 | */ | 1866 | */ |
1867 | #ifdef CONFIG_IWLWIFI_QOS | 1867 | #ifdef CONFIG_IWL3945_QOS |
1868 | static int iwl_send_qos_params_command(struct iwl_priv *priv, | 1868 | static int iwl_send_qos_params_command(struct iwl_priv *priv, |
1869 | struct iwl_qosparam_cmd *qos) | 1869 | struct iwl_qosparam_cmd *qos) |
1870 | { | 1870 | { |
@@ -1993,7 +1993,7 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force) | |||
1993 | } | 1993 | } |
1994 | } | 1994 | } |
1995 | 1995 | ||
1996 | #endif /* CONFIG_IWLWIFI_QOS */ | 1996 | #endif /* CONFIG_IWL3945_QOS */ |
1997 | /* | 1997 | /* |
1998 | * Power management (not Tx power!) functions | 1998 | * Power management (not Tx power!) functions |
1999 | */ | 1999 | */ |
@@ -2747,7 +2747,7 @@ static int iwl_tx_skb(struct iwl_priv *priv, | |||
2747 | 2747 | ||
2748 | fc = le16_to_cpu(hdr->frame_control); | 2748 | fc = le16_to_cpu(hdr->frame_control); |
2749 | 2749 | ||
2750 | #ifdef CONFIG_IWLWIFI_DEBUG | 2750 | #ifdef CONFIG_IWL3945_DEBUG |
2751 | if (ieee80211_is_auth(fc)) | 2751 | if (ieee80211_is_auth(fc)) |
2752 | IWL_DEBUG_TX("Sending AUTH frame\n"); | 2752 | IWL_DEBUG_TX("Sending AUTH frame\n"); |
2753 | else if (ieee80211_is_assoc_request(fc)) | 2753 | else if (ieee80211_is_assoc_request(fc)) |
@@ -3196,7 +3196,7 @@ int is_duplicate_packet(struct iwl_priv *priv, struct ieee80211_hdr *header) | |||
3196 | return 1; | 3196 | return 1; |
3197 | } | 3197 | } |
3198 | 3198 | ||
3199 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 3199 | #ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT |
3200 | 3200 | ||
3201 | #include "iwl-spectrum.h" | 3201 | #include "iwl-spectrum.h" |
3202 | 3202 | ||
@@ -3522,7 +3522,7 @@ static void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
3522 | static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | 3522 | static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, |
3523 | struct iwl_rx_mem_buffer *rxb) | 3523 | struct iwl_rx_mem_buffer *rxb) |
3524 | { | 3524 | { |
3525 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 3525 | #ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT |
3526 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3526 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3527 | struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif); | 3527 | struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif); |
3528 | 3528 | ||
@@ -3540,7 +3540,7 @@ static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | |||
3540 | static void iwl_rx_pm_sleep_notif(struct iwl_priv *priv, | 3540 | static void iwl_rx_pm_sleep_notif(struct iwl_priv *priv, |
3541 | struct iwl_rx_mem_buffer *rxb) | 3541 | struct iwl_rx_mem_buffer *rxb) |
3542 | { | 3542 | { |
3543 | #ifdef CONFIG_IWLWIFI_DEBUG | 3543 | #ifdef CONFIG_IWL3945_DEBUG |
3544 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3544 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3545 | struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif); | 3545 | struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif); |
3546 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", | 3546 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", |
@@ -3586,7 +3586,7 @@ static void iwl_bg_beacon_update(struct work_struct *work) | |||
3586 | static void iwl_rx_beacon_notif(struct iwl_priv *priv, | 3586 | static void iwl_rx_beacon_notif(struct iwl_priv *priv, |
3587 | struct iwl_rx_mem_buffer *rxb) | 3587 | struct iwl_rx_mem_buffer *rxb) |
3588 | { | 3588 | { |
3589 | #ifdef CONFIG_IWLWIFI_DEBUG | 3589 | #ifdef CONFIG_IWL3945_DEBUG |
3590 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3590 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3591 | struct iwl_beacon_notif *beacon = &(pkt->u.beacon_status); | 3591 | struct iwl_beacon_notif *beacon = &(pkt->u.beacon_status); |
3592 | u8 rate = beacon->beacon_notify_hdr.rate; | 3592 | u8 rate = beacon->beacon_notify_hdr.rate; |
@@ -3609,7 +3609,7 @@ static void iwl_rx_beacon_notif(struct iwl_priv *priv, | |||
3609 | static void iwl_rx_reply_scan(struct iwl_priv *priv, | 3609 | static void iwl_rx_reply_scan(struct iwl_priv *priv, |
3610 | struct iwl_rx_mem_buffer *rxb) | 3610 | struct iwl_rx_mem_buffer *rxb) |
3611 | { | 3611 | { |
3612 | #ifdef CONFIG_IWLWIFI_DEBUG | 3612 | #ifdef CONFIG_IWL3945_DEBUG |
3613 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3613 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3614 | struct iwl_scanreq_notification *notif = | 3614 | struct iwl_scanreq_notification *notif = |
3615 | (struct iwl_scanreq_notification *)pkt->u.raw; | 3615 | (struct iwl_scanreq_notification *)pkt->u.raw; |
@@ -4370,7 +4370,7 @@ static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | |||
4370 | return rc; | 4370 | return rc; |
4371 | } | 4371 | } |
4372 | 4372 | ||
4373 | #ifdef CONFIG_IWLWIFI_DEBUG | 4373 | #ifdef CONFIG_IWL3945_DEBUG |
4374 | static void iwl_print_rx_config_cmd(struct iwl_rxon_cmd *rxon) | 4374 | static void iwl_print_rx_config_cmd(struct iwl_rxon_cmd *rxon) |
4375 | { | 4375 | { |
4376 | DECLARE_MAC_BUF(mac); | 4376 | DECLARE_MAC_BUF(mac); |
@@ -4602,7 +4602,7 @@ static void iwl_irq_handle_error(struct iwl_priv *priv) | |||
4602 | /* Cancel currently queued command. */ | 4602 | /* Cancel currently queued command. */ |
4603 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 4603 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
4604 | 4604 | ||
4605 | #ifdef CONFIG_IWLWIFI_DEBUG | 4605 | #ifdef CONFIG_IWL3945_DEBUG |
4606 | if (iwl_debug_level & IWL_DL_FW_ERRORS) { | 4606 | if (iwl_debug_level & IWL_DL_FW_ERRORS) { |
4607 | iwl_dump_nic_error_log(priv); | 4607 | iwl_dump_nic_error_log(priv); |
4608 | iwl_dump_nic_event_log(priv); | 4608 | iwl_dump_nic_event_log(priv); |
@@ -4651,7 +4651,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4651 | u32 inta, handled = 0; | 4651 | u32 inta, handled = 0; |
4652 | u32 inta_fh; | 4652 | u32 inta_fh; |
4653 | unsigned long flags; | 4653 | unsigned long flags; |
4654 | #ifdef CONFIG_IWLWIFI_DEBUG | 4654 | #ifdef CONFIG_IWL3945_DEBUG |
4655 | u32 inta_mask; | 4655 | u32 inta_mask; |
4656 | #endif | 4656 | #endif |
4657 | 4657 | ||
@@ -4669,7 +4669,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4669 | inta_fh = iwl_read32(priv, CSR_FH_INT_STATUS); | 4669 | inta_fh = iwl_read32(priv, CSR_FH_INT_STATUS); |
4670 | iwl_write32(priv, CSR_FH_INT_STATUS, inta_fh); | 4670 | iwl_write32(priv, CSR_FH_INT_STATUS, inta_fh); |
4671 | 4671 | ||
4672 | #ifdef CONFIG_IWLWIFI_DEBUG | 4672 | #ifdef CONFIG_IWL3945_DEBUG |
4673 | if (iwl_debug_level & IWL_DL_ISR) { | 4673 | if (iwl_debug_level & IWL_DL_ISR) { |
4674 | inta_mask = iwl_read32(priv, CSR_INT_MASK); /* just for debug */ | 4674 | inta_mask = iwl_read32(priv, CSR_INT_MASK); /* just for debug */ |
4675 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", | 4675 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", |
@@ -4702,7 +4702,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4702 | return; | 4702 | return; |
4703 | } | 4703 | } |
4704 | 4704 | ||
4705 | #ifdef CONFIG_IWLWIFI_DEBUG | 4705 | #ifdef CONFIG_IWL3945_DEBUG |
4706 | if (iwl_debug_level & (IWL_DL_ISR)) { | 4706 | if (iwl_debug_level & (IWL_DL_ISR)) { |
4707 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ | 4707 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ |
4708 | if (inta & CSR_INT_BIT_MAC_CLK_ACTV) | 4708 | if (inta & CSR_INT_BIT_MAC_CLK_ACTV) |
@@ -4800,7 +4800,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4800 | /* Re-enable all interrupts */ | 4800 | /* Re-enable all interrupts */ |
4801 | iwl_enable_interrupts(priv); | 4801 | iwl_enable_interrupts(priv); |
4802 | 4802 | ||
4803 | #ifdef CONFIG_IWLWIFI_DEBUG | 4803 | #ifdef CONFIG_IWL3945_DEBUG |
4804 | if (iwl_debug_level & (IWL_DL_ISR)) { | 4804 | if (iwl_debug_level & (IWL_DL_ISR)) { |
4805 | inta = iwl_read32(priv, CSR_INT); | 4805 | inta = iwl_read32(priv, CSR_INT); |
4806 | inta_mask = iwl_read32(priv, CSR_INT_MASK); | 4806 | inta_mask = iwl_read32(priv, CSR_INT_MASK); |
@@ -6813,9 +6813,9 @@ static void iwl_bg_post_associate(struct work_struct *data) | |||
6813 | 6813 | ||
6814 | iwl_sequence_reset(priv); | 6814 | iwl_sequence_reset(priv); |
6815 | 6815 | ||
6816 | #ifdef CONFIG_IWLWIFI_QOS | 6816 | #ifdef CONFIG_IWL3945_QOS |
6817 | iwl_activate_qos(priv, 0); | 6817 | iwl_activate_qos(priv, 0); |
6818 | #endif /* CONFIG_IWLWIFI_QOS */ | 6818 | #endif /* CONFIG_IWL3945_QOS */ |
6819 | mutex_unlock(&priv->mutex); | 6819 | mutex_unlock(&priv->mutex); |
6820 | } | 6820 | } |
6821 | 6821 | ||
@@ -7367,7 +7367,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7367 | const struct ieee80211_tx_queue_params *params) | 7367 | const struct ieee80211_tx_queue_params *params) |
7368 | { | 7368 | { |
7369 | struct iwl_priv *priv = hw->priv; | 7369 | struct iwl_priv *priv = hw->priv; |
7370 | #ifdef CONFIG_IWLWIFI_QOS | 7370 | #ifdef CONFIG_IWL3945_QOS |
7371 | unsigned long flags; | 7371 | unsigned long flags; |
7372 | int q; | 7372 | int q; |
7373 | #endif /* CONFIG_IWL_QOS */ | 7373 | #endif /* CONFIG_IWL_QOS */ |
@@ -7384,7 +7384,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7384 | return 0; | 7384 | return 0; |
7385 | } | 7385 | } |
7386 | 7386 | ||
7387 | #ifdef CONFIG_IWLWIFI_QOS | 7387 | #ifdef CONFIG_IWL3945_QOS |
7388 | if (!priv->qos_data.qos_enable) { | 7388 | if (!priv->qos_data.qos_enable) { |
7389 | priv->qos_data.qos_active = 0; | 7389 | priv->qos_data.qos_active = 0; |
7390 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); | 7390 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); |
@@ -7413,7 +7413,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7413 | 7413 | ||
7414 | mutex_unlock(&priv->mutex); | 7414 | mutex_unlock(&priv->mutex); |
7415 | 7415 | ||
7416 | #endif /*CONFIG_IWLWIFI_QOS */ | 7416 | #endif /*CONFIG_IWL3945_QOS */ |
7417 | 7417 | ||
7418 | IWL_DEBUG_MAC80211("leave\n"); | 7418 | IWL_DEBUG_MAC80211("leave\n"); |
7419 | return 0; | 7419 | return 0; |
@@ -7479,7 +7479,7 @@ static void iwl_mac_reset_tsf(struct ieee80211_hw *hw) | |||
7479 | mutex_lock(&priv->mutex); | 7479 | mutex_lock(&priv->mutex); |
7480 | IWL_DEBUG_MAC80211("enter\n"); | 7480 | IWL_DEBUG_MAC80211("enter\n"); |
7481 | 7481 | ||
7482 | #ifdef CONFIG_IWLWIFI_QOS | 7482 | #ifdef CONFIG_IWL3945_QOS |
7483 | iwl_reset_qos(priv); | 7483 | iwl_reset_qos(priv); |
7484 | #endif | 7484 | #endif |
7485 | cancel_delayed_work(&priv->post_associate); | 7485 | cancel_delayed_work(&priv->post_associate); |
@@ -7569,7 +7569,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
7569 | IWL_DEBUG_MAC80211("leave\n"); | 7569 | IWL_DEBUG_MAC80211("leave\n"); |
7570 | spin_unlock_irqrestore(&priv->lock, flags); | 7570 | spin_unlock_irqrestore(&priv->lock, flags); |
7571 | 7571 | ||
7572 | #ifdef CONFIG_IWLWIFI_QOS | 7572 | #ifdef CONFIG_IWL3945_QOS |
7573 | iwl_reset_qos(priv); | 7573 | iwl_reset_qos(priv); |
7574 | #endif | 7574 | #endif |
7575 | 7575 | ||
@@ -7586,7 +7586,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
7586 | * | 7586 | * |
7587 | *****************************************************************************/ | 7587 | *****************************************************************************/ |
7588 | 7588 | ||
7589 | #ifdef CONFIG_IWLWIFI_DEBUG | 7589 | #ifdef CONFIG_IWL3945_DEBUG |
7590 | 7590 | ||
7591 | /* | 7591 | /* |
7592 | * The following adds a new attribute to the sysfs representation | 7592 | * The following adds a new attribute to the sysfs representation |
@@ -7619,7 +7619,7 @@ static ssize_t store_debug_level(struct device_driver *d, | |||
7619 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, | 7619 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, |
7620 | show_debug_level, store_debug_level); | 7620 | show_debug_level, store_debug_level); |
7621 | 7621 | ||
7622 | #endif /* CONFIG_IWLWIFI_DEBUG */ | 7622 | #endif /* CONFIG_IWL3945_DEBUG */ |
7623 | 7623 | ||
7624 | static ssize_t show_rf_kill(struct device *d, | 7624 | static ssize_t show_rf_kill(struct device *d, |
7625 | struct device_attribute *attr, char *buf) | 7625 | struct device_attribute *attr, char *buf) |
@@ -7831,7 +7831,7 @@ static ssize_t store_tune(struct device *d, | |||
7831 | 7831 | ||
7832 | static DEVICE_ATTR(tune, S_IWUSR | S_IRUGO, show_tune, store_tune); | 7832 | static DEVICE_ATTR(tune, S_IWUSR | S_IRUGO, show_tune, store_tune); |
7833 | 7833 | ||
7834 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 7834 | #ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT |
7835 | 7835 | ||
7836 | static ssize_t show_measurement(struct device *d, | 7836 | static ssize_t show_measurement(struct device *d, |
7837 | struct device_attribute *attr, char *buf) | 7837 | struct device_attribute *attr, char *buf) |
@@ -7902,7 +7902,7 @@ static ssize_t store_measurement(struct device *d, | |||
7902 | 7902 | ||
7903 | static DEVICE_ATTR(measurement, S_IRUSR | S_IWUSR, | 7903 | static DEVICE_ATTR(measurement, S_IRUSR | S_IWUSR, |
7904 | show_measurement, store_measurement); | 7904 | show_measurement, store_measurement); |
7905 | #endif /* CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT */ | 7905 | #endif /* CONFIG_IWL3945_SPECTRUM_MEASUREMENT */ |
7906 | 7906 | ||
7907 | static ssize_t show_rate(struct device *d, | 7907 | static ssize_t show_rate(struct device *d, |
7908 | struct device_attribute *attr, char *buf) | 7908 | struct device_attribute *attr, char *buf) |
@@ -8280,7 +8280,7 @@ static struct attribute *iwl_sysfs_entries[] = { | |||
8280 | &dev_attr_dump_events.attr, | 8280 | &dev_attr_dump_events.attr, |
8281 | &dev_attr_flags.attr, | 8281 | &dev_attr_flags.attr, |
8282 | &dev_attr_filter_flags.attr, | 8282 | &dev_attr_filter_flags.attr, |
8283 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 8283 | #ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT |
8284 | &dev_attr_measurement.attr, | 8284 | &dev_attr_measurement.attr, |
8285 | #endif | 8285 | #endif |
8286 | &dev_attr_power_level.attr, | 8286 | &dev_attr_power_level.attr, |
@@ -8360,7 +8360,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
8360 | 8360 | ||
8361 | priv->pci_dev = pdev; | 8361 | priv->pci_dev = pdev; |
8362 | priv->antenna = (enum iwl_antenna)iwl_param_antenna; | 8362 | priv->antenna = (enum iwl_antenna)iwl_param_antenna; |
8363 | #ifdef CONFIG_IWLWIFI_DEBUG | 8363 | #ifdef CONFIG_IWL3945_DEBUG |
8364 | iwl_debug_level = iwl_param_debug; | 8364 | iwl_debug_level = iwl_param_debug; |
8365 | atomic_set(&priv->restrict_refcnt, 0); | 8365 | atomic_set(&priv->restrict_refcnt, 0); |
8366 | #endif | 8366 | #endif |
@@ -8475,7 +8475,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
8475 | goto out_iounmap; | 8475 | goto out_iounmap; |
8476 | } | 8476 | } |
8477 | 8477 | ||
8478 | #ifdef CONFIG_IWLWIFI_QOS | 8478 | #ifdef CONFIG_IWL3945_QOS |
8479 | if (iwl_param_qos_enable) | 8479 | if (iwl_param_qos_enable) |
8480 | priv->qos_data.qos_enable = 1; | 8480 | priv->qos_data.qos_enable = 1; |
8481 | 8481 | ||
@@ -8483,7 +8483,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
8483 | 8483 | ||
8484 | priv->qos_data.qos_active = 0; | 8484 | priv->qos_data.qos_active = 0; |
8485 | priv->qos_data.qos_cap.val = 0; | 8485 | priv->qos_data.qos_cap.val = 0; |
8486 | #endif /* CONFIG_IWLWIFI_QOS */ | 8486 | #endif /* CONFIG_IWL3945_QOS */ |
8487 | 8487 | ||
8488 | iwl_set_rxon_channel(priv, MODE_IEEE80211G, 6); | 8488 | iwl_set_rxon_channel(priv, MODE_IEEE80211G, 6); |
8489 | iwl_setup_deferred_work(priv); | 8489 | iwl_setup_deferred_work(priv); |
@@ -8743,7 +8743,7 @@ static int __init iwl_init(void) | |||
8743 | IWL_ERROR("Unable to initialize PCI module\n"); | 8743 | IWL_ERROR("Unable to initialize PCI module\n"); |
8744 | return ret; | 8744 | return ret; |
8745 | } | 8745 | } |
8746 | #ifdef CONFIG_IWLWIFI_DEBUG | 8746 | #ifdef CONFIG_IWL3945_DEBUG |
8747 | ret = driver_create_file(&iwl_driver.driver, &driver_attr_debug_level); | 8747 | ret = driver_create_file(&iwl_driver.driver, &driver_attr_debug_level); |
8748 | if (ret) { | 8748 | if (ret) { |
8749 | IWL_ERROR("Unable to create driver sysfs file\n"); | 8749 | IWL_ERROR("Unable to create driver sysfs file\n"); |
@@ -8757,7 +8757,7 @@ static int __init iwl_init(void) | |||
8757 | 8757 | ||
8758 | static void __exit iwl_exit(void) | 8758 | static void __exit iwl_exit(void) |
8759 | { | 8759 | { |
8760 | #ifdef CONFIG_IWLWIFI_DEBUG | 8760 | #ifdef CONFIG_IWL3945_DEBUG |
8761 | driver_remove_file(&iwl_driver.driver, &driver_attr_debug_level); | 8761 | driver_remove_file(&iwl_driver.driver, &driver_attr_debug_level); |
8762 | #endif | 8762 | #endif |
8763 | pci_unregister_driver(&iwl_driver); | 8763 | pci_unregister_driver(&iwl_driver); |