svn commit: r284003 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Thu Jun 4 23:07:22 UTC 2015


Author: adrian
Date: Thu Jun  4 23:07:21 2015
New Revision: 284003
URL: https://svnweb.freebsd.org/changeset/base/284003

Log:
  Some hostap setups may result in raw frames being transmitted with
  no parameters set.  So, don't unconditionally call things.
  
  Thanks to jkim@ for pointing this out!
  
  MFC after:	2 weeks
  Sponsored by:	Norse Corp, Inc.

Modified:
  head/sys/net80211/ieee80211_output.c

Modified: head/sys/net80211/ieee80211_output.c
==============================================================================
--- head/sys/net80211/ieee80211_output.c	Thu Jun  4 22:11:39 2015	(r284002)
+++ head/sys/net80211/ieee80211_output.c	Thu Jun  4 23:07:21 2015	(r284003)
@@ -525,7 +525,8 @@ ieee80211_raw_output(struct ieee80211vap
 	 * they'll have to be added - so fail the transmit if
 	 * they can't be.
 	 */
-	(void) ieee80211_add_xmit_params(m, params);
+	if (params)
+		(void) ieee80211_add_xmit_params(m, params);
 
 	return (ic->ic_raw_xmit(ni, m, params));
 }


More information about the svn-src-head mailing list