Revision 1452 trunk/code/projects/libwireless/lib/wl_token_ring.c
| wl_token_ring.c (revision 1452) | ||
|---|---|---|
| 35 | 35 |
#include <wl_token_ring.h> |
| 36 | 36 |
|
| 37 | 37 |
#include <stdlib.h> |
| 38 |
#include <stdio.h> |
|
| 39 | 38 |
|
| 40 | 39 |
#include <wl_defs.h> |
| 41 | 40 |
#include <wireless.h> |
| ... | ... | |
| 270 | 269 |
{
|
| 271 | 270 |
WL_DEBUG_PRINT("Attempting to join the token ring again.\r\n");
|
| 272 | 271 |
//attempt to rejoin with a random delay |
| 272 |
//TODO: should we use the constant JOIN_DELAY ? |
|
| 273 | 273 |
wl_token_ring_join(); |
| 274 | 274 |
joinDelay = rand() / (RAND_MAX / JOIN_DELAY) + 1; |
| 275 | 275 |
} |
Also available in: Unified diff