aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-04-21 13:55:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-21 16:43:34 -0400
commitd2ee9cd2e2bdfa2e5817142d6f044697066d3977 (patch)
tree9e4dec9fd4c009b8ce12f3bd1529ef2b455d3cc1 /drivers
parentc491bf1205485c83086bf4f2f26ca6598d48133a (diff)
iwlwifi: add debugging for TX path
When debugging TX issues it is helpful to know the seq nr of the frame being transmitted. The seq nr is printed as part of ucode's log informing us which frame is being processed. Having this information printed in driver log makes it easy to match activities between driver and firmware. Also make possible to print TX flags directly. These are already printed as part of entire TX command, but having it printed directly in cpu format makes it easier to look at. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c
index 1f117a49c569..8ef53e28176f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-tx.c
@@ -875,8 +875,10 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
875 txq->need_update = 0; 875 txq->need_update = 0;
876 } 876 }
877 877
878 IWL_DEBUG_TX(priv, "sequence nr = 0X%x \n",
879 le16_to_cpu(out_cmd->hdr.sequence));
880 IWL_DEBUG_TX(priv, "tx_flags = 0X%x \n", le32_to_cpu(tx_cmd->tx_flags));
878 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd, sizeof(*tx_cmd)); 881 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd, sizeof(*tx_cmd));
879
880 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, hdr_len); 882 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, hdr_len);
881 883
882 /* Set up entry for this TFD in Tx byte-count array */ 884 /* Set up entry for this TFD in Tx byte-count array */
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 1299479f99dc..acefc3721267 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -1146,8 +1146,10 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
1146 txq->need_update = 0; 1146 txq->need_update = 0;
1147 } 1147 }
1148 1148
1149 IWL_DEBUG_TX(priv, "sequence nr = 0X%x \n",
1150 le16_to_cpu(out_cmd->hdr.sequence));
1151 IWL_DEBUG_TX(priv, "tx_flags = 0X%x \n", le32_to_cpu(tx->tx_flags));
1149 iwl_print_hex_dump(priv, IWL_DL_TX, tx, sizeof(*tx)); 1152 iwl_print_hex_dump(priv, IWL_DL_TX, tx, sizeof(*tx));
1150
1151 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx->hdr, 1153 iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx->hdr,
1152 ieee80211_hdrlen(fc)); 1154 ieee80211_hdrlen(fc));
1153 1155