diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-11-06 17:52:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 15:23:41 -0500 |
commit | a643565efcdafdc37638aa5131ced91b2d3ddcb2 (patch) | |
tree | 5e1c868680309847bacd21b981cb677f6a8794e3 /drivers/net | |
parent | a3b6bd5bf23c5cd95389e24121da02d2330eaf21 (diff) |
iwlwifi: print rx_on config to help debug
To help debug rx related issues, if IWL_DEBUG_RADIO flag is set, print
the rxon configuration when rxon host command send to uCode.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index b5fe8f87aa7..1710815691d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -133,6 +133,7 @@ int iwl_commit_rxon(struct iwl_priv *priv) | |||
133 | } | 133 | } |
134 | 134 | ||
135 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 135 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
136 | iwl_print_rx_config_cmd(priv); | ||
136 | return 0; | 137 | return 0; |
137 | } | 138 | } |
138 | 139 | ||
@@ -228,6 +229,7 @@ int iwl_commit_rxon(struct iwl_priv *priv) | |||
228 | } | 229 | } |
229 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 230 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
230 | } | 231 | } |
232 | iwl_print_rx_config_cmd(priv); | ||
231 | 233 | ||
232 | iwl_init_sensitivity(priv); | 234 | iwl_init_sensitivity(priv); |
233 | 235 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index e0b5b4aef41..f88a1cb7a12 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1328,7 +1328,7 @@ void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
1328 | EXPORT_SYMBOL(iwl_rx_csa); | 1328 | EXPORT_SYMBOL(iwl_rx_csa); |
1329 | 1329 | ||
1330 | #ifdef CONFIG_IWLWIFI_DEBUG | 1330 | #ifdef CONFIG_IWLWIFI_DEBUG |
1331 | static void iwl_print_rx_config_cmd(struct iwl_priv *priv) | 1331 | void iwl_print_rx_config_cmd(struct iwl_priv *priv) |
1332 | { | 1332 | { |
1333 | struct iwl_rxon_cmd *rxon = &priv->staging_rxon; | 1333 | struct iwl_rxon_cmd *rxon = &priv->staging_rxon; |
1334 | 1334 | ||
@@ -1346,6 +1346,7 @@ static void iwl_print_rx_config_cmd(struct iwl_priv *priv) | |||
1346 | IWL_DEBUG_RADIO(priv, "u8[6] bssid_addr: %pM\n", rxon->bssid_addr); | 1346 | IWL_DEBUG_RADIO(priv, "u8[6] bssid_addr: %pM\n", rxon->bssid_addr); |
1347 | IWL_DEBUG_RADIO(priv, "u16 assoc_id: 0x%x\n", le16_to_cpu(rxon->assoc_id)); | 1347 | IWL_DEBUG_RADIO(priv, "u16 assoc_id: 0x%x\n", le16_to_cpu(rxon->assoc_id)); |
1348 | } | 1348 | } |
1349 | EXPORT_SYMBOL(iwl_print_rx_config_cmd); | ||
1349 | #endif | 1350 | #endif |
1350 | /** | 1351 | /** |
1351 | * iwl_irq_handle_error - called for HW or SW error interrupt from card | 1352 | * iwl_irq_handle_error - called for HW or SW error interrupt from card |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 9574d8f3353..3f97036ac29 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -579,6 +579,7 @@ int iwl_pci_resume(struct pci_dev *pdev); | |||
579 | #ifdef CONFIG_IWLWIFI_DEBUG | 579 | #ifdef CONFIG_IWLWIFI_DEBUG |
580 | void iwl_dump_nic_event_log(struct iwl_priv *priv); | 580 | void iwl_dump_nic_event_log(struct iwl_priv *priv); |
581 | void iwl_dump_nic_error_log(struct iwl_priv *priv); | 581 | void iwl_dump_nic_error_log(struct iwl_priv *priv); |
582 | void iwl_print_rx_config_cmd(struct iwl_priv *priv); | ||
582 | #else | 583 | #else |
583 | static inline void iwl_dump_nic_event_log(struct iwl_priv *priv) | 584 | static inline void iwl_dump_nic_event_log(struct iwl_priv *priv) |
584 | { | 585 | { |
@@ -587,6 +588,10 @@ static inline void iwl_dump_nic_event_log(struct iwl_priv *priv) | |||
587 | static inline void iwl_dump_nic_error_log(struct iwl_priv *priv) | 588 | static inline void iwl_dump_nic_error_log(struct iwl_priv *priv) |
588 | { | 589 | { |
589 | } | 590 | } |
591 | |||
592 | static inline void iwl_print_rx_config_cmd(struct iwl_priv *priv) | ||
593 | { | ||
594 | } | ||
590 | #endif | 595 | #endif |
591 | 596 | ||
592 | void iwl_clear_isr_stats(struct iwl_priv *priv); | 597 | void iwl_clear_isr_stats(struct iwl_priv *priv); |