at86rf230: move cal_timeout to state change
authorAlexander Aring <alex.aring@gmail.com>
Thu, 30 Apr 2015 15:44:59 +0000 (17:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 30 Apr 2015 16:48:10 +0000 (18:48 +0200)
commit2ad33244db816755a27dcdd312a70d966c85f0ee
tree83c538982b6033d093a58a27d6cb17ca045aa573
parent5e8e01e262be1eeaae598be44b8e43b29aab842a
at86rf230: move cal_timeout to state change

This patch moves the calculation timeout of TRX_OFF to RX_AACK_ON
handling to the async state change functionality. With this patch we can
do a reset of calculation timeout when others TRX_OFF to RX_AACK_ON
happens instead of doing this on interface up only.

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