#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/kdev_t.h>
#include <linux/random.h>
#include "uwb-internal.h"
Go to the source code of this file.
MODULE_DESCRIPTION |
( |
"Ultra Wide Band core" |
| ) |
|
module_exit |
( |
uwb_subsys_exit |
| ) |
|
module_init |
( |
uwb_subsys_init |
| ) |
|
unsigned long beacon_timeout_ms = 500 |
If a beacon disappears for longer than this, then we consider the device who was represented by that beacon to be gone.
ECMA-368[17.2.3, last para] establishes that a device must not consider a device to be its neighbour if he doesn't receive a beacon for more than mMaxLostBeacons. mMaxLostBeacons is defined in ECMA-368[17.16] as 3; because we can get only one beacon per superframe, that'd be 3 * 65ms = 195 ~ 200 ms. Let's give it time for jitter and stuff and make it 500 ms.
Definition at line 74 of file driver.c.
Initial value:= {
.name = "uwb_rc",
.class_attrs = uwb_class_attrs,
}
Device model classes
Definition at line 105 of file driver.c.