Date: Wed, 26 Mar 2008 21:04:58 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138663 for review Message-ID: <200803262104.m2QL4wWd094790@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138663 Change 138663 by sam@sam_ebb on 2008/03/26 21:04:18 handle channel change on monitor mode vaps more carefully; we cannot call back into the driver unless it's marked RUNNING Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#46 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#46 (text+ko) ==== @@ -1812,9 +1812,12 @@ /* * Monitor mode can switch directly. */ - ieee80211_setcurchan(ic, vap->iv_des_chan); - vap->iv_bss->ni_chan = ic->ic_curchan; - /* XXX kick other vap's to follow */ + if (IFNET_IS_UP_RUNNING(vap->iv_ifp)) { + /* XXX need state machine for other vap's to follow */ + ieee80211_setcurchan(ic, vap->iv_des_chan); + vap->iv_bss->ni_chan = ic->ic_curchan; + } else + ic->ic_curchan = vap->iv_des_chan; } else { /* * Need to go through the state machine in case we
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803262104.m2QL4wWd094790>