diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2009-10-16 01:18:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:25 -0400 |
commit | 69cf6e2d5bd90436a0fa6cef2f4d65583faef388 (patch) | |
tree | d49542d9185b99e67a86a9dff87376d0c14cd234 /drivers/net/wireless | |
parent | 6a79c9f62a87e39a265f9b855911fbc1f094ded0 (diff) |
iwmc3200wifi: Improve rx debug
We display the correct DROP/RELEASE string for each rx packets, and when
it's dropped we also display the reason.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index 14a2a0b3d614..225b1d3b2735 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -422,7 +422,9 @@ static int iwm_ntf_rx_ticket(struct iwm_priv *iwm, u8 *buf, | |||
422 | if (IS_ERR(ticket_node)) | 422 | if (IS_ERR(ticket_node)) |
423 | return PTR_ERR(ticket_node); | 423 | return PTR_ERR(ticket_node); |
424 | 424 | ||
425 | IWM_DBG_RX(iwm, DBG, "TICKET RELEASE(%d)\n", | 425 | IWM_DBG_RX(iwm, DBG, "TICKET %s(%d)\n", |
426 | ticket->action == IWM_RX_TICKET_RELEASE ? | ||
427 | "RELEASE" : "DROP", | ||
426 | ticket->id); | 428 | ticket->id); |
427 | list_add_tail(&ticket_node->node, &iwm->rx_tickets); | 429 | list_add_tail(&ticket_node->node, &iwm->rx_tickets); |
428 | 430 | ||
@@ -1457,7 +1459,8 @@ static void iwm_rx_process_packet(struct iwm_priv *iwm, | |||
1457 | } | 1459 | } |
1458 | break; | 1460 | break; |
1459 | case IWM_RX_TICKET_DROP: | 1461 | case IWM_RX_TICKET_DROP: |
1460 | IWM_DBG_RX(iwm, DBG, "DROP packet\n"); | 1462 | IWM_DBG_RX(iwm, DBG, "DROP packet: 0x%x\n", |
1463 | le16_to_cpu(ticket_node->ticket->flags)); | ||
1461 | kfree_skb(packet->skb); | 1464 | kfree_skb(packet->skb); |
1462 | break; | 1465 | break; |
1463 | default: | 1466 | default: |