aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-04-30 11:45:00 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-04-30 12:48:10 -0400
commit3b951ca7d2772834c7ca828f0fe5745480426982 (patch)
tree52b11ea4dba6f35ef423344105b465273045a10f /drivers/net/ieee802154
parent2ad33244db816755a27dcdd312a70d966c85f0ee (diff)
at86rf230: add TX_ARET_ON for calibration timeout
This patch adds a calibration timeout reset when change from TRX_OFF to TX_ARET_ON which also occurs a calibration. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 635878833936..f99dce5c64da 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -617,10 +617,11 @@ at86rf230_async_state_delay(void *context)
617 */ 617 */
618 lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; 618 lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT;
619 goto change; 619 goto change;
620 case STATE_TX_ARET_ON:
620 case STATE_TX_ON: 621 case STATE_TX_ON:
621 tim = ktime_set(0, c->t_off_to_tx_on * NSEC_PER_USEC); 622 tim = ktime_set(0, c->t_off_to_tx_on * NSEC_PER_USEC);
622 /* state change from TRX_OFF to TX_ON to do a 623 /* state change from TRX_OFF to TX_ON or ARET_ON to do
623 * calibration, we need to reset the timeout for the 624 * a calibration, we need to reset the timeout for the
624 * next one. 625 * next one.
625 */ 626 */
626 lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; 627 lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT;