mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
at86rf230: fix errno on tx timeout handling
The rc variable is zero if we get a timeout. Instead of pass the rc variable to the async error handling function which try to recover the phy, we use a static -ETIMEDOUT errno. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
db9e0ee805
commit
464f029915
1 changed files with 1 additions and 1 deletions
|
@ -995,7 +995,7 @@ at86rf230_xmit(struct ieee802154_dev *dev, struct sk_buff *skb)
|
|||
rc = wait_for_completion_interruptible_timeout(&lp->tx_complete,
|
||||
msecs_to_jiffies(lp->data->t_tx_timeout));
|
||||
if (!rc) {
|
||||
at86rf230_async_error(lp, ctx, rc);
|
||||
at86rf230_async_error(lp, ctx, -ETIMEDOUT);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue