From 3973fcd76891a4c8f0ab3f3e3689073cef7e0d7c Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 20 Jan 2005 02:54:18 +0000 Subject: [PATCH] explicitly avoid timing out ourself due to inactivity; it can easily happen if the bss is quiet --- sys/net80211/ieee80211_node.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 94c8ac2050f6..5b6f4ad24906 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) { /*