On Tue, Mar 12, 2013 at 10:13:01AM +0100, jolly wrote:
dear jolly,
+ /* count up radio link counter S */
+ lchan->s += 2;
+ if (lchan->s > btsb->radio_link_timeout)
+ lchan->s = btsb->radio_link_timeout;
that is what I was missing when browsing the code in gtik. I think
there is a small glitch the other way around.
a.) We get criteria value == 0 through OML (for whatever reason)
+ btsb->radio_link_timeout = val[1]
b.) lchan_activate sets lchan->s == 0
+ lchan->s = btsb->radio_link_timeout;
c.) lchan->s -= 1
+ /* count down radio link counter S */
+ lchan->s--;
d.) if (lchan->s == 0)
Will not be true as the lchan->s is -1. Is it intended that setting a
'0' will disable the link failure checking?
kind regards
holger