Hi all,

There is a divide by 0 problem in 4bitle. In LinkEstimatorP.nc, the function 
updateNeighborEntryIdx() calls updateNeighborTableEst() if rcvCnt + failCnt >= 
BLQ_PKT_WINDOW. This means that updateNeighborTableEst() can be called if 
rcvCnt = 0. Well, if this is the first call and we missed the first 
BLQ_PKT_WINDOW packets i.e. failCnt = BLQ_PKT_WINDOW, remember that inQuality 
is initialized to 0, then the calculations in updateNeighborTableEst() will 
reveal inQuality = 0, which will lead to divide by 0 problem when computeETX() 
is called.

Regards
Islam Hegazy
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to