Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2009 00:06:39 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193288 - head/sys/net80211
Message-ID:  <200906020006.n5206d51096716@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Tue Jun  2 00:06:39 2009
New Revision: 193288
URL: http://svn.freebsd.org/changeset/base/193288

Log:
  don't dispatch frames to vap's not running

Modified:
  head/sys/net80211/ieee80211_input.c

Modified: head/sys/net80211/ieee80211_input.c
==============================================================================
--- head/sys/net80211/ieee80211_input.c	Tue Jun  2 00:04:10 2009	(r193287)
+++ head/sys/net80211/ieee80211_input.c	Tue Jun  2 00:06:39 2009	(r193288)
@@ -65,6 +65,9 @@ ieee80211_input_all(struct ieee80211com 
 		struct ieee80211_node *ni;
 		struct mbuf *mcopy;
 
+		/* NB: could check for IFF_UP but this is cheaper */
+		if (vap->iv_state == IEEE80211_S_INIT)
+			continue;
 		/*
 		 * WDS vap's only receive directed traffic from the
 		 * station at the ``far end''.  That traffic should



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906020006.n5206d51096716>