BigW Consortium Gitlab

Commit c26ac718 by David Clark

Fixed error code return to network layer when MT7697 Tx is busy

parent 860e7a8c
......@@ -69,7 +69,7 @@ int mt7697_data_tx(struct sk_buff *skb, struct net_device *ndev)
if (tx_skb->skb) {
dev_warn(cfg->dev, "%s(): tx pool full\n",
__func__);
ret = -EAGAIN;
ret = NETDEV_TX_BUSY;
goto cleanup;
}
......@@ -89,6 +89,7 @@ int mt7697_data_tx(struct sk_buff *skb, struct net_device *ndev)
if (ret < 0) {
dev_err(cfg->dev, "%s(): queue_work() failed(%d)\n",
__func__, ret);
ret = NETDEV_TX_BUSY;
goto cleanup;
}
......
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