Commit a5675bbb authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add comment to link quality computation.

parent 7c211901
......@@ -241,6 +241,9 @@ neighbour_cost(struct neighbour *neigh)
if(a <= 256 && b <= 256) {
return MAX(a, b);
} else {
/* a = 256/alpha, b = 256/beta, where alpha and beta are the expected
probabilities of a packet getting through in the direct and reverse
directions. */
a = MAX(a, 256);
b = MAX(b, 256);
/* (1/(alpha * beta) + 1/beta) / 2, which is half the expected
......
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