PERFORCE change 136318 for review

Sam Leffler sam at FreeBSD.org
Wed Feb 27 03:38:00 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=136318

Change 136318 by sam at sam_ebb on 2008/02/27 03:37:31

	Bandaid ieee80211_send_error; it can be called from various
	places before a vap reached RUN state which is wrong.  We
	need to stamp out these cases but for now add this WAR.

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_input.c#28 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_input.c#28 (text+ko) ====

@@ -475,6 +475,17 @@
 	int istmp;
 
 	if (ni == vap->iv_bss) {
+		if (vap->iv_state != IEEE80211_S_RUN) {
+			/*
+			 * XXX hack until we get rid of this routine.
+			 * We can be called prior to the vap reaching
+			 * run state under certain conditions in which
+			 * case iv_bss->ni_chan will not be setup.
+			 * Check for this explicitly and and just ignore
+			 * the request.
+			 */
+			return;
+		}
 		ni = ieee80211_tmp_node(vap, mac);
 		if (ni == NULL) {
 			/* XXX msg */


More information about the p4-projects mailing list