mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-13 21:24:23 +00:00
* Make filtering criterion on rssi more liberal and don't use the
correlation value at all.
This commit is contained in:
parent
b6940d4302
commit
9cde72c806
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: uaodv.c,v 1.15 2007/05/08 13:33:57 bg- Exp $
|
* $Id: uaodv.c,v 1.16 2007/05/09 13:07:55 bg- Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -248,9 +248,9 @@ handle_incoming_rreq(void)
|
|||||||
return;
|
return;
|
||||||
} else if (ret == REMOTE_NO) {
|
} else if (ret == REMOTE_NO) {
|
||||||
/* Is neigbour, accept it. */
|
/* Is neigbour, accept it. */
|
||||||
} else if(cc2420_last_rssi <= -38 || cc2420_last_correlation < 100) {
|
} else if(cc2420_last_rssi <= -40) {
|
||||||
print_debug("RREQ drop %d %d\n",
|
print_debug("RREQ drop %d %d\n", cc2420_last_rssi,
|
||||||
cc2420_last_rssi,cc2420_last_correlation);
|
cc2420_last_correlation);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user