mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
at86rf230: cleanup check on trac status
Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
cab9e3a055
commit
c8c7e3db81
1 changed files with 3 additions and 5 deletions
|
@ -749,13 +749,11 @@ at86rf230_tx_trac_check(void *context)
|
||||||
* to STATE_FORCE_TRX_OFF then STATE_TX_ON to recover the transceiver
|
* to STATE_FORCE_TRX_OFF then STATE_TX_ON to recover the transceiver
|
||||||
* state to TX_ON.
|
* state to TX_ON.
|
||||||
*/
|
*/
|
||||||
if (trac) {
|
if (trac)
|
||||||
at86rf230_async_state_change(lp, ctx, STATE_FORCE_TRX_OFF,
|
at86rf230_async_state_change(lp, ctx, STATE_FORCE_TRX_OFF,
|
||||||
at86rf230_tx_trac_error, true);
|
at86rf230_tx_trac_error, true);
|
||||||
return;
|
else
|
||||||
}
|
at86rf230_tx_on(context);
|
||||||
|
|
||||||
at86rf230_tx_on(context);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Reference in a new issue