PERFORCE change 118560 for review
Sam Leffler
sam at FreeBSD.org
Sun Apr 22 05:17:17 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=118560
Change 118560 by sam at sam_ebb on 2007/04/22 05:16:15
add missing array entry for static turbo mode; while here
leave some asserts so it doesn't happen again
Affected files ...
.. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#75 edit
Differences ...
==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#75 (text+ko) ====
@@ -1605,11 +1605,15 @@
IEEE80211_CHAN_FHSS, /* IEEE80211_MODE_FH */
IEEE80211_CHAN_108A, /* IEEE80211_MODE_TURBO_A */
IEEE80211_CHAN_108G, /* IEEE80211_MODE_TURBO_G */
+ IEEE80211_CHAN_STURBO, /* IEEE80211_MODE_STURBO_A */
};
u_int modeflags;
int i;
+ KASSERT(mode < IEEE80211_MODE_MAX, ("bad mode %u", mode));
modeflags = chanflags[mode];
+ KASSERT(modeflags != 0 || mode == IEEE80211_MODE_AUTO,
+ ("no chanflags for mode %u", mode));
for (i = 0; i < ic->ic_nchans; i++) {
struct ieee80211_channel *c = &ic->ic_channels[i];
More information about the p4-projects
mailing list