svn commit: r193288 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Tue Jun 2 00:06:40 UTC 2009


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


More information about the svn-src-all mailing list