Date: Wed, 27 Feb 2008 03:37:59 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 136318 for review Message-ID: <200802270337.m1R3bxXx024670@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=136318 Change 136318 by sam@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 */help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802270337.m1R3bxXx024670>
