at86rf230: fix state change handling on error
authorAlexander Aring <aar@pengutronix.de>
Fri, 19 Feb 2016 08:59:13 +0000 (09:59 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Feb 2016 19:29:39 +0000 (20:29 +0100)
commitd981b5b5fe8ed0c237b2925ab37a17d28405494f
treecdafe6ee43066f4ac5f336c54b65d12a189d60f7
parentc231c5a47a0c697e7bc821af0b5cb28d129fe8e0
at86rf230: fix state change handling on error

This patch force always to set "is_tx_from_off", when calibration
timeout was not occurred. In case of error handling the is_tx_from_off
can be inside in an invalid state.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c