diff options
author | sam <sam@FreeBSD.org> | 2005-01-20 02:54:18 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-01-20 02:54:18 +0000 |
commit | 3973fcd76891a4c8f0ab3f3e3689073cef7e0d7c (patch) | |
tree | c57d2d6589b9510bb730d883f1bc0d3ff982390b /sys/net80211 | |
parent | 2b292030fbf30c751ffc17e7e463d4a178355ec9 (diff) | |
download | FreeBSD-src-3973fcd76891a4c8f0ab3f3e3689073cef7e0d7c.zip FreeBSD-src-3973fcd76891a4c8f0ab3f3e3689073cef7e0d7c.tar.gz |
explicitly avoid timing out ourself due to inactivity; it
can easily happen if the bss is quiet
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 94c8ac2..5b6f4ad 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1379,6 +1379,12 @@ restart: m_freem(ni->ni_rxfrag[0]); ni->ni_rxfrag[0] = NULL; } + /* + * Special case ourself; we may be idle for extended periods + * of time and regardless reclaiming our state is wrong. + */ + if (ni == ic->ic_bss) + continue; ni->ni_inact--; if (ni->ni_associd != 0) { /* |