at86rf230: fix callback for aret handling
authorAlexander Aring <alex.aring@gmail.com>
Sun, 17 May 2015 19:44:55 +0000 (21:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 May 2015 09:44:45 +0000 (11:44 +0200)
This patch fix the complete callback for going into aret on. Currently
we starting after a state change into aret on again a state change into
aret on which is not necessary.

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

index 5601c743fa7b5729499d29eafa7fd421cc03d690..8d5ed6e23ddbefe6e75354ef9de21a067c931fa4 100644 (file)
@@ -1013,7 +1013,7 @@ at86rf230_xmit_start(void *context)
                if (lp->is_tx_from_off) {
                        lp->is_tx_from_off = false;
                        at86rf230_async_state_change(lp, ctx, STATE_TX_ARET_ON,
-                                                    at86rf230_xmit_tx_on,
+                                                    at86rf230_write_frame,
                                                     false);
                } else {
                        at86rf230_async_state_change(lp, ctx, STATE_TX_ON,