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>
This commit is contained in:
Alexander Aring 2015-04-30 17:45:00 +02:00 committed by Marcel Holtmann
parent 2ad33244db
commit 3b951ca7d2

View File

@ -617,10 +617,11 @@ at86rf230_async_state_delay(void *context)
*/ */
lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT;
goto change; goto change;
case STATE_TX_ARET_ON:
case STATE_TX_ON: case STATE_TX_ON:
tim = ktime_set(0, c->t_off_to_tx_on * NSEC_PER_USEC); tim = ktime_set(0, c->t_off_to_tx_on * NSEC_PER_USEC);
/* state change from TRX_OFF to TX_ON to do a /* state change from TRX_OFF to TX_ON or ARET_ON to do
* calibration, we need to reset the timeout for the * a calibration, we need to reset the timeout for the
* next one. * next one.
*/ */
lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT;