svn commit: r254500 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Sun Aug 18 20:40:13 UTC 2013


Author: adrian
Date: Sun Aug 18 20:40:13 2013
New Revision: 254500
URL: http://svnweb.freebsd.org/changeset/base/254500

Log:
  Return the correct status if ieee80211_ff_check() consumes the mbuf.
  
  I broke this when converting the net80211 TX path to use if_transmit.

Modified:
  head/sys/net80211/ieee80211_output.c

Modified: head/sys/net80211/ieee80211_output.c
==============================================================================
--- head/sys/net80211/ieee80211_output.c	Sun Aug 18 20:11:34 2013	(r254499)
+++ head/sys/net80211/ieee80211_output.c	Sun Aug 18 20:40:13 2013	(r254500)
@@ -210,8 +210,7 @@ ieee80211_vap_pkt_send_dest(struct ieee8
 		m = ieee80211_ff_check(ni, m);
 		if (m == NULL) {
 			/* NB: any ni ref held on stageq */
-			/* XXX better status? */
-			return (ENOBUFS);
+			return (0);
 		}
 	}
 #endif /* IEEE80211_SUPPORT_SUPERG */


More information about the svn-src-all mailing list