diff options
author | Chatre, Reinette <reinette.chatre@intel.com> | 2009-01-19 18:30:24 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:55 -0500 |
commit | 638d0eb9197d1e285451f6594184fcfc9c2a5d44 (patch) | |
tree | 5f253a06f7d7bf82129312fe2beb72d73cf4d54c | |
parent | af0053d660f7c330ed1a5c6538938283fd79662f (diff) |
iwl3945: add debugging for wrong command queue
We encountered a problem related to this BUG and need to obtain more
debugging information. See bug report at
http://marc.info/?l=linux-wireless&m=123147215829854&w=2
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index d8cb94894d51..d1efdc7021b1 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3066,7 +3066,14 @@ static void iwl3945_tx_cmd_complete(struct iwl_priv *priv, | |||
3066 | int cmd_index; | 3066 | int cmd_index; |
3067 | struct iwl_cmd *cmd; | 3067 | struct iwl_cmd *cmd; |
3068 | 3068 | ||
3069 | BUG_ON(txq_id != IWL_CMD_QUEUE_NUM); | 3069 | if (WARN(txq_id != IWL_CMD_QUEUE_NUM, |
3070 | "wrong command queue %d, sequence 0x%X readp=%d writep=%d\n", | ||
3071 | txq_id, sequence, | ||
3072 | priv->txq[IWL_CMD_QUEUE_NUM].q.read_ptr, | ||
3073 | priv->txq[IWL_CMD_QUEUE_NUM].q.write_ptr)) { | ||
3074 | iwl_print_hex_dump(priv, IWL_DL_INFO , rxb, 32); | ||
3075 | return; | ||
3076 | } | ||
3070 | 3077 | ||
3071 | cmd_index = get_cmd_index(&priv->txq[IWL_CMD_QUEUE_NUM].q, index, huge); | 3078 | cmd_index = get_cmd_index(&priv->txq[IWL_CMD_QUEUE_NUM].q, index, huge); |
3072 | cmd = priv->txq[IWL_CMD_QUEUE_NUM].cmd[cmd_index]; | 3079 | cmd = priv->txq[IWL_CMD_QUEUE_NUM].cmd[cmd_index]; |