summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-01-20 02:54:18 +0000
committersam <sam@FreeBSD.org>2005-01-20 02:54:18 +0000
commit3973fcd76891a4c8f0ab3f3e3689073cef7e0d7c (patch)
treec57d2d6589b9510bb730d883f1bc0d3ff982390b /sys/net80211/ieee80211_node.c
parent2b292030fbf30c751ffc17e7e463d4a178355ec9 (diff)
downloadFreeBSD-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/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c6
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) {
/*
OpenPOWER on IntegriCloud