Commit 778e6502 authored by Kalle Valo's avatar Kalle Valo

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: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 8a810916
...@@ -606,8 +606,9 @@ void ath6kl_tx_complete(void *context, struct list_head *packet_queue) ...@@ -606,8 +606,9 @@ void ath6kl_tx_complete(void *context, struct list_head *packet_queue)
vif->net_stats.tx_errors++; vif->net_stats.tx_errors++;
if (status != -ENOSPC) if (status != -ENOSPC && status != -ECANCELED)
ath6kl_err("tx error, status: 0x%x\n", status); ath6kl_warn("tx complete error: %d\n", status);
ath6kl_dbg(ATH6KL_DBG_WLAN_TX, ath6kl_dbg(ATH6KL_DBG_WLAN_TX,
"%s: skb=0x%p data=0x%p len=0x%x eid=%d %s\n", "%s: skb=0x%p data=0x%p len=0x%x eid=%d %s\n",
__func__, skb, packet->buf, packet->act_len, __func__, skb, packet->buf, packet->act_len,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment