From: Kalle Valo Date: Thu, 27 Oct 2011 15:49:08 +0000 (+0300) Subject: ath6kl: don't print an error for canceled packets X-Git-Tag: firefly_0821_release~3680^2~2381^2~57^2~287^2~269 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=778e6502414a35e3db8f3637a600b6645ac0b815;p=firefly-linux-kernel-4.4.55.git 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 --- 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) vif->net_stats.tx_errors++; - if (status != -ENOSPC) - ath6kl_err("tx error, status: 0x%x\n", status); + if (status != -ENOSPC && status != -ECANCELED) + ath6kl_warn("tx complete error: %d\n", status); + ath6kl_dbg(ATH6KL_DBG_WLAN_TX, "%s: skb=0x%p data=0x%p len=0x%x eid=%d %s\n", __func__, skb, packet->buf, packet->act_len,