Date: Thu, 4 Jun 2015 23:07:22 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284003 - head/sys/net80211 Message-ID: <201506042307.t54N7M1B077959@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506042307.t54N7M1B077959>