Hi,
I was wondering what the meaning of this line of code in mesh_hwmp.c
in function airtime_link_metric_get is:
estimated_retx = ((1 << (2 * ARITH_SHIFT)) / (s_unit - err));
The computation is : 1 / ( 1 - error rate )
Does the variable name imply "estimated retransmissions" ?
Also the err variable is calculated as a moving average based on the
ACK of every frame tx.
It is my understanding that err should be error rate (no.of bit errors
per second). How then can a moving average be considered as errors
*per second* ?
thanks,
Joel