diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-12 19:58:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:46 -0400 |
commit | 0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (patch) | |
tree | b0876013471917412ffe54b0b5badcc4de3fb18e /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | 8236e183fc53be2b5d81a4f547f9c5b645e10fe0 (diff) |
iwlwifi: rename iwl-4965-debug.h back to iwl-debug.h
This patch removes iwl-4965-debug.h to iwl-debug.h
It will be used by more NICs
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@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.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index d0cb36b9efe3..e05bc902ee6e 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -76,7 +76,7 @@ int iwl4965_param_amsdu_size_8K; /* def: enable 8K amsdu size */ | |||
76 | 76 | ||
77 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link 4965AGN driver for Linux" | 77 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link 4965AGN driver for Linux" |
78 | 78 | ||
79 | #ifdef CONFIG_IWL4965_DEBUG | 79 | #ifdef CONFIG_IWLWIFI_DEBUG |
80 | #define VD "d" | 80 | #define VD "d" |
81 | #else | 81 | #else |
82 | #define VD | 82 | #define VD |
@@ -2578,7 +2578,7 @@ static int iwl4965_get_sta_id(struct iwl4965_priv *priv, | |||
2578 | IWL_DEBUG_DROP("Station %s not in station map. " | 2578 | IWL_DEBUG_DROP("Station %s not in station map. " |
2579 | "Defaulting to broadcast...\n", | 2579 | "Defaulting to broadcast...\n", |
2580 | print_mac(mac, hdr->addr1)); | 2580 | print_mac(mac, hdr->addr1)); |
2581 | iwl4965_print_hex_dump(IWL_DL_DROP, (u8 *) hdr, sizeof(*hdr)); | 2581 | iwl_print_hex_dump(IWL_DL_DROP, (u8 *) hdr, sizeof(*hdr)); |
2582 | return priv->hw_setting.bcast_sta_id; | 2582 | return priv->hw_setting.bcast_sta_id; |
2583 | 2583 | ||
2584 | default: | 2584 | default: |
@@ -2634,7 +2634,7 @@ static int iwl4965_tx_skb(struct iwl4965_priv *priv, | |||
2634 | 2634 | ||
2635 | fc = le16_to_cpu(hdr->frame_control); | 2635 | fc = le16_to_cpu(hdr->frame_control); |
2636 | 2636 | ||
2637 | #ifdef CONFIG_IWL4965_DEBUG | 2637 | #ifdef CONFIG_IWLWIFI_DEBUG |
2638 | if (ieee80211_is_auth(fc)) | 2638 | if (ieee80211_is_auth(fc)) |
2639 | IWL_DEBUG_TX("Sending AUTH frame\n"); | 2639 | IWL_DEBUG_TX("Sending AUTH frame\n"); |
2640 | else if (ieee80211_is_assoc_request(fc)) | 2640 | else if (ieee80211_is_assoc_request(fc)) |
@@ -2792,10 +2792,10 @@ static int iwl4965_tx_skb(struct iwl4965_priv *priv, | |||
2792 | txq->need_update = 0; | 2792 | txq->need_update = 0; |
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | iwl4965_print_hex_dump(IWL_DL_TX, out_cmd->cmd.payload, | 2795 | iwl_print_hex_dump(IWL_DL_TX, out_cmd->cmd.payload, |
2796 | sizeof(out_cmd->cmd.tx)); | 2796 | sizeof(out_cmd->cmd.tx)); |
2797 | 2797 | ||
2798 | iwl4965_print_hex_dump(IWL_DL_TX, (u8 *)out_cmd->cmd.tx.hdr, | 2798 | iwl_print_hex_dump(IWL_DL_TX, (u8 *)out_cmd->cmd.tx.hdr, |
2799 | ieee80211_get_hdrlen(fc)); | 2799 | ieee80211_get_hdrlen(fc)); |
2800 | 2800 | ||
2801 | /* Set up entry for this TFD in Tx byte-count array */ | 2801 | /* Set up entry for this TFD in Tx byte-count array */ |
@@ -3590,7 +3590,7 @@ static void iwl4965_rx_spectrum_measure_notif(struct iwl4965_priv *priv, | |||
3590 | static void iwl4965_rx_pm_sleep_notif(struct iwl4965_priv *priv, | 3590 | static void iwl4965_rx_pm_sleep_notif(struct iwl4965_priv *priv, |
3591 | struct iwl4965_rx_mem_buffer *rxb) | 3591 | struct iwl4965_rx_mem_buffer *rxb) |
3592 | { | 3592 | { |
3593 | #ifdef CONFIG_IWL4965_DEBUG | 3593 | #ifdef CONFIG_IWLWIFI_DEBUG |
3594 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3594 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; |
3595 | struct iwl4965_sleep_notification *sleep = &(pkt->u.sleep_notif); | 3595 | struct iwl4965_sleep_notification *sleep = &(pkt->u.sleep_notif); |
3596 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", | 3596 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", |
@@ -3605,7 +3605,7 @@ static void iwl4965_rx_pm_debug_statistics_notif(struct iwl4965_priv *priv, | |||
3605 | IWL_DEBUG_RADIO("Dumping %d bytes of unhandled " | 3605 | IWL_DEBUG_RADIO("Dumping %d bytes of unhandled " |
3606 | "notification for %s:\n", | 3606 | "notification for %s:\n", |
3607 | le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd)); | 3607 | le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd)); |
3608 | iwl4965_print_hex_dump(IWL_DL_RADIO, pkt->u.raw, le32_to_cpu(pkt->len)); | 3608 | iwl_print_hex_dump(IWL_DL_RADIO, pkt->u.raw, le32_to_cpu(pkt->len)); |
3609 | } | 3609 | } |
3610 | 3610 | ||
3611 | static void iwl4965_bg_beacon_update(struct work_struct *work) | 3611 | static void iwl4965_bg_beacon_update(struct work_struct *work) |
@@ -3636,7 +3636,7 @@ static void iwl4965_bg_beacon_update(struct work_struct *work) | |||
3636 | static void iwl4965_rx_beacon_notif(struct iwl4965_priv *priv, | 3636 | static void iwl4965_rx_beacon_notif(struct iwl4965_priv *priv, |
3637 | struct iwl4965_rx_mem_buffer *rxb) | 3637 | struct iwl4965_rx_mem_buffer *rxb) |
3638 | { | 3638 | { |
3639 | #ifdef CONFIG_IWL4965_DEBUG | 3639 | #ifdef CONFIG_IWLWIFI_DEBUG |
3640 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3640 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; |
3641 | struct iwl4965_beacon_notif *beacon = &(pkt->u.beacon_status); | 3641 | struct iwl4965_beacon_notif *beacon = &(pkt->u.beacon_status); |
3642 | u8 rate = iwl4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); | 3642 | u8 rate = iwl4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); |
@@ -3659,7 +3659,7 @@ static void iwl4965_rx_beacon_notif(struct iwl4965_priv *priv, | |||
3659 | static void iwl4965_rx_reply_scan(struct iwl4965_priv *priv, | 3659 | static void iwl4965_rx_reply_scan(struct iwl4965_priv *priv, |
3660 | struct iwl4965_rx_mem_buffer *rxb) | 3660 | struct iwl4965_rx_mem_buffer *rxb) |
3661 | { | 3661 | { |
3662 | #ifdef CONFIG_IWL4965_DEBUG | 3662 | #ifdef CONFIG_IWLWIFI_DEBUG |
3663 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3663 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; |
3664 | struct iwl4965_scanreq_notification *notif = | 3664 | struct iwl4965_scanreq_notification *notif = |
3665 | (struct iwl4965_scanreq_notification *)pkt->u.raw; | 3665 | (struct iwl4965_scanreq_notification *)pkt->u.raw; |
@@ -4510,13 +4510,13 @@ static int iwl4965_tx_queue_update_write_ptr(struct iwl4965_priv *priv, | |||
4510 | return rc; | 4510 | return rc; |
4511 | } | 4511 | } |
4512 | 4512 | ||
4513 | #ifdef CONFIG_IWL4965_DEBUG | 4513 | #ifdef CONFIG_IWLWIFI_DEBUG |
4514 | static void iwl4965_print_rx_config_cmd(struct iwl4965_rxon_cmd *rxon) | 4514 | static void iwl4965_print_rx_config_cmd(struct iwl4965_rxon_cmd *rxon) |
4515 | { | 4515 | { |
4516 | DECLARE_MAC_BUF(mac); | 4516 | DECLARE_MAC_BUF(mac); |
4517 | 4517 | ||
4518 | IWL_DEBUG_RADIO("RX CONFIG:\n"); | 4518 | IWL_DEBUG_RADIO("RX CONFIG:\n"); |
4519 | iwl4965_print_hex_dump(IWL_DL_RADIO, (u8 *) rxon, sizeof(*rxon)); | 4519 | iwl_print_hex_dump(IWL_DL_RADIO, (u8 *) rxon, sizeof(*rxon)); |
4520 | IWL_DEBUG_RADIO("u16 channel: 0x%x\n", le16_to_cpu(rxon->channel)); | 4520 | IWL_DEBUG_RADIO("u16 channel: 0x%x\n", le16_to_cpu(rxon->channel)); |
4521 | IWL_DEBUG_RADIO("u32 flags: 0x%08X\n", le32_to_cpu(rxon->flags)); | 4521 | IWL_DEBUG_RADIO("u32 flags: 0x%08X\n", le32_to_cpu(rxon->flags)); |
4522 | IWL_DEBUG_RADIO("u32 filter_flags: 0x%08x\n", | 4522 | IWL_DEBUG_RADIO("u32 filter_flags: 0x%08x\n", |
@@ -4733,8 +4733,8 @@ static void iwl4965_irq_handle_error(struct iwl4965_priv *priv) | |||
4733 | /* Cancel currently queued command. */ | 4733 | /* Cancel currently queued command. */ |
4734 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 4734 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
4735 | 4735 | ||
4736 | #ifdef CONFIG_IWL4965_DEBUG | 4736 | #ifdef CONFIG_IWLWIFI_DEBUG |
4737 | if (iwl4965_debug_level & IWL_DL_FW_ERRORS) { | 4737 | if (iwl_debug_level & IWL_DL_FW_ERRORS) { |
4738 | iwl4965_dump_nic_error_log(priv); | 4738 | iwl4965_dump_nic_error_log(priv); |
4739 | iwl4965_dump_nic_event_log(priv); | 4739 | iwl4965_dump_nic_event_log(priv); |
4740 | iwl4965_print_rx_config_cmd(&priv->staging_rxon); | 4740 | iwl4965_print_rx_config_cmd(&priv->staging_rxon); |
@@ -4782,7 +4782,7 @@ static void iwl4965_irq_tasklet(struct iwl4965_priv *priv) | |||
4782 | u32 inta, handled = 0; | 4782 | u32 inta, handled = 0; |
4783 | u32 inta_fh; | 4783 | u32 inta_fh; |
4784 | unsigned long flags; | 4784 | unsigned long flags; |
4785 | #ifdef CONFIG_IWL4965_DEBUG | 4785 | #ifdef CONFIG_IWLWIFI_DEBUG |
4786 | u32 inta_mask; | 4786 | u32 inta_mask; |
4787 | #endif | 4787 | #endif |
4788 | 4788 | ||
@@ -4800,8 +4800,8 @@ static void iwl4965_irq_tasklet(struct iwl4965_priv *priv) | |||
4800 | inta_fh = iwl4965_read32(priv, CSR_FH_INT_STATUS); | 4800 | inta_fh = iwl4965_read32(priv, CSR_FH_INT_STATUS); |
4801 | iwl4965_write32(priv, CSR_FH_INT_STATUS, inta_fh); | 4801 | iwl4965_write32(priv, CSR_FH_INT_STATUS, inta_fh); |
4802 | 4802 | ||
4803 | #ifdef CONFIG_IWL4965_DEBUG | 4803 | #ifdef CONFIG_IWLWIFI_DEBUG |
4804 | if (iwl4965_debug_level & IWL_DL_ISR) { | 4804 | if (iwl_debug_level & IWL_DL_ISR) { |
4805 | /* just for debug */ | 4805 | /* just for debug */ |
4806 | inta_mask = iwl4965_read32(priv, CSR_INT_MASK); | 4806 | inta_mask = iwl4965_read32(priv, CSR_INT_MASK); |
4807 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", | 4807 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", |
@@ -4834,8 +4834,8 @@ static void iwl4965_irq_tasklet(struct iwl4965_priv *priv) | |||
4834 | return; | 4834 | return; |
4835 | } | 4835 | } |
4836 | 4836 | ||
4837 | #ifdef CONFIG_IWL4965_DEBUG | 4837 | #ifdef CONFIG_IWLWIFI_DEBUG |
4838 | if (iwl4965_debug_level & (IWL_DL_ISR)) { | 4838 | if (iwl_debug_level & (IWL_DL_ISR)) { |
4839 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ | 4839 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ |
4840 | if (inta & CSR_INT_BIT_SCD) | 4840 | if (inta & CSR_INT_BIT_SCD) |
4841 | IWL_DEBUG_ISR("Scheduler finished to transmit " | 4841 | IWL_DEBUG_ISR("Scheduler finished to transmit " |
@@ -4925,8 +4925,8 @@ static void iwl4965_irq_tasklet(struct iwl4965_priv *priv) | |||
4925 | /* Re-enable all interrupts */ | 4925 | /* Re-enable all interrupts */ |
4926 | iwl4965_enable_interrupts(priv); | 4926 | iwl4965_enable_interrupts(priv); |
4927 | 4927 | ||
4928 | #ifdef CONFIG_IWL4965_DEBUG | 4928 | #ifdef CONFIG_IWLWIFI_DEBUG |
4929 | if (iwl4965_debug_level & (IWL_DL_ISR)) { | 4929 | if (iwl_debug_level & (IWL_DL_ISR)) { |
4930 | inta = iwl4965_read32(priv, CSR_INT); | 4930 | inta = iwl4965_read32(priv, CSR_INT); |
4931 | inta_mask = iwl4965_read32(priv, CSR_INT_MASK); | 4931 | inta_mask = iwl4965_read32(priv, CSR_INT_MASK); |
4932 | inta_fh = iwl4965_read32(priv, CSR_FH_INT_STATUS); | 4932 | inta_fh = iwl4965_read32(priv, CSR_FH_INT_STATUS); |
@@ -7916,7 +7916,7 @@ static int iwl4965_mac_conf_ht(struct ieee80211_hw *hw, | |||
7916 | * | 7916 | * |
7917 | *****************************************************************************/ | 7917 | *****************************************************************************/ |
7918 | 7918 | ||
7919 | #ifdef CONFIG_IWL4965_DEBUG | 7919 | #ifdef CONFIG_IWLWIFI_DEBUG |
7920 | 7920 | ||
7921 | /* | 7921 | /* |
7922 | * The following adds a new attribute to the sysfs representation | 7922 | * The following adds a new attribute to the sysfs representation |
@@ -7928,7 +7928,7 @@ static int iwl4965_mac_conf_ht(struct ieee80211_hw *hw, | |||
7928 | 7928 | ||
7929 | static ssize_t show_debug_level(struct device_driver *d, char *buf) | 7929 | static ssize_t show_debug_level(struct device_driver *d, char *buf) |
7930 | { | 7930 | { |
7931 | return sprintf(buf, "0x%08X\n", iwl4965_debug_level); | 7931 | return sprintf(buf, "0x%08X\n", iwl_debug_level); |
7932 | } | 7932 | } |
7933 | static ssize_t store_debug_level(struct device_driver *d, | 7933 | static ssize_t store_debug_level(struct device_driver *d, |
7934 | const char *buf, size_t count) | 7934 | const char *buf, size_t count) |
@@ -7941,7 +7941,7 @@ static ssize_t store_debug_level(struct device_driver *d, | |||
7941 | printk(KERN_INFO DRV_NAME | 7941 | printk(KERN_INFO DRV_NAME |
7942 | ": %s is not in hex or decimal form.\n", buf); | 7942 | ": %s is not in hex or decimal form.\n", buf); |
7943 | else | 7943 | else |
7944 | iwl4965_debug_level = val; | 7944 | iwl_debug_level = val; |
7945 | 7945 | ||
7946 | return strnlen(buf, count); | 7946 | return strnlen(buf, count); |
7947 | } | 7947 | } |
@@ -7949,7 +7949,7 @@ static ssize_t store_debug_level(struct device_driver *d, | |||
7949 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, | 7949 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, |
7950 | show_debug_level, store_debug_level); | 7950 | show_debug_level, store_debug_level); |
7951 | 7951 | ||
7952 | #endif /* CONFIG_IWL4965_DEBUG */ | 7952 | #endif /* CONFIG_IWLWIFI_DEBUG */ |
7953 | 7953 | ||
7954 | static ssize_t show_rf_kill(struct device *d, | 7954 | static ssize_t show_rf_kill(struct device *d, |
7955 | struct device_attribute *attr, char *buf) | 7955 | struct device_attribute *attr, char *buf) |
@@ -8548,8 +8548,8 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
8548 | 8548 | ||
8549 | priv->pci_dev = pdev; | 8549 | priv->pci_dev = pdev; |
8550 | priv->antenna = (enum iwl4965_antenna)iwl4965_param_antenna; | 8550 | priv->antenna = (enum iwl4965_antenna)iwl4965_param_antenna; |
8551 | #ifdef CONFIG_IWL4965_DEBUG | 8551 | #ifdef CONFIG_IWLWIFI_DEBUG |
8552 | iwl4965_debug_level = iwl4965_param_debug; | 8552 | iwl_debug_level = iwl4965_param_debug; |
8553 | atomic_set(&priv->restrict_refcnt, 0); | 8553 | atomic_set(&priv->restrict_refcnt, 0); |
8554 | #endif | 8554 | #endif |
8555 | priv->retry_rate = 1; | 8555 | priv->retry_rate = 1; |
@@ -8878,7 +8878,7 @@ static int __init iwl4965_init(void) | |||
8878 | IWL_ERROR("Unable to initialize PCI module\n"); | 8878 | IWL_ERROR("Unable to initialize PCI module\n"); |
8879 | return ret; | 8879 | return ret; |
8880 | } | 8880 | } |
8881 | #ifdef CONFIG_IWL4965_DEBUG | 8881 | #ifdef CONFIG_IWLWIFI_DEBUG |
8882 | ret = driver_create_file(&iwl4965_driver.driver, &driver_attr_debug_level); | 8882 | ret = driver_create_file(&iwl4965_driver.driver, &driver_attr_debug_level); |
8883 | if (ret) { | 8883 | if (ret) { |
8884 | IWL_ERROR("Unable to create driver sysfs file\n"); | 8884 | IWL_ERROR("Unable to create driver sysfs file\n"); |
@@ -8892,7 +8892,7 @@ static int __init iwl4965_init(void) | |||
8892 | 8892 | ||
8893 | static void __exit iwl4965_exit(void) | 8893 | static void __exit iwl4965_exit(void) |
8894 | { | 8894 | { |
8895 | #ifdef CONFIG_IWL4965_DEBUG | 8895 | #ifdef CONFIG_IWLWIFI_DEBUG |
8896 | driver_remove_file(&iwl4965_driver.driver, &driver_attr_debug_level); | 8896 | driver_remove_file(&iwl4965_driver.driver, &driver_attr_debug_level); |
8897 | #endif | 8897 | #endif |
8898 | pci_unregister_driver(&iwl4965_driver); | 8898 | pci_unregister_driver(&iwl4965_driver); |