+#ifndef DEBUG
+static struct timer_list rng_timer;
+
+static void rng_timer_tick(unsigned long n)
+{
+ struct net_device *dev = (struct net_device *) n;
+ u16 data[4];
+ int i, ret;
+
+ ret = 0;
+ for (i = 0; i < 3; i++) {
+ ret |= wl_get_val(dev, "rand", &data[i], sizeof(u16));
+ }
+ if (!ret)
+ batch_entropy_store(*((u32 *) &data[0]), *((u32 *) &data[2]), (jiffies % 255));
+
+ mod_timer(&rng_timer, jiffies + (HZ/RNG_POLL_FREQ));
+}
+#endif
+