Commit c99e9473 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make sure seqno_interval is no less than 2.

This avoids confusion due to roll-over.
parent e647fd7d
......@@ -196,7 +196,7 @@ main(int argc, char **argv)
150);
if(seqno_interval <= 0)
seqno_interval = MAX(2 * wireless_hello_interval - 1, 0);
seqno_interval = MAX(2 * wireless_hello_interval - 1, 2);
jitter = MIN(wireless_hello_interval * 1000 / 4, 2000);
update_jitter = 2 * jitter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment