at86rf230: interrupt tx with force trx_off
authorAlexander Aring <alex.aring@gmail.com>
Thu, 27 Aug 2015 19:49:18 +0000 (21:49 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Sep 2015 11:20:05 +0000 (13:20 +0200)
commited4a26b0995baf10807ebb3f18fba3db2c6539fc
tree438fa2a9edf1775ee394df6e6c9ff78195858206
parent346ce4bbddfd40aa62b899db8982c728ed3d42a5
at86rf230: interrupt tx with force trx_off

To abort a TX_ARET_BUSY state it's recommended to switch into TRX_OFF
state by doing STATE_TRX_FORCE_OFF. This patch will do always a TRX_OFF
state change when the transceiver stucks in any state. From TRX_OFF we
can switch to the states which are also possible by TX_ON state.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c