diff options
author | sam <sam@FreeBSD.org> | 2009-03-18 19:38:39 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-03-18 19:38:39 +0000 |
commit | 2235508d5eead1c1e8c9816bb780ba5a5ba0b588 (patch) | |
tree | 5fee62bb4014c155a83331a2e80de03c57497456 /sys/net80211/ieee80211_tdma.h | |
parent | 8bfd160665d6b36b087de434348dc376113ec6a6 (diff) | |
download | FreeBSD-src-2235508d5eead1c1e8c9816bb780ba5a5ba0b588.zip FreeBSD-src-2235508d5eead1c1e8c9816bb780ba5a5ba0b588.tar.gz |
rate limit printfs for invalid tdma ie contents; probably want this to
be less than 1/sec
Diffstat (limited to 'sys/net80211/ieee80211_tdma.h')
-rw-r--r-- | sys/net80211/ieee80211_tdma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_tdma.h b/sys/net80211/ieee80211_tdma.h index d6e45a5..4d07524 100644 --- a/sys/net80211/ieee80211_tdma.h +++ b/sys/net80211/ieee80211_tdma.h @@ -38,9 +38,11 @@ struct ieee80211_tdma_state { uint8_t tdma_bintval; /* beacon interval (slots) */ uint8_t tdma_slot; /* station slot # */ uint8_t tdma_inuse[1]; /* mask of slots in use */ - void *tdma_peer; /* peer station cookie */ uint8_t tdma_active[1]; /* mask of active slots */ int tdma_count; /* active/inuse countdown */ + void *tdma_peer; /* peer station cookie */ + struct timeval tdma_lastprint; /* time of last rate-limited printf */ + int tdma_fails; /* fail count for rate-limiting */ /* parent method pointers */ int (*tdma_newstate)(struct ieee80211vap *, enum ieee80211_state, |