at86rf230: fix errno on tx timeout handling
authorAlexander Aring <alex.aring@gmail.com>
Tue, 7 Oct 2014 08:38:25 +0000 (10:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:22 +0000 (07:56 +0200)
commit464f029915de6379c8fcd18d5dd49e5b3d1a2cc5
treebd1fb2a47dfc6cfe12cfaae010cbe190626f55ef
parentdb9e0ee805901c4a7284fde1f12a8033f24d2e07
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>
drivers/net/ieee802154/at86rf230.c