aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154/at86rf230.c
diff options
context:
space:
mode:
authorAlexander Aring <aar@pengutronix.de>2016-04-19 09:34:22 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-04-20 10:17:13 -0400
commit60f5f5d3a106dc5385b39348d13b20b15ac9cbf9 (patch)
tree171301372a5b4ed45e6cfa9990e6966c9558ce00 /drivers/net/ieee802154/at86rf230.c
parentedc73417d8f33a1dd329295275168923298d9a7b (diff)
at86rf230: increase sleep to off timings
I expierenced when setting channel while sleep mode it didn't changed the channel inside the hardware registers. Then I got another report of an user which has similar issues. I increased the sleep to off state change timing, which is according at86rf233 at maximum 1000 us. After this change I got no similar effects again. I tried another option to wait on AWAKE_END irq, which can be used to wait until the transceiver is awaked. I tested it and the IRQ took 4 seconds after starting state change. I don't believe it takes 4 seconds to go into the TRX_OFF state from SLEEP state. The alternative is to increase the timings which seems to work. Cc: Oleg Hahm <oliver.hahm@inria.fr> Signed-off-by: Alexander Aring <aar@pengutronix.de> Reviewed-by: Stefan Schmidt<stefan@osg.samsung.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/at86rf230.c')
-rw-r--r--drivers/net/ieee802154/at86rf230.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index cb9e9fe6d77a..9f10da60e02d 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1340,7 +1340,7 @@ static struct at86rf2xx_chip_data at86rf233_data = {
1340 .t_off_to_aack = 80, 1340 .t_off_to_aack = 80,
1341 .t_off_to_tx_on = 80, 1341 .t_off_to_tx_on = 80,
1342 .t_off_to_sleep = 35, 1342 .t_off_to_sleep = 35,
1343 .t_sleep_to_off = 210, 1343 .t_sleep_to_off = 1000,
1344 .t_frame = 4096, 1344 .t_frame = 4096,
1345 .t_p_ack = 545, 1345 .t_p_ack = 545,
1346 .rssi_base_val = -91, 1346 .rssi_base_val = -91,
@@ -1355,7 +1355,7 @@ static struct at86rf2xx_chip_data at86rf231_data = {
1355 .t_off_to_aack = 110, 1355 .t_off_to_aack = 110,
1356 .t_off_to_tx_on = 110, 1356 .t_off_to_tx_on = 110,
1357 .t_off_to_sleep = 35, 1357 .t_off_to_sleep = 35,
1358 .t_sleep_to_off = 380, 1358 .t_sleep_to_off = 1000,
1359 .t_frame = 4096, 1359 .t_frame = 4096,
1360 .t_p_ack = 545, 1360 .t_p_ack = 545,
1361 .rssi_base_val = -91, 1361 .rssi_base_val = -91,
@@ -1370,7 +1370,7 @@ static struct at86rf2xx_chip_data at86rf212_data = {
1370 .t_off_to_aack = 200, 1370 .t_off_to_aack = 200,
1371 .t_off_to_tx_on = 200, 1371 .t_off_to_tx_on = 200,
1372 .t_off_to_sleep = 35, 1372 .t_off_to_sleep = 35,
1373 .t_sleep_to_off = 380, 1373 .t_sleep_to_off = 1000,
1374 .t_frame = 4096, 1374 .t_frame = 4096,
1375 .t_p_ack = 545, 1375 .t_p_ack = 545,
1376 .rssi_base_val = -100, 1376 .rssi_base_val = -100,