aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-07 10:38:25 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-10-25 07:56:22 +0200
commit464f029915de6379c8fcd18d5dd49e5b3d1a2cc5 (patch)
treebd1fb2a47dfc6cfe12cfaae010cbe190626f55ef /drivers/net/ieee802154
parentieee802154: mrf24j40: Add support for MRF24J40MC (diff)
downloadlinux-dev-464f029915de6379c8fcd18d5dd49e5b3d1a2cc5.tar.xz
linux-dev-464f029915de6379c8fcd18d5dd49e5b3d1a2cc5.zip
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>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index c9d2a752abd7..6857038111a0 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -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;
}