Skip to content

Commit

Permalink
ath6kl: don't print an error for canceled packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kalle Valo committed Nov 11, 2011
1 parent 8a81091 commit 778e650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/ath/ath6kl/txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 778e650

Please sign in to comment.