aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-10-27 11:49:08 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-11 05:58:58 -0500
commit778e6502414a35e3db8f3637a600b6645ac0b815 (patch)
tree346671bbbe3b85119baad4d685b425dc5dc1379a /drivers/net
parent8a8109169bcb3390a46c81a45fbfdd4801fb1adc (diff)
ath6kl: don't print an error for canceled packets
ath6kl_tx_complete() was printing an error when packet was canceled. That causes unnecessary errors when hardware is powered off. Also change the error to a warning and cleanup the message. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath6kl/txrx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index ab9a5c15f616..9dfd7f56d043 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -606,8 +606,9 @@ void ath6kl_tx_complete(void *context, struct list_head *packet_queue)
606 606
607 vif->net_stats.tx_errors++; 607 vif->net_stats.tx_errors++;
608 608
609 if (status != -ENOSPC) 609 if (status != -ENOSPC && status != -ECANCELED)
610 ath6kl_err("tx error, status: 0x%x\n", status); 610 ath6kl_warn("tx complete error: %d\n", status);
611
611 ath6kl_dbg(ATH6KL_DBG_WLAN_TX, 612 ath6kl_dbg(ATH6KL_DBG_WLAN_TX,
612 "%s: skb=0x%p data=0x%p len=0x%x eid=%d %s\n", 613 "%s: skb=0x%p data=0x%p len=0x%x eid=%d %s\n",
613 __func__, skb, packet->buf, packet->act_len, 614 __func__, skb, packet->buf, packet->act_len,