PERFORCE change 139766 for review
Sam Leffler
sam at FreeBSD.org
Thu Apr 10 23:22:16 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=139766
Change 139766 by sam at sam_ebb on 2008/04/10 23:22:11
catch up w/ ioctl changes; can't reference ni_chan except in RUN state
Affected files ...
.. //depot/projects/vap/sys/dev/mwl/if_mwl.c#5 edit
Differences ...
==== //depot/projects/vap/sys/dev/mwl/if_mwl.c#5 (text+ko) ====
@@ -1078,6 +1078,8 @@
enum ieee80211_phymode mode;
MWL_HAL_TXRATE rates;
+ KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state));
+
mode = ieee80211_chan2mode(ni->ni_chan);
/*
* Use legacy rates when operating a mixed HT+non-HT bss.
@@ -1116,6 +1118,8 @@
enum ieee80211_phymode mode;
uint8_t rate;
+ KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state));
+
mode = ieee80211_chan2mode(ni->ni_chan);
/*
* Use legacy rates when operating a mixed HT+non-HT bss.
@@ -1298,7 +1302,8 @@
struct mwl_hal_vap *hvap = MWL_VAP(vap)->mv_hvap;
struct ieee80211com *ic = vap->iv_ic;
- mwl_setrates(vap);
+ if (state == IEEE80211_S_RUN)
+ mwl_setrates(vap);
/* XXX off by 1? */
mwl_hal_setrtsthreshold(hvap, vap->iv_rtsthreshold);
/* XXX auto? 20/40 split? */
More information about the p4-projects
mailing list