Commit 1881ced5 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by Kalle Valo

ath6kl: Update netstats for some of the tx failrues in ath6kl_data_tx()

There are few cases where the tx skb is dropped but netstats is
not updated, fix this.
Signed-off-by: default avatarVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 096797ab
...@@ -362,15 +362,11 @@ int ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev) ...@@ -362,15 +362,11 @@ int ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev)
skb, skb->data, skb->len); skb, skb->data, skb->len);
/* If target is not associated */ /* If target is not associated */
if (!test_bit(CONNECTED, &vif->flags)) { if (!test_bit(CONNECTED, &vif->flags))
dev_kfree_skb(skb); goto fail_tx;
return 0;
}
if (WARN_ON_ONCE(ar->state != ATH6KL_STATE_ON)) { if (WARN_ON_ONCE(ar->state != ATH6KL_STATE_ON))
dev_kfree_skb(skb); goto fail_tx;
return 0;
}
if (!test_bit(WMI_READY, &ar->flag)) if (!test_bit(WMI_READY, &ar->flag))
goto fail_tx; goto fail_tx;
......
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